From 1b1b4a8cc83853949ccc0d0c41b85dd23be4b5b5 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 14:59:11 +0300 Subject: [PATCH 01/13] feat: add e-commerce data generator --- .gitignore | 5 + generator/generate.py | 269 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 274 insertions(+) create mode 100644 .gitignore create mode 100644 generator/generate.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5e4e32c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +data/raw/ +data/processed/ +*.duckdb +__pycache__/ +.env diff --git a/generator/generate.py b/generator/generate.py new file mode 100644 index 0000000..bb0d30c --- /dev/null +++ b/generator/generate.py @@ -0,0 +1,269 @@ +""" +Day 1 — Trendyol-style e-commerce data generator. + +Produces 6 CSV files that land in data/raw/ as immutable source tables: + customers.csv, sellers.csv, products.csv, + orders.csv, order_items.csv, sessions.csv + +Intentional messiness (documented so you can narrate it in the interview): + - ~3% duplicate customer rows (same person, re-registered) + - ~5% of orders reference a customer_id that doesn't exist + - Null city on ~8% of customers + - Two date formats in orders.csv (ISO + dd/mm/yyyy) to force casting in staging + - Unit prices occasionally differ from the product's listed price (promo/flash sales) + - Some sessions have null customer_id (anonymous browsing) +""" + +import csv +import random +import os +from datetime import datetime, timedelta +from faker import Faker + +fake = Faker("tr_TR") # Turkish locale for realistic names/cities +fake_en = Faker("en_US") # English for product names +random.seed(42) + +RAW_DIR = os.path.join(os.path.dirname(__file__), "..", "data", "raw") +os.makedirs(RAW_DIR, exist_ok=True) + +# ── date range: Oct 2024 – Mar 2025 (6 months) ───────────────────────────── +START_DATE = datetime(2024, 10, 1) +END_DATE = datetime(2025, 3, 31) + +def rand_date(start=START_DATE, end=END_DATE): + delta = (end - start).days + return start + timedelta(days=random.randint(0, delta)) + +def iso(dt): return dt.strftime("%Y-%m-%d") +def euro(dt): return dt.strftime("%d/%m/%Y") # intentional bad format +def maybe_null(v, pct=0.08): + return "" if random.random() < pct else v + + +# ── CONFIG ────────────────────────────────────────────────────────────────── +N_CUSTOMERS = 600 +N_SELLERS = 80 +N_PRODUCTS = 400 +N_ORDERS = 2500 +N_SESSIONS = 4000 + +TURKISH_CITIES = [ + "Istanbul", "Ankara", "Izmir", "Bursa", "Antalya", + "Adana", "Konya", "Gaziantep", "Mersin", "Kayseri", + "Eskisehir", "Trabzon", "Diyarbakir", "Samsun", "Denizli", +] + +CATEGORIES = { + "Electronics": ["Smartphone", "Laptop", "Tablet", "Headphones", "Smartwatch", "Charger", "Speaker"], + "Fashion": ["T-Shirt", "Dress", "Jeans", "Jacket", "Sneakers", "Boots", "Bag", "Scarf"], + "Home & Life": ["Pillow", "Duvet", "Cookware Set", "Coffee Maker", "Vacuum Cleaner", "Lamp", "Mirror"], + "Beauty": ["Moisturizer", "Serum", "Lipstick", "Perfume", "Shampoo", "Face Mask"], + "Sports": ["Running Shoes", "Yoga Mat", "Resistance Band", "Protein Powder", "Bicycle Helmet"], + "Books": ["Novel", "Cookbook", "Self-Help Book", "Science Book", "Children's Book"], + "Toys": ["Board Game", "Puzzle", "Action Figure", "Building Blocks", "Doll"], +} + +PAYMENT_METHODS = ["credit_card", "debit_card", "bank_transfer", "cash_on_delivery", "wallet"] +ORDER_STATUSES = ["pending", "processing", "shipped", "delivered", "cancelled", "returned"] +STATUS_WEIGHTS = [0.05, 0.10, 0.15, 0.55, 0.10, 0.05] +PLATFORMS = ["ios", "android", "web"] +DEVICES = ["mobile", "mobile", "mobile", "desktop", "tablet"] # mobile-heavy like Trendyol + + +# ── HELPER ─────────────────────────────────────────────────────────────────── +def write_csv(rows, filename): + if not rows: + return + path = os.path.join(RAW_DIR, filename) + with open(path, "w", newline="", encoding="utf-8") as f: + writer = csv.DictWriter(f, fieldnames=rows[0].keys()) + writer.writeheader() + writer.writerows(rows) + + +# ── 1. SELLERS ─────────────────────────────────────────────────────────────── +sellers = [] +for i in range(1, N_SELLERS + 1): + category = random.choice(list(CATEGORIES.keys())) + sellers.append({ + "seller_id": f"S{i:04d}", + "seller_name": fake.company(), + "category": category, + "city": random.choice(TURKISH_CITIES), + "is_verified": random.choice([True, True, True, False]), # 75% verified + "joined_date": iso(rand_date(datetime(2020, 1, 1), START_DATE)), + "rating": round(random.uniform(3.0, 5.0), 1), + "total_reviews": random.randint(10, 50000), + }) + +write_csv(sellers, "sellers.csv") +print(f" sellers: {len(sellers):,} rows") + + +# ── 2. PRODUCTS ────────────────────────────────────────────────────────────── +products = [] +for i in range(1, N_PRODUCTS + 1): + category = random.choice(list(CATEGORIES.keys())) + subcategory = random.choice(CATEGORIES[category]) + cost = round(random.uniform(10, 800), 2) + price = round(cost * random.uniform(1.15, 2.5), 2) + seller = random.choice(sellers) + products.append({ + "product_id": f"P{i:05d}", + "product_name": f"{fake_en.color_name()} {subcategory}", + "category": category, + "subcategory": subcategory, + "seller_id": seller["seller_id"], + "list_price": price, + "cost_price": cost, + "is_active": random.choice([True, True, True, True, False]), # 80% active + "stock_qty": random.randint(0, 500), + "created_at": iso(rand_date(datetime(2022, 1, 1), START_DATE)), + }) + +write_csv(products, "products.csv") +print(f" products: {len(products):,} rows") + + +# ── 3. CUSTOMERS (with ~3% duplicates) ─────────────────────────────────────── +customers = [] +customer_ids = [] +for i in range(1, N_CUSTOMERS + 1): + signup = rand_date(datetime(2020, 1, 1), END_DATE) + tier = random.choices( + ["bronze", "silver", "gold"], + weights=[0.60, 0.28, 0.12] + )[0] + cid = f"C{i:05d}" + customer_ids.append(cid) + customers.append({ + "customer_id": cid, + "first_name": fake.first_name(), + "last_name": fake.last_name(), + "email": fake_en.email(), + "phone": fake.phone_number(), + "city": maybe_null(random.choice(TURKISH_CITIES), pct=0.08), + "country": "TR", + "customer_tier": tier, + "signup_date": iso(signup), + "is_deleted": random.random() < 0.02, # 2% soft-deleted + }) + +# inject ~3% duplicates (same person re-registered with slightly different email) +n_dupes = int(N_CUSTOMERS * 0.03) +for _ in range(n_dupes): + original = random.choice(customers) + dupe = original.copy() + dupe["customer_id"] = f"C{random.randint(99000, 99999)}" + dupe["email"] = fake_en.email() # different email, same person + customers.append(dupe) + +random.shuffle(customers) +write_csv(customers, "customers.csv") +print(f" customers: {len(customers):,} rows ({n_dupes} dupes injected)") + + +# ── 4. ORDERS (with two date formats + ~5% bad customer_ids) ───────────────── +# build a dict for fast lookup +valid_customer_ids = customer_ids # original IDs only (not dupes) + +orders = [] +order_ids = [] +for i in range(1, N_ORDERS + 1): + oid = f"O{i:06d}" + order_ids.append(oid) + order_date = rand_date() + + # ~5% reference a non-existent customer (referential integrity break) + if random.random() < 0.05: + cust_id = f"C{random.randint(90000, 90999)}" # bogus + else: + cust_id = random.choice(valid_customer_ids) + + # ~40% use European date format (intentional mess) + if random.random() < 0.40: + date_str = euro(order_date) + else: + date_str = iso(order_date) + + discount = round(random.uniform(0, 50), 2) if random.random() < 0.35 else 0.0 + status = random.choices(ORDER_STATUSES, weights=STATUS_WEIGHTS)[0] + + orders.append({ + "order_id": oid, + "customer_id": cust_id, + "order_date": date_str, # mixed formats! + "order_status": status, + "payment_method": random.choice(PAYMENT_METHODS), + "shipping_city": random.choice(TURKISH_CITIES), + "discount_amount": discount, + "coupon_code": maybe_null(f"COUP{random.randint(100,999)}", pct=0.70), + "platform": random.choice(PLATFORMS), + }) + +write_csv(orders, "orders.csv") +print(f" orders: {len(orders):,} rows (40% euro dates, 5% bad customer_ids)") + + +# ── 5. ORDER_ITEMS ─────────────────────────────────────────────────────────── +order_items = [] +item_counter = 1 +for order in orders: + n_items = random.choices([1, 2, 3, 4, 5], weights=[0.45, 0.30, 0.14, 0.07, 0.04])[0] + chosen_products = random.sample(products, min(n_items, len(products))) + for prod in chosen_products: + # unit price occasionally differs (flash sale / negotiated price) + list_price = prod["list_price"] + if random.random() < 0.20: + unit_price = round(list_price * random.uniform(0.60, 0.95), 2) # flash sale + else: + unit_price = list_price + + order_items.append({ + "order_item_id": f"OI{item_counter:07d}", + "order_id": order["order_id"], + "product_id": prod["product_id"], + "seller_id": prod["seller_id"], + "quantity": random.randint(1, 4), + "unit_price": unit_price, + "list_price": list_price, + "discount_pct": round(random.uniform(0, 0.30), 3) if random.random() < 0.25 else 0.0, + }) + item_counter += 1 + +write_csv(order_items, "order_items.csv") +print(f" order_items:{len(order_items):,} rows") + + +# ── 6. SESSIONS ────────────────────────────────────────────────────────────── +sessions = [] +for i in range(1, N_SESSIONS + 1): + session_date = rand_date() + # ~20% anonymous sessions + cust_id = maybe_null(random.choice(valid_customer_ids), pct=0.20) + duration = random.randint(10, 3600) + page_views = max(1, int(duration / random.uniform(20, 120))) + is_converted = random.random() < 0.12 # 12% conversion rate + + sessions.append({ + "session_id": f"SS{i:07d}", + "customer_id": cust_id, + "session_date": iso(session_date), + "platform": random.choice(PLATFORMS), + "device_type": random.choice(DEVICES), + "page_views": page_views, + "duration_seconds": duration, + "is_converted": is_converted, + "utm_source": maybe_null( + random.choice(["google", "facebook", "instagram", "email", "direct", "affiliate"]), + pct=0.30 + ), + }) + +write_csv(sessions, "sessions.csv") +print(f" sessions: {len(sessions):,} rows") + + +print("\nDone. Files written to data/raw/") +print(f"Date range: {iso(START_DATE)} → {iso(END_DATE)}") \ No newline at end of file From 02864c99bcf701609c9416aa801a89e63745c67c Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 15:16:50 +0300 Subject: [PATCH 02/13] update readme.md --- README.md | 4 +- ecommerce_analytics_project_architecture.svg | 84 ++++++++++++++++++++ 2 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 ecommerce_analytics_project_architecture.svg diff --git a/README.md b/README.md index 5f28b19..71ffca3 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# e-commerce-analytics \ No newline at end of file +# e-commerce-analytics + +![alt text](ecommerce_analytics_project_architecture.svg) \ No newline at end of file diff --git a/ecommerce_analytics_project_architecture.svg b/ecommerce_analytics_project_architecture.svg new file mode 100644 index 0000000..5227e6c --- /dev/null +++ b/ecommerce_analytics_project_architecture.svg @@ -0,0 +1,84 @@ + + E-commerce Analytics Engineering Project Architecture + Five-layer pipeline: data generator, raw layer, dbt staging, dbt marts with star schema, and BI dashboard + + + + + + + + + + Data generator + Python · Faker · e-commerce domain + + generate + orders · customers + products · sessions + + + + + + + + Raw layer + DuckDB · Parquet · source tables + + ingest + schema-on-read + immutable sources + + + + + + + + dbt staging models + stg_* · clean · typed · tested + + stage + rename · cast · dedupe + dbt tests + docs + + + + + + + + dbt marts — star schema + fact_orders · dims · SCD Type 2 + + model + fact_orders + dim_customer (SCD2) + dim_product · dim_date + + + + + + + + BI dashboard + metrics + Evidence.dev · single source of truth + + serve + GMV · AOV · retention + self-serve SQL queries + + + + + Git · GitHub Actions + CI · dbt build on PR + + + + + + domain: trendyol-style e-commerce · orders · customers · products · sellers + \ No newline at end of file From b794da45f144c513437169df47864c5549487fb6 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 16:03:43 +0300 Subject: [PATCH 03/13] setup dbt --- ecom/dbt_project.yml | 22 +++++ ecom/models/staging/_schema.yml | 110 ++++++++++++++++++++++++ ecom/models/staging/_sources.yml | 19 ++++ ecom/models/staging/stg_customers.sql | 57 ++++++++++++ ecom/models/staging/stg_order_items.sql | 47 ++++++++++ ecom/models/staging/stg_orders.sql | 55 ++++++++++++ ecom/models/staging/stg_products.sql | 33 +++++++ ecom/models/staging/stg_sellers.sql | 26 ++++++ ecom/models/staging/stg_sessions.sql | 28 ++++++ ecom/profiles.yml | 7 ++ logs/dbt.log | 99 +++++++++++++++++++++ scripts/load_raw.py | 48 +++++++++++ 12 files changed, 551 insertions(+) create mode 100644 ecom/dbt_project.yml create mode 100644 ecom/models/staging/_schema.yml create mode 100644 ecom/models/staging/_sources.yml create mode 100644 ecom/models/staging/stg_customers.sql create mode 100644 ecom/models/staging/stg_order_items.sql create mode 100644 ecom/models/staging/stg_orders.sql create mode 100644 ecom/models/staging/stg_products.sql create mode 100644 ecom/models/staging/stg_sellers.sql create mode 100644 ecom/models/staging/stg_sessions.sql create mode 100644 ecom/profiles.yml create mode 100644 logs/dbt.log create mode 100644 scripts/load_raw.py diff --git a/ecom/dbt_project.yml b/ecom/dbt_project.yml new file mode 100644 index 0000000..b0a753c --- /dev/null +++ b/ecom/dbt_project.yml @@ -0,0 +1,22 @@ +name: ecom +version: '1.0.0' +config-version: 2 + +profile: ecom + +model-paths: ["models"] +test-paths: ["tests"] +macro-paths: ["macros"] +snapshot-paths: ["snapshots"] + +target-path: "target" +clean-targets: ["target", "dbt_packages"] + +models: + ecom: + staging: + +materialized: view + +schema: staging + marts: + +materialized: table + +schema: marts diff --git a/ecom/models/staging/_schema.yml b/ecom/models/staging/_schema.yml new file mode 100644 index 0000000..be0a667 --- /dev/null +++ b/ecom/models/staging/_schema.yml @@ -0,0 +1,110 @@ +version: 2 + +models: + - name: stg_customers + description: "Cleaned, deduplicated customer records. One row per unique email." + columns: + - name: customer_id + description: "Primary key" + data_tests: + - unique + - not_null + - name: email + data_tests: + - unique + - not_null + - name: customer_tier + data_tests: + - accepted_values: + values: ['bronze', 'silver', 'gold'] + - name: signup_date + data_tests: + - not_null + + - name: stg_sellers + description: "Cleaned seller accounts." + columns: + - name: seller_id + data_tests: + - unique + - not_null + - name: rating + data_tests: + - not_null + + - name: stg_products + description: "Cleaned product listings with derived margin." + columns: + - name: product_id + data_tests: + - unique + - not_null + - name: seller_id + data_tests: + - not_null + - relationships: + to: ref('stg_sellers') + field: seller_id + + - name: stg_orders + description: > + Cleaned orders. Mixed date formats resolved via TRY_STRPTIME. + Orphaned customer_ids removed. + columns: + - name: order_id + data_tests: + - unique + - not_null + - name: customer_id + data_tests: + - not_null + - relationships: + to: ref('stg_customers') + field: customer_id + - name: order_date + data_tests: + - not_null + - name: order_status + data_tests: + - accepted_values: + values: ['pending', 'processing', 'shipped', 'delivered', 'cancelled', 'returned'] + - name: payment_method + data_tests: + - accepted_values: + values: ['credit_card', 'debit_card', 'bank_transfer', 'cash_on_delivery', 'wallet'] + + - name: stg_order_items + description: "Cleaned order line items with flash-sale flag and line revenue." + columns: + - name: order_item_id + data_tests: + - unique + - not_null + - name: order_id + data_tests: + - not_null + - relationships: + to: ref('stg_orders') + field: order_id + - name: product_id + data_tests: + - not_null + - relationships: + to: ref('stg_products') + field: product_id + + - name: stg_sessions + description: "App/web sessions. customer_id is null for anonymous sessions." + columns: + - name: session_id + data_tests: + - unique + - not_null + - name: platform + data_tests: + - accepted_values: + values: ['ios', 'android', 'web'] + - name: device_type + data_tests: + - accepted_values: + values: ['mobile', 'desktop', 'tablet'] diff --git a/ecom/models/staging/_sources.yml b/ecom/models/staging/_sources.yml new file mode 100644 index 0000000..f48b15b --- /dev/null +++ b/ecom/models/staging/_sources.yml @@ -0,0 +1,19 @@ +version: 2 + +sources: + - name: raw + description: "Raw CSV files loaded into DuckDB from data/raw/" + schema: raw + tables: + - name: customers + description: "Raw customer registrations — contains duplicates and null cities" + - name: sellers + description: "Raw seller accounts" + - name: products + description: "Raw product listings with cost and list price" + - name: orders + description: "Raw orders — mixed date formats (ISO and dd/mm/yyyy)" + - name: order_items + description: "Raw order line items — unit price may differ from list price" + - name: sessions + description: "Raw app/web sessions — 20% anonymous (null customer_id)" diff --git a/ecom/models/staging/stg_customers.sql b/ecom/models/staging/stg_customers.sql new file mode 100644 index 0000000..94d83ba --- /dev/null +++ b/ecom/models/staging/stg_customers.sql @@ -0,0 +1,57 @@ +/* + stg_customers + ------------- + - Renames columns to project convention + - Casts signup_date to DATE + - Deduplicates re-registered customers (keeps the earliest signup per email) + - Replaces empty city strings with NULL + - Excludes soft-deleted records +*/ + +with source as ( + select * from {{ source('raw', 'customers') }} +), + +renamed as ( + select + customer_id, + first_name, + last_name, + lower(trim(email)) as email, + phone, + nullif(trim(city), '') as city, + country, + lower(customer_tier) as customer_tier, + cast(signup_date as date) as signup_date, + cast(is_deleted as boolean) as is_deleted + from source +), + +deduped as ( + -- Keep earliest signup per email (first registration wins) + select *, + row_number() over ( + partition by email + order by signup_date asc + ) as rn + from renamed +), + +final as ( + select + customer_id, + first_name, + last_name, + email, + phone, + city, + country, + customer_tier, + signup_date, + is_deleted + from deduped + where rn = 1 + and is_deleted = false +) + +select * from final diff --git a/ecom/models/staging/stg_order_items.sql b/ecom/models/staging/stg_order_items.sql new file mode 100644 index 0000000..44ef2d5 --- /dev/null +++ b/ecom/models/staging/stg_order_items.sql @@ -0,0 +1,47 @@ +/* + stg_order_items + --------------- + - Casts numeric columns + - Adds derived column: is_flash_sale flag when unit_price < list_price + - Filters items whose order_id no longer exists after stg_orders cleanup +*/ + +with source as ( + select * from {{ source('raw', 'order_items') }} +), + +valid_orders as ( + select order_id from {{ ref('stg_orders') }} +), + +casted as ( + -- cast first in a separate CTE so arithmetic below works on typed values + select + order_item_id, + order_id, + product_id, + seller_id, + cast(quantity as integer) as quantity, + cast(unit_price as decimal(10,2)) as unit_price, + cast(list_price as decimal(10,2)) as list_price, + cast(discount_pct as decimal(6,4)) as discount_pct + from source + where order_id in (select order_id from valid_orders) +), + +renamed as ( + select + order_item_id, + order_id, + product_id, + seller_id, + quantity, + unit_price, + list_price, + discount_pct, + unit_price < list_price as is_flash_sale, + round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue + from casted +) + +select * from renamed diff --git a/ecom/models/staging/stg_orders.sql b/ecom/models/staging/stg_orders.sql new file mode 100644 index 0000000..09e6a70 --- /dev/null +++ b/ecom/models/staging/stg_orders.sql @@ -0,0 +1,55 @@ +/* + stg_orders + ---------- + - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy). + We COALESCE two TRY_STRPTIME calls to handle both safely. + - Filters rows where the date cannot be parsed (data quality guard) + - Filters orphaned orders (customer_id not in stg_customers) + - Casts and standardises order_status and payment_method +*/ + +with source as ( + select * from {{ source('raw', 'orders') }} +), + +date_parsed as ( + select + order_id, + customer_id, + -- Try ISO first, then dd/mm/yyyy — whichever parses wins + coalesce( + try_strptime(order_date, '%Y-%m-%d'), + try_strptime(order_date, '%d/%m/%Y') + ) as order_date, + order_status, + payment_method, + shipping_city, + cast(discount_amount as decimal(10,2)) as discount_amount, + nullif(trim(coupon_code), '') as coupon_code, + lower(platform) as platform + from source +), + +valid_customers as ( + select customer_id from {{ ref('stg_customers') }} +), + +final as ( + select + o.order_id, + o.customer_id, + o.order_date, + o.order_status, + o.payment_method, + o.shipping_city, + o.discount_amount, + o.coupon_code, + o.platform + from date_parsed o + -- Drop unparseable dates + where o.order_date is not null + -- Drop orphaned customer_ids (referential integrity fix) + and o.customer_id in (select customer_id from valid_customers) +) + +select * from final diff --git a/ecom/models/staging/stg_products.sql b/ecom/models/staging/stg_products.sql new file mode 100644 index 0000000..dc8a21c --- /dev/null +++ b/ecom/models/staging/stg_products.sql @@ -0,0 +1,33 @@ +/* + stg_products + ------------ + - Casts price columns and boolean + - Derives gross_margin_pct for later mart use + - Filters inactive products are kept (marts can filter by is_active) +*/ + +with source as ( + select * from {{ source('raw', 'products') }} +), + +final as ( + select + product_id, + trim(product_name) as product_name, + trim(category) as category, + trim(subcategory) as subcategory, + seller_id, + cast(list_price as decimal(10,2)) as list_price, + cast(cost_price as decimal(10,2)) as cost_price, + round( + (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2))) + / nullif(cast(list_price as decimal(10,2)), 0), + 4 + ) as gross_margin_pct, + cast(is_active as boolean) as is_active, + cast(stock_qty as integer) as stock_qty, + cast(created_at as date) as created_at + from source +) + +select * from final diff --git a/ecom/models/staging/stg_sellers.sql b/ecom/models/staging/stg_sellers.sql new file mode 100644 index 0000000..c6720ee --- /dev/null +++ b/ecom/models/staging/stg_sellers.sql @@ -0,0 +1,26 @@ +/* + stg_sellers + ----------- + - Casts joined_date to DATE + - Casts is_verified to boolean + - Standardises category casing +*/ + +with source as ( + select * from {{ source('raw', 'sellers') }} +), + +final as ( + select + seller_id, + trim(seller_name) as seller_name, + trim(category) as category, + city, + cast(is_verified as boolean) as is_verified, + cast(joined_date as date) as joined_date, + cast(rating as decimal(3,1)) as rating, + cast(total_reviews as integer) as total_reviews + from source +) + +select * from final diff --git a/ecom/models/staging/stg_sessions.sql b/ecom/models/staging/stg_sessions.sql new file mode 100644 index 0000000..37238c7 --- /dev/null +++ b/ecom/models/staging/stg_sessions.sql @@ -0,0 +1,28 @@ +/* + stg_sessions + ------------ + - Null customer_id = anonymous session (kept, not filtered) + - Derives session_duration_mins for readability + - Casts is_converted to boolean +*/ + +with source as ( + select * from {{ source('raw', 'sessions') }} +), + +final as ( + select + session_id, + nullif(trim(customer_id), '') as customer_id, -- preserve anonymous + cast(session_date as date) as session_date, + lower(platform) as platform, + lower(device_type) as device_type, + cast(page_views as integer) as page_views, + cast(duration_seconds as integer) as duration_seconds, + round(cast(duration_seconds as decimal) / 60, 2) as duration_mins, + cast(is_converted as boolean) as is_converted, + nullif(trim(utm_source), '') as utm_source + from source +) + +select * from final diff --git a/ecom/profiles.yml b/ecom/profiles.yml new file mode 100644 index 0000000..802da62 --- /dev/null +++ b/ecom/profiles.yml @@ -0,0 +1,7 @@ +ecom: + target: dev + outputs: + dev: + type: duckdb + path: "{{ env_var('DBT_DUCKDB_PATH', '../data/ecom.duckdb') }}" + threads: 4 diff --git a/logs/dbt.log b/logs/dbt.log new file mode 100644 index 0000000..fa16201 --- /dev/null +++ b/logs/dbt.log @@ -0,0 +1,99 @@ +15:53:41.761275 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} + + +============================== 15:53:41.764006 | 8992d520-3f40-4fe1-b9e8-629c37027ccf ============================== +15:53:41.764006 [info ] [MainThread]: Running with dbt=1.11.8 +15:53:41.764349 [debug] [MainThread]: running dbt with arguments {'profiles_dir': '/Users/burakkurt/.dbt', 'debug': 'False', 'no_print': 'None', 'introspect': 'True', 'fail_fast': 'False', 'static_parser': 'True', 'warn_error': 'None', 'version_check': 'True', 'target_path': 'None', 'use_experimental_parser': 'False', 'cache_selected_only': 'False', 'indirect_selection': 'eager', 'empty': 'None', 'log_cache_events': 'False', 'log_path': 'logs', 'use_colors': 'True', 'invocation_command': 'dbt init ecom', 'quiet': 'False', 'printer_width': '80', 'partial_parse': 'True', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'send_anonymous_usage_stats': 'True', 'write_json': 'True', 'log_format': 'default'} +15:53:41.769114 [info ] [MainThread]: Creating dbt configuration folder at /Users/burakkurt/.dbt +15:53:41.770078 [debug] [MainThread]: Starter project path: /Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/include/starter_project +15:53:41.773084 [info ] [MainThread]: +Your new dbt project "ecom" was created! + +For more information on how to configure the profiles.yml file, +please consult the dbt documentation here: + + https://docs.getdbt.com/docs/configure-your-profile + +One more thing: + +Need help? Don't hesitate to reach out to us via GitHub issues or on Slack: + + https://community.getdbt.com/ + +Happy modeling! + +15:53:41.773518 [info ] [MainThread]: Setting up your profile. +15:54:31.183182 [error] [MainThread]: Encountered an error: + +15:54:31.188817 [error] [MainThread]: Traceback (most recent call last): + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/cli/requires.py", line 182, in wrapper + result, success = func(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/cli/requires.py", line 128, in wrapper + return func(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^ + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/cli/main.py", line 488, in init + results = task.run() + ^^^^^^^^^^ + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/task/init.py", line 346, in run + self.setup_profile(profile_name) + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/task/init.py", line 261, in setup_profile + adapter = self.ask_for_adapter_choice() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/task/init.py", line 242, in ask_for_adapter_choice + numeric_choice = click.prompt(prompt_msg, type=click.INT) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/click/termui.py", line 171, in prompt + value = prompt_func(prompt) + ^^^^^^^^^^^^^^^^^^^ + File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/click/termui.py", line 154, in prompt_func + raise Abort() from None +click.exceptions.Abort + +15:54:31.206706 [debug] [MainThread]: Resource report: {"command_name": "init", "command_success": false, "command_wall_clock_time": 49.48307, "process_in_blocks": "0", "process_kernel_time": 0.183808, "process_mem_max_rss": "109461504", "process_out_blocks": "0", "process_user_time": 1.031185} +15:54:31.207812 [debug] [MainThread]: Command `dbt init` failed at 15:54:31.207653 after 49.48 seconds +15:54:31.208415 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} +15:54:31.208967 [debug] [MainThread]: Flushing usage events +15:54:33.635946 [debug] [MainThread]: An error was encountered while trying to flush usage events +15:55:00.471539 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} + + +============================== 15:55:00.474047 | b8e102a5-c54f-4dae-a2e0-bf72f0ca52d4 ============================== +15:55:00.474047 [info ] [MainThread]: Running with dbt=1.11.8 +15:55:00.474381 [debug] [MainThread]: running dbt with arguments {'static_parser': 'True', 'introspect': 'True', 'target_path': 'None', 'quiet': 'False', 'partial_parse': 'True', 'printer_width': '80', 'use_experimental_parser': 'False', 'fail_fast': 'False', 'indirect_selection': 'eager', 'log_path': 'logs', 'log_cache_events': 'False', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'use_colors': 'True', 'profiles_dir': '/Users/burakkurt/.dbt', 'send_anonymous_usage_stats': 'True', 'cache_selected_only': 'False', 'write_json': 'True', 'no_print': 'None', 'warn_error': 'None', 'version_check': 'True', 'log_format': 'default', 'invocation_command': 'dbt init ecom', 'debug': 'False', 'empty': 'None'} +15:55:00.479486 [info ] [MainThread]: A project called ecom already exists here. +15:55:00.481033 [debug] [MainThread]: Resource report: {"command_name": "init", "command_success": true, "command_wall_clock_time": 0.045052126, "process_in_blocks": "0", "process_kernel_time": 0.103239, "process_mem_max_rss": "109510656", "process_out_blocks": "0", "process_user_time": 0.737951} +15:55:00.481421 [debug] [MainThread]: Command `dbt init` succeeded at 15:55:00.481361 after 0.05 seconds +15:55:00.481638 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} +15:55:00.481835 [debug] [MainThread]: Flushing usage events +15:55:01.587175 [debug] [MainThread]: An error was encountered while trying to flush usage events +15:55:16.043391 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} + + +============================== 15:55:16.045756 | a4d6830b-3701-458b-82cd-5cfc064e15ac ============================== +15:55:16.045756 [info ] [MainThread]: Running with dbt=1.11.8 +15:55:16.046089 [debug] [MainThread]: running dbt with arguments {'quiet': 'False', 'introspect': 'True', 'no_print': 'None', 'static_parser': 'True', 'use_experimental_parser': 'False', 'printer_width': '80', 'profiles_dir': '/Users/burakkurt/.dbt', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'write_json': 'True', 'target_path': 'None', 'invocation_command': 'dbt init ecom', 'empty': 'None', 'fail_fast': 'False', 'indirect_selection': 'eager', 'cache_selected_only': 'False', 'debug': 'False', 'log_path': 'logs', 'warn_error': 'None', 'version_check': 'True', 'send_anonymous_usage_stats': 'True', 'use_colors': 'True', 'log_format': 'default', 'partial_parse': 'True', 'log_cache_events': 'False'} +15:55:16.053517 [debug] [MainThread]: Starter project path: /Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/include/starter_project +15:55:16.057025 [info ] [MainThread]: +Your new dbt project "ecom" was created! + +For more information on how to configure the profiles.yml file, +please consult the dbt documentation here: + + https://docs.getdbt.com/docs/configure-your-profile + +One more thing: + +Need help? Don't hesitate to reach out to us via GitHub issues or on Slack: + + https://community.getdbt.com/ + +Happy modeling! + +15:55:16.057278 [info ] [MainThread]: Setting up your profile. +15:55:19.096736 [info ] [MainThread]: Profile ecom written to /Users/burakkurt/.dbt/profiles.yml using target's sample configuration. Once updated, you'll be able to start developing with dbt. +15:55:19.098974 [debug] [MainThread]: Resource report: {"command_name": "init", "command_success": true, "command_wall_clock_time": 3.0911944, "process_in_blocks": "0", "process_kernel_time": 0.125557, "process_mem_max_rss": "125534208", "process_out_blocks": "0", "process_user_time": 0.782515} +15:55:19.099359 [debug] [MainThread]: Command `dbt init` succeeded at 15:55:19.099284 after 3.09 seconds +15:55:19.099636 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} +15:55:19.099923 [debug] [MainThread]: Flushing usage events +15:55:20.321234 [debug] [MainThread]: An error was encountered while trying to flush usage events diff --git a/scripts/load_raw.py b/scripts/load_raw.py new file mode 100644 index 0000000..577b776 --- /dev/null +++ b/scripts/load_raw.py @@ -0,0 +1,48 @@ +""" +Loads all CSVs from data/raw/ into DuckDB as tables under the 'raw' schema. +Run this once before `dbt build`. + +Usage (from repo root): + python scripts/load_raw.py +""" + +import duckdb +import os + +RAW_DIR = os.path.join(os.path.dirname(__file__), "..", "data", "raw") +DB_PATH = os.path.join(os.path.dirname(__file__), "..", "data", "ecom.duckdb") + +TABLES = [ + "customers", + "sellers", + "products", + "orders", + "order_items", + "sessions", + "customer_changes", +] + +def main(): + con = duckdb.connect(DB_PATH) + con.execute("CREATE SCHEMA IF NOT EXISTS raw") + + for table in TABLES: + csv_path = os.path.join(RAW_DIR, f"{table}.csv") + if not os.path.exists(csv_path): + print(f" SKIP {table}.csv not found") + continue + + con.execute(f"DROP TABLE IF EXISTS raw.{table}") + con.execute(f""" + CREATE TABLE raw.{table} AS + SELECT * FROM read_csv_auto('{csv_path}', all_varchar=true) + """) + + count = con.execute(f"SELECT COUNT(*) FROM raw.{table}").fetchone()[0] + print(f" OK raw.{table:<15} {count:>6,} rows") + + con.close() + print(f"\nDatabase written to: {DB_PATH}") + +if __name__ == "__main__": + main() From 54234b12ce0af8b24d2b3e74e091bdcf1ac70359 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 16:06:47 +0300 Subject: [PATCH 04/13] feat: add DuckDB loader and dbt staging layer --- ecom/.user.yml | 1 + ecom/logs/dbt.log | 2066 +++++++++++++++++ ...omers_cb6541bdfe84b095a285bc588250ad14.sql | 22 + ...rders_438d464f50d5ac4083558b138f2a2e48.sql | 22 + ...rders_8aab560aa5989dcef0692b4b063c0cfa.sql | 22 + ...sions_5e2893171212959110c437f6a1c9f537.sql | 22 + ...g_sessions_platform__ios__android__web.sql | 22 + .../not_null_stg_customers_customer_id.sql | 11 + .../not_null_stg_customers_email.sql | 11 + .../not_null_stg_customers_signup_date.sql | 11 + .../not_null_stg_order_items_order_id.sql | 11 + ...not_null_stg_order_items_order_item_id.sql | 11 + .../not_null_stg_order_items_product_id.sql | 11 + .../not_null_stg_orders_customer_id.sql | 11 + .../not_null_stg_orders_order_date.sql | 11 + .../not_null_stg_orders_order_id.sql | 11 + .../not_null_stg_products_product_id.sql | 11 + .../not_null_stg_products_seller_id.sql | 11 + .../not_null_stg_sellers_rating.sql | 11 + .../not_null_stg_sellers_seller_id.sql | 11 + .../not_null_stg_sessions_session_id.sql | 11 + ...items_85fcc371bcae46211ede4a7fca07283f.sql | 25 + ...items_b3d7cdbd08ebfad01e3226c01c10bba0.sql | 25 + ...rders_96411fe0c89b49c3f4da955dfd358ba0.sql | 25 + ...ducts_150cf84beadbe29e9fadd6ea69c29620.sql | 25 + .../unique_stg_customers_customer_id.sql | 14 + .../unique_stg_customers_email.sql | 14 + .../unique_stg_order_items_order_item_id.sql | 14 + .../unique_stg_orders_order_id.sql | 14 + .../unique_stg_products_product_id.sql | 14 + .../unique_stg_sellers_seller_id.sql | 14 + .../unique_stg_sessions_session_id.sql | 14 + .../ecom/models/staging/stg_customers.sql | 57 + .../ecom/models/staging/stg_order_items.sql | 47 + .../ecom/models/staging/stg_orders.sql | 55 + .../ecom/models/staging/stg_products.sql | 33 + .../ecom/models/staging/stg_sellers.sql | 26 + .../ecom/models/staging/stg_sessions.sql | 28 + ecom/target/graph.gpickle | Bin 0 -> 40392 bytes ecom/target/graph_summary.json | 1 + ecom/target/manifest.json | 1 + ecom/target/partial_parse.msgpack | Bin 0 -> 595159 bytes ...omers_cb6541bdfe84b095a285bc588250ad14.sql | 36 + ...rders_438d464f50d5ac4083558b138f2a2e48.sql | 36 + ...rders_8aab560aa5989dcef0692b4b063c0cfa.sql | 36 + ...sions_5e2893171212959110c437f6a1c9f537.sql | 36 + ...g_sessions_platform__ios__android__web.sql | 36 + .../not_null_stg_customers_customer_id.sql | 25 + .../not_null_stg_customers_email.sql | 25 + .../not_null_stg_customers_signup_date.sql | 25 + .../not_null_stg_order_items_order_id.sql | 25 + ...not_null_stg_order_items_order_item_id.sql | 25 + .../not_null_stg_order_items_product_id.sql | 25 + .../not_null_stg_orders_customer_id.sql | 25 + .../not_null_stg_orders_order_date.sql | 25 + .../not_null_stg_orders_order_id.sql | 25 + .../not_null_stg_products_product_id.sql | 25 + .../not_null_stg_products_seller_id.sql | 25 + .../not_null_stg_sellers_rating.sql | 25 + .../not_null_stg_sellers_seller_id.sql | 25 + .../not_null_stg_sessions_session_id.sql | 25 + ...items_85fcc371bcae46211ede4a7fca07283f.sql | 39 + ...items_b3d7cdbd08ebfad01e3226c01c10bba0.sql | 39 + ...rders_96411fe0c89b49c3f4da955dfd358ba0.sql | 39 + ...ducts_150cf84beadbe29e9fadd6ea69c29620.sql | 39 + .../unique_stg_customers_customer_id.sql | 28 + .../unique_stg_customers_email.sql | 28 + .../unique_stg_order_items_order_item_id.sql | 28 + .../unique_stg_orders_order_id.sql | 28 + .../unique_stg_products_product_id.sql | 28 + .../unique_stg_sellers_seller_id.sql | 28 + .../unique_stg_sessions_session_id.sql | 28 + .../run/ecom/models/staging/stg_customers.sql | 61 + .../ecom/models/staging/stg_order_items.sql | 51 + .../run/ecom/models/staging/stg_orders.sql | 59 + .../run/ecom/models/staging/stg_products.sql | 37 + .../run/ecom/models/staging/stg_sellers.sql | 30 + .../run/ecom/models/staging/stg_sessions.sql | 32 + ecom/target/run_results.json | 1 + ecom/target/semantic_manifest.json | 1 + 80 files changed, 3931 insertions(+) create mode 100644 ecom/.user.yml create mode 100644 ecom/logs/dbt.log create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql create mode 100644 ecom/target/compiled/ecom/models/staging/stg_customers.sql create mode 100644 ecom/target/compiled/ecom/models/staging/stg_order_items.sql create mode 100644 ecom/target/compiled/ecom/models/staging/stg_orders.sql create mode 100644 ecom/target/compiled/ecom/models/staging/stg_products.sql create mode 100644 ecom/target/compiled/ecom/models/staging/stg_sellers.sql create mode 100644 ecom/target/compiled/ecom/models/staging/stg_sessions.sql create mode 100644 ecom/target/graph.gpickle create mode 100644 ecom/target/graph_summary.json create mode 100644 ecom/target/manifest.json create mode 100644 ecom/target/partial_parse.msgpack create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql create mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql create mode 100644 ecom/target/run/ecom/models/staging/stg_customers.sql create mode 100644 ecom/target/run/ecom/models/staging/stg_order_items.sql create mode 100644 ecom/target/run/ecom/models/staging/stg_orders.sql create mode 100644 ecom/target/run/ecom/models/staging/stg_products.sql create mode 100644 ecom/target/run/ecom/models/staging/stg_sellers.sql create mode 100644 ecom/target/run/ecom/models/staging/stg_sessions.sql create mode 100644 ecom/target/run_results.json create mode 100644 ecom/target/semantic_manifest.json diff --git a/ecom/.user.yml b/ecom/.user.yml new file mode 100644 index 0000000..21c1fd0 --- /dev/null +++ b/ecom/.user.yml @@ -0,0 +1 @@ +id: ffdb83f1-7624-4929-a57f-3814645ccb07 diff --git a/ecom/logs/dbt.log b/ecom/logs/dbt.log new file mode 100644 index 0000000..5b9ef68 --- /dev/null +++ b/ecom/logs/dbt.log @@ -0,0 +1,2066 @@ +16:05:15.166283 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} + + +============================== 16:05:15.169144 | c1e051fe-2da2-4723-894a-d9f18a60ef10 ============================== +16:05:15.169144 [info ] [MainThread]: Running with dbt=1.11.8 +16:05:15.169479 [debug] [MainThread]: running dbt with arguments {'use_colors': 'True', 'cache_selected_only': 'False', 'static_parser': 'True', 'no_print': 'None', 'fail_fast': 'False', 'introspect': 'True', 'log_format': 'default', 'target_path': 'None', 'warn_error': 'None', 'profiles_dir': '.', 'send_anonymous_usage_stats': 'True', 'use_experimental_parser': 'False', 'indirect_selection': 'eager', 'log_cache_events': 'False', 'quiet': 'False', 'partial_parse': 'True', 'invocation_command': 'dbt build --profiles-dir .', 'debug': 'False', 'empty': 'False', 'write_json': 'True', 'log_path': '/Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/logs', 'version_check': 'True', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'printer_width': '80'} +16:05:15.280507 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'project_id', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:15.312782 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'adapter_info', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:15.314476 [info ] [MainThread]: Registered adapter: duckdb=1.10.1 +16:05:15.388549 [debug] [MainThread]: checksum: 7d524ac048c2100769df89d592e662e060a73ca564e31bd9c2a37efdfe8d8ab6, vars: {}, profile: , target: , version: 1.11.8 +16:05:15.388992 [info ] [MainThread]: Unable to do partial parsing because saved manifest not found. Starting full parse. +16:05:15.389200 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'partial_parser', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:15.975429 [warn ] [MainThread]: [WARNING][MissingArgumentsPropertyInGenericTestDeprecation]: Deprecated +functionality +Found top-level arguments to test `accepted_values` defined on 'stg_customers' +in package 'ecom' (models/staging/_schema.yml). Arguments to generic tests +should be nested under the `arguments` property. +16:05:15.975764 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'deprecation', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'property_': 'warn', 'context': []} +16:05:16.116183 [warn ] [MainThread]: [WARNING]: Configuration paths exist in your dbt_project.yml file which do not apply to any resources. +There are 1 unused configuration paths: +- models.ecom.marts +16:05:16.121221 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'load_project', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.173796 [debug] [MainThread]: Wrote artifact WritableManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/manifest.json +16:05:16.175225 [debug] [MainThread]: Wrote artifact SemanticManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/semantic_manifest.json +16:05:16.190047 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'resource_counts', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.190360 [info ] [MainThread]: Found 6 models, 30 data tests, 6 sources, 475 macros +16:05:16.192307 [info ] [MainThread]: +16:05:16.192508 [info ] [MainThread]: Concurrency: 4 threads (target='dev') +16:05:16.192669 [info ] [MainThread]: +16:05:16.192917 [debug] [MainThread]: Acquiring new duckdb connection 'master' +16:05:16.195412 [debug] [ThreadPool]: Acquiring new duckdb connection 'list_ecom' +16:05:16.261871 [debug] [ThreadPool]: Using duckdb connection "list_ecom" +16:05:16.262126 [debug] [ThreadPool]: On list_ecom: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "list_ecom"} */ + + + select schema_name + from system.information_schema.schemata + + where lower(catalog_name) = '"ecom"' + + + +16:05:16.262287 [debug] [ThreadPool]: Opening a new connection, currently in state init +16:05:16.271680 [debug] [ThreadPool]: SQL status: OK in 0.009 seconds +16:05:16.272442 [debug] [ThreadPool]: On list_ecom: Close +16:05:16.272827 [debug] [ThreadPool]: Re-using an available connection from the pool (formerly list_ecom, now create_ecom_main_staging) +16:05:16.273096 [debug] [ThreadPool]: Creating schema "database: "ecom" +schema: "main_staging" +" +16:05:16.276556 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" +16:05:16.276740 [debug] [ThreadPool]: On create_ecom_main_staging: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "create_ecom_main_staging"} */ + + + select type from duckdb_databases() + where lower(database_name)='ecom' + and type='sqlite' + + +16:05:16.276886 [debug] [ThreadPool]: Opening a new connection, currently in state closed +16:05:16.277563 [debug] [ThreadPool]: SQL status: OK in 0.001 seconds +16:05:16.278228 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" +16:05:16.278375 [debug] [ThreadPool]: On create_ecom_main_staging: BEGIN +16:05:16.278589 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds +16:05:16.278723 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" +16:05:16.278860 [debug] [ThreadPool]: On create_ecom_main_staging: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "create_ecom_main_staging"} */ + + + + create schema if not exists "ecom"."main_staging" + +16:05:16.279106 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds +16:05:16.279529 [debug] [ThreadPool]: On create_ecom_main_staging: COMMIT +16:05:16.279680 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" +16:05:16.279810 [debug] [ThreadPool]: On create_ecom_main_staging: COMMIT +16:05:16.280224 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds +16:05:16.280372 [debug] [ThreadPool]: On create_ecom_main_staging: Close +16:05:16.281005 [debug] [ThreadPool]: Re-using an available connection from the pool (formerly create_ecom_main_staging, now list_ecom_main_staging) +16:05:16.283864 [debug] [ThreadPool]: Using duckdb connection "list_ecom_main_staging" +16:05:16.284040 [debug] [ThreadPool]: On list_ecom_main_staging: BEGIN +16:05:16.284184 [debug] [ThreadPool]: Opening a new connection, currently in state closed +16:05:16.284435 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds +16:05:16.284586 [debug] [ThreadPool]: Using duckdb connection "list_ecom_main_staging" +16:05:16.284737 [debug] [ThreadPool]: On list_ecom_main_staging: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "list_ecom_main_staging"} */ +select + 'ecom' as database, + table_name as name, + table_schema as schema, + CASE table_type + WHEN 'BASE TABLE' THEN 'table' + WHEN 'VIEW' THEN 'view' + WHEN 'LOCAL TEMPORARY' THEN 'table' + END as type + from system.information_schema.tables + where lower(table_schema) = 'main_staging' + and lower(table_catalog) = 'ecom' + +16:05:16.286822 [debug] [ThreadPool]: SQL status: OK in 0.002 seconds +16:05:16.287466 [debug] [ThreadPool]: On list_ecom_main_staging: ROLLBACK +16:05:16.288330 [debug] [ThreadPool]: Failed to rollback 'list_ecom_main_staging' +16:05:16.288485 [debug] [ThreadPool]: On list_ecom_main_staging: Close +16:05:16.288727 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'runnable_timing', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.288977 [debug] [MainThread]: Using duckdb connection "master" +16:05:16.289130 [debug] [MainThread]: On master: BEGIN +16:05:16.289266 [debug] [MainThread]: Opening a new connection, currently in state init +16:05:16.289511 [debug] [MainThread]: SQL status: OK in 0.000 seconds +16:05:16.289655 [debug] [MainThread]: On master: COMMIT +16:05:16.289795 [debug] [MainThread]: Using duckdb connection "master" +16:05:16.289932 [debug] [MainThread]: On master: COMMIT +16:05:16.290137 [debug] [MainThread]: SQL status: OK in 0.000 seconds +16:05:16.290276 [debug] [MainThread]: On master: Close +16:05:16.291806 [debug] [Thread-1 (]: Began running node model.ecom.stg_customers +16:05:16.292009 [debug] [Thread-2 (]: Began running node model.ecom.stg_products +16:05:16.292186 [debug] [Thread-3 (]: Began running node model.ecom.stg_sellers +16:05:16.292554 [debug] [Thread-4 (]: Began running node model.ecom.stg_sessions +16:05:16.292419 [info ] [Thread-1 (]: 1 of 36 START sql view model main_staging.stg_customers ........................ [RUN] +16:05:16.292821 [info ] [Thread-2 (]: 2 of 36 START sql view model main_staging.stg_products ......................... [RUN] +16:05:16.293088 [info ] [Thread-3 (]: 3 of 36 START sql view model main_staging.stg_sellers .......................... [RUN] +16:05:16.293344 [info ] [Thread-4 (]: 4 of 36 START sql view model main_staging.stg_sessions ......................... [RUN] +16:05:16.293568 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly list_ecom_main_staging, now model.ecom.stg_customers) +16:05:16.293797 [debug] [Thread-2 (]: Acquiring new duckdb connection 'model.ecom.stg_products' +16:05:16.294006 [debug] [Thread-3 (]: Acquiring new duckdb connection 'model.ecom.stg_sellers' +16:05:16.294204 [debug] [Thread-4 (]: Acquiring new duckdb connection 'model.ecom.stg_sessions' +16:05:16.294372 [debug] [Thread-1 (]: Began compiling node model.ecom.stg_customers +16:05:16.294535 [debug] [Thread-2 (]: Began compiling node model.ecom.stg_products +16:05:16.294694 [debug] [Thread-3 (]: Began compiling node model.ecom.stg_sellers +16:05:16.294850 [debug] [Thread-4 (]: Began compiling node model.ecom.stg_sessions +16:05:16.298818 [debug] [Thread-1 (]: Writing injected SQL for node "model.ecom.stg_customers" +16:05:16.300583 [debug] [Thread-2 (]: Writing injected SQL for node "model.ecom.stg_products" +16:05:16.302174 [debug] [Thread-3 (]: Writing injected SQL for node "model.ecom.stg_sellers" +16:05:16.303785 [debug] [Thread-4 (]: Writing injected SQL for node "model.ecom.stg_sessions" +16:05:16.304581 [debug] [Thread-4 (]: Began executing node model.ecom.stg_sessions +16:05:16.304785 [debug] [Thread-2 (]: Began executing node model.ecom.stg_products +16:05:16.304974 [debug] [Thread-1 (]: Began executing node model.ecom.stg_customers +16:05:16.305148 [debug] [Thread-3 (]: Began executing node model.ecom.stg_sellers +16:05:16.322643 [debug] [Thread-2 (]: Writing runtime sql for node "model.ecom.stg_products" +16:05:16.323439 [debug] [Thread-4 (]: Writing runtime sql for node "model.ecom.stg_sessions" +16:05:16.325024 [debug] [Thread-1 (]: Writing runtime sql for node "model.ecom.stg_customers" +16:05:16.326573 [debug] [Thread-3 (]: Writing runtime sql for node "model.ecom.stg_sellers" +16:05:16.327354 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" +16:05:16.327597 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" +16:05:16.327787 [debug] [Thread-4 (]: On model.ecom.stg_sessions: BEGIN +16:05:16.327967 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" +16:05:16.328131 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" +16:05:16.328297 [debug] [Thread-1 (]: On model.ecom.stg_customers: BEGIN +16:05:16.328480 [debug] [Thread-4 (]: Opening a new connection, currently in state init +16:05:16.328659 [debug] [Thread-2 (]: On model.ecom.stg_products: BEGIN +16:05:16.328825 [debug] [Thread-3 (]: On model.ecom.stg_sellers: BEGIN +16:05:16.328990 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.329295 [debug] [Thread-2 (]: Opening a new connection, currently in state init +16:05:16.329488 [debug] [Thread-3 (]: Opening a new connection, currently in state init +16:05:16.329674 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.329958 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.330183 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" +16:05:16.330362 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.330523 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" +16:05:16.330686 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.330878 [debug] [Thread-4 (]: On model.ecom.stg_sessions: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sessions"} */ + + + create view "ecom"."main_staging"."stg_sessions__dbt_tmp" as ( + /* + stg_sessions + ------------ + - Null customer_id = anonymous session (kept, not filtered) + - Derives session_duration_mins for readability + - Casts is_converted to boolean +*/ + +with source as ( + select * from "ecom"."raw"."sessions" +), + +final as ( + select + session_id, + nullif(trim(customer_id), '') as customer_id, -- preserve anonymous + cast(session_date as date) as session_date, + lower(platform) as platform, + lower(device_type) as device_type, + cast(page_views as integer) as page_views, + cast(duration_seconds as integer) as duration_seconds, + round(cast(duration_seconds as decimal) / 60, 2) as duration_mins, + cast(is_converted as boolean) as is_converted, + nullif(trim(utm_source), '') as utm_source + from source +) + +select * from final + ); + +16:05:16.331070 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" +16:05:16.331265 [debug] [Thread-1 (]: On model.ecom.stg_customers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_customers"} */ + + + create view "ecom"."main_staging"."stg_customers__dbt_tmp" as ( + /* + stg_customers + ------------- + - Renames columns to project convention + - Casts signup_date to DATE + - Deduplicates re-registered customers (keeps the earliest signup per email) + - Replaces empty city strings with NULL + - Excludes soft-deleted records +*/ + +with source as ( + select * from "ecom"."raw"."customers" +), + +renamed as ( + select + customer_id, + first_name, + last_name, + lower(trim(email)) as email, + phone, + nullif(trim(city), '') as city, + country, + lower(customer_tier) as customer_tier, + cast(signup_date as date) as signup_date, + cast(is_deleted as boolean) as is_deleted + from source +), + +deduped as ( + -- Keep earliest signup per email (first registration wins) + select *, + row_number() over ( + partition by email + order by signup_date asc + ) as rn + from renamed +), + +final as ( + select + customer_id, + first_name, + last_name, + email, + phone, + city, + country, + customer_tier, + signup_date, + is_deleted + from deduped + where rn = 1 + and is_deleted = false +) + +select * from final + ); + +16:05:16.331461 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" +16:05:16.331764 [debug] [Thread-2 (]: On model.ecom.stg_products: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_products"} */ + + + create view "ecom"."main_staging"."stg_products__dbt_tmp" as ( + /* + stg_products + ------------ + - Casts price columns and boolean + - Derives gross_margin_pct for later mart use + - Filters inactive products are kept (marts can filter by is_active) +*/ + +with source as ( + select * from "ecom"."raw"."products" +), + +final as ( + select + product_id, + trim(product_name) as product_name, + trim(category) as category, + trim(subcategory) as subcategory, + seller_id, + cast(list_price as decimal(10,2)) as list_price, + cast(cost_price as decimal(10,2)) as cost_price, + round( + (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2))) + / nullif(cast(list_price as decimal(10,2)), 0), + 4 + ) as gross_margin_pct, + cast(is_active as boolean) as is_active, + cast(stock_qty as integer) as stock_qty, + cast(created_at as date) as created_at + from source +) + +select * from final + ); + +16:05:16.332143 [debug] [Thread-3 (]: On model.ecom.stg_sellers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sellers"} */ + + + create view "ecom"."main_staging"."stg_sellers__dbt_tmp" as ( + /* + stg_sellers + ----------- + - Casts joined_date to DATE + - Casts is_verified to boolean + - Standardises category casing +*/ + +with source as ( + select * from "ecom"."raw"."sellers" +), + +final as ( + select + seller_id, + trim(seller_name) as seller_name, + trim(category) as category, + city, + cast(is_verified as boolean) as is_verified, + cast(joined_date as date) as joined_date, + cast(rating as decimal(3,1)) as rating, + cast(total_reviews as integer) as total_reviews + from source +) + +select * from final + ); + +16:05:16.332518 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.336013 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" +16:05:16.336242 [debug] [Thread-4 (]: On model.ecom.stg_sessions: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sessions"} */ +alter view "ecom"."main_staging"."stg_sessions__dbt_tmp" rename to "stg_sessions" +16:05:16.336521 [debug] [Thread-3 (]: SQL status: OK in 0.004 seconds +16:05:16.336713 [debug] [Thread-1 (]: SQL status: OK in 0.005 seconds +16:05:16.336881 [debug] [Thread-2 (]: SQL status: OK in 0.005 seconds +16:05:16.338372 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" +16:05:16.339786 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" +16:05:16.339944 [debug] [Thread-4 (]: SQL status: OK in 0.004 seconds +16:05:16.341442 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" +16:05:16.341632 [debug] [Thread-3 (]: On model.ecom.stg_sellers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sellers"} */ +alter view "ecom"."main_staging"."stg_sellers__dbt_tmp" rename to "stg_sellers" +16:05:16.341827 [debug] [Thread-1 (]: On model.ecom.stg_customers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_customers"} */ +alter view "ecom"."main_staging"."stg_customers__dbt_tmp" rename to "stg_customers" +16:05:16.347635 [debug] [Thread-4 (]: On model.ecom.stg_sessions: COMMIT +16:05:16.347844 [debug] [Thread-2 (]: On model.ecom.stg_products: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_products"} */ +alter view "ecom"."main_staging"."stg_products__dbt_tmp" rename to "stg_products" +16:05:16.348215 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" +16:05:16.348419 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.348593 [debug] [Thread-1 (]: SQL status: OK in 0.000 seconds +16:05:16.348811 [debug] [Thread-4 (]: On model.ecom.stg_sessions: COMMIT +16:05:16.349492 [debug] [Thread-3 (]: On model.ecom.stg_sellers: COMMIT +16:05:16.350221 [debug] [Thread-1 (]: On model.ecom.stg_customers: COMMIT +16:05:16.350447 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds +16:05:16.350731 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" +16:05:16.350942 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.351122 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" +16:05:16.351811 [debug] [Thread-2 (]: On model.ecom.stg_products: COMMIT +16:05:16.351994 [debug] [Thread-3 (]: On model.ecom.stg_sellers: COMMIT +16:05:16.355504 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" +16:05:16.355705 [debug] [Thread-1 (]: On model.ecom.stg_customers: COMMIT +16:05:16.355891 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" +16:05:16.356121 [debug] [Thread-4 (]: On model.ecom.stg_sessions: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sessions"} */ + + drop view if exists "ecom"."main_staging"."stg_sessions__dbt_backup" cascade + +16:05:16.356352 [debug] [Thread-2 (]: On model.ecom.stg_products: COMMIT +16:05:16.356524 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.356690 [debug] [Thread-1 (]: SQL status: OK in 0.000 seconds +16:05:16.356969 [debug] [Thread-4 (]: SQL status: OK in 0.000 seconds +16:05:16.358388 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" +16:05:16.358634 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds +16:05:16.359906 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" +16:05:16.361096 [debug] [Thread-4 (]: On model.ecom.stg_sessions: Close +16:05:16.361298 [debug] [Thread-3 (]: On model.ecom.stg_sellers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sellers"} */ + + drop view if exists "ecom"."main_staging"."stg_sellers__dbt_backup" cascade + +16:05:16.362451 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" +16:05:16.362640 [debug] [Thread-1 (]: On model.ecom.stg_customers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_customers"} */ + + drop view if exists "ecom"."main_staging"."stg_customers__dbt_backup" cascade + +16:05:16.363313 [debug] [Thread-2 (]: On model.ecom.stg_products: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_products"} */ + + drop view if exists "ecom"."main_staging"."stg_products__dbt_backup" cascade + +16:05:16.363490 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.364465 [debug] [Thread-3 (]: On model.ecom.stg_sellers: Close +16:05:16.364664 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.364953 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.365554 [debug] [Thread-1 (]: On model.ecom.stg_customers: Close +16:05:16.366200 [debug] [Thread-2 (]: On model.ecom.stg_products: Close +16:05:16.366410 [debug] [Thread-4 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.366583 [debug] [Thread-3 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.366831 [debug] [Thread-1 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.367045 [debug] [Thread-2 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.367347 [info ] [Thread-4 (]: 4 of 36 OK created sql view model main_staging.stg_sessions .................... [OK in 0.07s] +16:05:16.367666 [info ] [Thread-3 (]: 3 of 36 OK created sql view model main_staging.stg_sellers ..................... [OK in 0.07s] +16:05:16.367980 [info ] [Thread-1 (]: 1 of 36 OK created sql view model main_staging.stg_customers ................... [OK in 0.07s] +16:05:16.368277 [info ] [Thread-2 (]: 2 of 36 OK created sql view model main_staging.stg_products .................... [OK in 0.07s] +16:05:16.368572 [debug] [Thread-4 (]: Finished running node model.ecom.stg_sessions +16:05:16.368810 [debug] [Thread-3 (]: Finished running node model.ecom.stg_sellers +16:05:16.369051 [debug] [Thread-1 (]: Finished running node model.ecom.stg_customers +16:05:16.369284 [debug] [Thread-2 (]: Finished running node model.ecom.stg_products +16:05:16.369612 [debug] [Thread-4 (]: Began running node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 +16:05:16.369813 [debug] [Thread-3 (]: Began running node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e +16:05:16.370046 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_sessions_session_id.2e872a126d +16:05:16.370279 [debug] [Thread-2 (]: Began running node test.ecom.unique_stg_sessions_session_id.ce45726d03 +16:05:16.370495 [info ] [Thread-4 (]: 5 of 36 START test accepted_values_stg_sessions_device_type__mobile__desktop__tablet [RUN] +16:05:16.370694 [info ] [Thread-3 (]: 6 of 36 START test accepted_values_stg_sessions_platform__ios__android__web .... [RUN] +16:05:16.370887 [info ] [Thread-1 (]: 7 of 36 START test not_null_stg_sessions_session_id ............................ [RUN] +16:05:16.371080 [info ] [Thread-2 (]: 8 of 36 START test unique_stg_sessions_session_id .............................. [RUN] +16:05:16.371291 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly model.ecom.stg_sessions, now test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4) +16:05:16.371480 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly model.ecom.stg_sellers, now test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e) +16:05:16.371652 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly model.ecom.stg_customers, now test.ecom.not_null_stg_sessions_session_id.2e872a126d) +16:05:16.371824 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly model.ecom.stg_products, now test.ecom.unique_stg_sessions_session_id.ce45726d03) +16:05:16.371994 [debug] [Thread-4 (]: Began compiling node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 +16:05:16.372165 [debug] [Thread-3 (]: Began compiling node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e +16:05:16.372328 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_sessions_session_id.2e872a126d +16:05:16.372484 [debug] [Thread-2 (]: Began compiling node test.ecom.unique_stg_sessions_session_id.ce45726d03 +16:05:16.375200 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" +16:05:16.377529 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" +16:05:16.381996 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_sessions_session_id.2e872a126d" +16:05:16.385296 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.unique_stg_sessions_session_id.ce45726d03" +16:05:16.385986 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_sessions_session_id.2e872a126d +16:05:16.392175 [debug] [Thread-2 (]: Began executing node test.ecom.unique_stg_sessions_session_id.ce45726d03 +16:05:16.395048 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_sessions_session_id.2e872a126d" +16:05:16.395245 [debug] [Thread-3 (]: Began executing node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e +16:05:16.395421 [debug] [Thread-4 (]: Began executing node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 +16:05:16.397785 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.unique_stg_sessions_session_id.ce45726d03" +16:05:16.399101 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" +16:05:16.400300 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" +16:05:16.400739 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sessions_session_id.2e872a126d" +16:05:16.400927 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: BEGIN +16:05:16.401094 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.401443 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_sessions_session_id.ce45726d03" +16:05:16.401632 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: BEGIN +16:05:16.401798 [debug] [Thread-2 (]: Opening a new connection, currently in state closed +16:05:16.402044 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" +16:05:16.402215 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: BEGIN +16:05:16.402370 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.402603 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.402770 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_sessions_session_id.ce45726d03" +16:05:16.402942 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_sessions_session_id.ce45726d03"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + session_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_sessions" +where session_id is not null +group by session_id +having count(*) > 1 + + + + + + + ) dbt_internal_test +16:05:16.403206 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds +16:05:16.403369 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sessions_session_id.2e872a126d" +16:05:16.403547 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_sessions_session_id.2e872a126d"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select session_id +from "ecom"."main_staging"."stg_sessions" +where session_id is null + + + + + + + ) dbt_internal_test +16:05:16.403731 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.403941 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" +16:05:16.404170 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" +16:05:16.404375 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: BEGIN +16:05:16.404619 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + platform as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_sessions" + group by platform + +) + +select * +from all_values +where value_field not in ( + 'ios','android','web' +) + + + + + + + ) dbt_internal_test +16:05:16.404846 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.405049 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.407217 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: ROLLBACK +16:05:16.407476 [debug] [Thread-4 (]: SQL status: OK in 0.003 seconds +16:05:16.407670 [debug] [Thread-2 (]: SQL status: OK in 0.005 seconds +16:05:16.408126 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_sessions_session_id.2e872a126d' +16:05:16.408297 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" +16:05:16.408476 [debug] [Thread-3 (]: SQL status: OK in 0.003 seconds +16:05:16.408703 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: Close +16:05:16.409388 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: ROLLBACK +16:05:16.409599 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + device_type as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_sessions" + group by device_type + +) + +select * +from all_values +where value_field not in ( + 'mobile','desktop','tablet' +) + + + + + + + ) dbt_internal_test +16:05:16.410357 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: ROLLBACK +16:05:16.410842 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.unique_stg_sessions_session_id.ce45726d03' +16:05:16.411204 [info ] [Thread-1 (]: 7 of 36 PASS not_null_stg_sessions_session_id .................................. [PASS in 0.04s] +16:05:16.411711 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e' +16:05:16.411894 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: Close +16:05:16.412080 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.412316 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_sessions_session_id.2e872a126d +16:05:16.412486 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: Close +16:05:16.413394 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: ROLLBACK +16:05:16.413584 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_sellers_rating.973b52995f +16:05:16.412744 [info ] [Thread-2 (]: 8 of 36 PASS unique_stg_sessions_session_id .................................... [PASS in 0.04s] +16:05:16.414357 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4' +16:05:16.413924 [info ] [Thread-3 (]: 6 of 36 PASS accepted_values_stg_sessions_platform__ios__android__web .......... [PASS in 0.04s] +16:05:16.414540 [info ] [Thread-1 (]: 9 of 36 START test not_null_stg_sellers_rating ................................. [RUN] +16:05:16.414844 [debug] [Thread-2 (]: Finished running node test.ecom.unique_stg_sessions_session_id.ce45726d03 +16:05:16.415020 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: Close +16:05:16.415240 [debug] [Thread-3 (]: Finished running node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e +16:05:16.415425 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_sessions_session_id.2e872a126d, now test.ecom.not_null_stg_sellers_rating.973b52995f) +16:05:16.415607 [debug] [Thread-2 (]: Began running node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 +16:05:16.415859 [info ] [Thread-4 (]: 5 of 36 PASS accepted_values_stg_sessions_device_type__mobile__desktop__tablet . [PASS in 0.04s] +16:05:16.416060 [debug] [Thread-3 (]: Began running node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 +16:05:16.416272 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_sellers_rating.973b52995f +16:05:16.416488 [info ] [Thread-2 (]: 10 of 36 START test not_null_stg_sellers_seller_id ............................. [RUN] +16:05:16.416743 [debug] [Thread-4 (]: Finished running node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 +16:05:16.416910 [info ] [Thread-3 (]: 11 of 36 START test unique_stg_sellers_seller_id ............................... [RUN] +16:05:16.419344 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_sellers_rating.973b52995f" +16:05:16.419618 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_sessions_session_id.ce45726d03, now test.ecom.not_null_stg_sellers_seller_id.35d0bce315) +16:05:16.419841 [debug] [Thread-4 (]: Began running node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 +16:05:16.420027 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e, now test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8) +16:05:16.420296 [debug] [Thread-2 (]: Began compiling node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 +16:05:16.420483 [info ] [Thread-4 (]: 12 of 36 START test accepted_values_stg_customers_customer_tier__bronze__silver__gold [RUN] +16:05:16.420848 [debug] [Thread-3 (]: Began compiling node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 +16:05:16.423775 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" +16:05:16.424016 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_sellers_rating.973b52995f +16:05:16.424291 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4, now test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40) +16:05:16.426285 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" +16:05:16.427600 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_sellers_rating.973b52995f" +16:05:16.427831 [debug] [Thread-4 (]: Began compiling node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 +16:05:16.428129 [debug] [Thread-2 (]: Began executing node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 +16:05:16.430256 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" +16:05:16.431554 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" +16:05:16.431795 [debug] [Thread-3 (]: Began executing node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 +16:05:16.432034 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_rating.973b52995f" +16:05:16.433337 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" +16:05:16.433614 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: BEGIN +16:05:16.433935 [debug] [Thread-4 (]: Began executing node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 +16:05:16.434168 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" +16:05:16.434360 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.435691 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" +16:05:16.435887 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: BEGIN +16:05:16.436080 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" +16:05:16.436413 [debug] [Thread-2 (]: Opening a new connection, currently in state closed +16:05:16.436629 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: BEGIN +16:05:16.436817 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds +16:05:16.437156 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" +16:05:16.437363 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.437552 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.437714 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_rating.973b52995f" +16:05:16.437898 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: BEGIN +16:05:16.438115 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" +16:05:16.438294 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_sellers_rating.973b52995f"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select rating +from "ecom"."main_staging"."stg_sellers" +where rating is null + + + + + + + ) dbt_internal_test +16:05:16.438465 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.438633 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.438819 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_sellers_seller_id.35d0bce315"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select seller_id +from "ecom"."main_staging"."stg_sellers" +where seller_id is null + + + + + + + ) dbt_internal_test +16:05:16.439059 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" +16:05:16.439405 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.439600 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + seller_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_sellers" +where seller_id is not null +group by seller_id +having count(*) > 1 + + + + + + + ) dbt_internal_test +16:05:16.439830 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" +16:05:16.440005 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.440167 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.440414 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + customer_tier as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_customers" + group by customer_tier + +) + +select * +from all_values +where value_field not in ( + 'bronze','silver','gold' +) + + + + + + + ) dbt_internal_test +16:05:16.441294 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: ROLLBACK +16:05:16.441552 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.442239 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: ROLLBACK +16:05:16.442803 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.not_null_stg_sellers_seller_id.35d0bce315' +16:05:16.443323 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_sellers_rating.973b52995f' +16:05:16.443532 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: Close +16:05:16.444699 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: ROLLBACK +16:05:16.445110 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: Close +16:05:16.445711 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8' +16:05:16.446037 [info ] [Thread-2 (]: 10 of 36 PASS not_null_stg_sellers_seller_id ................................... [PASS in 0.03s] +16:05:16.446499 [debug] [Thread-4 (]: SQL status: OK in 0.005 seconds +16:05:16.446338 [info ] [Thread-1 (]: 9 of 36 PASS not_null_stg_sellers_rating ....................................... [PASS in 0.03s] +16:05:16.446741 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: Close +16:05:16.447002 [debug] [Thread-2 (]: Finished running node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 +16:05:16.447295 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_sellers_rating.973b52995f +16:05:16.447977 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: ROLLBACK +16:05:16.448236 [info ] [Thread-3 (]: 11 of 36 PASS unique_stg_sellers_seller_id ..................................... [PASS in 0.03s] +16:05:16.448472 [debug] [Thread-2 (]: Began running node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa +16:05:16.448704 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_customers_email.d7cf761533 +16:05:16.449241 [debug] [Thread-3 (]: Finished running node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 +16:05:16.449775 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40' +16:05:16.449971 [info ] [Thread-2 (]: 13 of 36 START test not_null_stg_customers_customer_id ......................... [RUN] +16:05:16.450170 [info ] [Thread-1 (]: 14 of 36 START test not_null_stg_customers_email ............................... [RUN] +16:05:16.450399 [debug] [Thread-3 (]: Began running node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 +16:05:16.450600 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: Close +16:05:16.450803 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_sellers_seller_id.35d0bce315, now test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa) +16:05:16.451000 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_sellers_rating.973b52995f, now test.ecom.not_null_stg_customers_email.d7cf761533) +16:05:16.451181 [info ] [Thread-3 (]: 15 of 36 START test not_null_stg_customers_signup_date ......................... [RUN] +16:05:16.451434 [debug] [Thread-2 (]: Began compiling node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa +16:05:16.451706 [info ] [Thread-4 (]: 12 of 36 PASS accepted_values_stg_customers_customer_tier__bronze__silver__gold [PASS in 0.03s] +16:05:16.451919 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_customers_email.d7cf761533 +16:05:16.452113 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8, now test.ecom.not_null_stg_customers_signup_date.ef12d9c335) +16:05:16.455435 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" +16:05:16.455720 [debug] [Thread-4 (]: Finished running node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 +16:05:16.457857 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_customers_email.d7cf761533" +16:05:16.458097 [debug] [Thread-3 (]: Began compiling node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 +16:05:16.458555 [debug] [Thread-4 (]: Began running node test.ecom.unique_stg_customers_customer_id.c7614daada +16:05:16.461279 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" +16:05:16.461559 [info ] [Thread-4 (]: 16 of 36 START test unique_stg_customers_customer_id ........................... [RUN] +16:05:16.461781 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_customers_email.d7cf761533 +16:05:16.462072 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40, now test.ecom.unique_stg_customers_customer_id.c7614daada) +16:05:16.463357 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_customers_email.d7cf761533" +16:05:16.463546 [debug] [Thread-2 (]: Began executing node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa +16:05:16.463741 [debug] [Thread-4 (]: Began compiling node test.ecom.unique_stg_customers_customer_id.c7614daada +16:05:16.465456 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" +16:05:16.465705 [debug] [Thread-3 (]: Began executing node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 +16:05:16.468176 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.unique_stg_customers_customer_id.c7614daada" +16:05:16.469642 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" +16:05:16.469911 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_customers_email.d7cf761533" +16:05:16.470217 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" +16:05:16.470447 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: BEGIN +16:05:16.470637 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: BEGIN +16:05:16.470832 [debug] [Thread-4 (]: Began executing node test.ecom.unique_stg_customers_customer_id.c7614daada +16:05:16.471005 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.471200 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" +16:05:16.471362 [debug] [Thread-2 (]: Opening a new connection, currently in state closed +16:05:16.472544 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.unique_stg_customers_customer_id.c7614daada" +16:05:16.472832 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: BEGIN +16:05:16.473053 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds +16:05:16.473250 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds +16:05:16.473439 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.473654 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_customers_email.d7cf761533" +16:05:16.473845 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" +16:05:16.474028 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_customers_customer_id.c7614daada" +16:05:16.474251 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_customers_email.d7cf761533"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select email +from "ecom"."main_staging"."stg_customers" +where email is null + + + + + + + ) dbt_internal_test +16:05:16.474451 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select customer_id +from "ecom"."main_staging"."stg_customers" +where customer_id is null + + + + + + + ) dbt_internal_test +16:05:16.474640 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.474799 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: BEGIN +16:05:16.475094 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" +16:05:16.475280 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.475473 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_customers_signup_date.ef12d9c335"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select signup_date +from "ecom"."main_staging"."stg_customers" +where signup_date is null + + + + + + + ) dbt_internal_test +16:05:16.475825 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.476002 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_customers_customer_id.c7614daada" +16:05:16.476184 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.476386 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_customers_customer_id.c7614daada"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + customer_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_customers" +where customer_id is not null +group by customer_id +having count(*) > 1 + + + + + + + ) dbt_internal_test +16:05:16.476596 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds +16:05:16.477621 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: ROLLBACK +16:05:16.477874 [debug] [Thread-3 (]: SQL status: OK in 0.002 seconds +16:05:16.478436 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa' +16:05:16.478656 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: Close +16:05:16.479370 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: ROLLBACK +16:05:16.480131 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: ROLLBACK +16:05:16.480357 [debug] [Thread-4 (]: SQL status: OK in 0.003 seconds +16:05:16.480654 [info ] [Thread-2 (]: 13 of 36 PASS not_null_stg_customers_customer_id ............................... [PASS in 0.03s] +16:05:16.481173 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.not_null_stg_customers_signup_date.ef12d9c335' +16:05:16.481607 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_customers_email.d7cf761533' +16:05:16.481898 [debug] [Thread-2 (]: Finished running node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa +16:05:16.482602 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: ROLLBACK +16:05:16.482772 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: Close +16:05:16.482955 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: Close +16:05:16.483203 [debug] [Thread-2 (]: Began running node test.ecom.unique_stg_customers_email.1ebcb2333e +16:05:16.483758 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.unique_stg_customers_customer_id.c7614daada' +16:05:16.484113 [info ] [Thread-3 (]: 15 of 36 PASS not_null_stg_customers_signup_date ............................... [PASS in 0.03s] +16:05:16.484375 [info ] [Thread-1 (]: 14 of 36 PASS not_null_stg_customers_email ..................................... [PASS in 0.03s] +16:05:16.484806 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: Close +16:05:16.484526 [info ] [Thread-2 (]: 17 of 36 START test unique_stg_customers_email ................................. [RUN] +16:05:16.485124 [debug] [Thread-3 (]: Finished running node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 +16:05:16.485389 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_customers_email.d7cf761533 +16:05:16.485844 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa, now test.ecom.unique_stg_customers_email.1ebcb2333e) +16:05:16.485666 [info ] [Thread-4 (]: 16 of 36 PASS unique_stg_customers_customer_id ................................. [PASS in 0.02s] +16:05:16.486128 [debug] [Thread-3 (]: Began running node test.ecom.not_null_stg_products_product_id.6373b0acf3 +16:05:16.486316 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 +16:05:16.486512 [debug] [Thread-2 (]: Began compiling node test.ecom.unique_stg_customers_email.1ebcb2333e +16:05:16.486744 [debug] [Thread-4 (]: Finished running node test.ecom.unique_stg_customers_customer_id.c7614daada +16:05:16.486917 [info ] [Thread-3 (]: 18 of 36 START test not_null_stg_products_product_id ........................... [RUN] +16:05:16.487095 [info ] [Thread-1 (]: 19 of 36 START test not_null_stg_products_seller_id ............................ [RUN] +16:05:16.489329 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.unique_stg_customers_email.1ebcb2333e" +16:05:16.489552 [debug] [Thread-4 (]: Began running node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 +16:05:16.489784 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_customers_signup_date.ef12d9c335, now test.ecom.not_null_stg_products_product_id.6373b0acf3) +16:05:16.489966 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_customers_email.d7cf761533, now test.ecom.not_null_stg_products_seller_id.0ba77d68d6) +16:05:16.490199 [info ] [Thread-4 (]: 20 of 36 START test relationships_stg_products_seller_id__seller_id__ref_stg_sellers_ [RUN] +16:05:16.490412 [debug] [Thread-3 (]: Began compiling node test.ecom.not_null_stg_products_product_id.6373b0acf3 +16:05:16.490595 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 +16:05:16.490804 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_customers_customer_id.c7614daada, now test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360) +16:05:16.492766 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.not_null_stg_products_product_id.6373b0acf3" +16:05:16.494835 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" +16:05:16.495048 [debug] [Thread-4 (]: Began compiling node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 +16:05:16.495234 [debug] [Thread-2 (]: Began executing node test.ecom.unique_stg_customers_email.1ebcb2333e +16:05:16.498954 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" +16:05:16.500450 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.unique_stg_customers_email.1ebcb2333e" +16:05:16.500813 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 +16:05:16.503173 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" +16:05:16.503523 [debug] [Thread-3 (]: Began executing node test.ecom.not_null_stg_products_product_id.6373b0acf3 +16:05:16.504793 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.not_null_stg_products_product_id.6373b0acf3" +16:05:16.505091 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_customers_email.1ebcb2333e" +16:05:16.505302 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: BEGIN +16:05:16.505525 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" +16:05:16.505725 [debug] [Thread-4 (]: Began executing node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 +16:05:16.505892 [debug] [Thread-2 (]: Opening a new connection, currently in state closed +16:05:16.506089 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_products_product_id.6373b0acf3" +16:05:16.506253 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: BEGIN +16:05:16.507451 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" +16:05:16.507741 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: BEGIN +16:05:16.507926 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.508105 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds +16:05:16.508299 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.508559 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" +16:05:16.508726 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_customers_email.1ebcb2333e" +16:05:16.508908 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.509113 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: BEGIN +16:05:16.509297 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_customers_email.1ebcb2333e"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + email as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_customers" +where email is not null +group by email +having count(*) > 1 + + + + + + + ) dbt_internal_test +16:05:16.509470 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.509639 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" +16:05:16.509800 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.510036 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_products_product_id.6373b0acf3" +16:05:16.510233 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_products_seller_id.0ba77d68d6"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select seller_id +from "ecom"."main_staging"."stg_products" +where seller_id is null + + + + + + + ) dbt_internal_test +16:05:16.510506 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_products_product_id.6373b0acf3"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select product_id +from "ecom"."main_staging"."stg_products" +where product_id is null + + + + + + + ) dbt_internal_test +16:05:16.510767 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.511134 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" +16:05:16.511557 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select seller_id as from_field + from "ecom"."main_staging"."stg_products" + where seller_id is not null +), + +parent as ( + select seller_id as to_field + from "ecom"."main_staging"."stg_sellers" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test +16:05:16.511947 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.512214 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds +16:05:16.513111 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: ROLLBACK +16:05:16.513842 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: ROLLBACK +16:05:16.514082 [debug] [Thread-2 (]: SQL status: OK in 0.004 seconds +16:05:16.514564 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_products_seller_id.0ba77d68d6' +16:05:16.514779 [debug] [Thread-4 (]: SQL status: OK in 0.003 seconds +16:05:16.515245 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.not_null_stg_products_product_id.6373b0acf3' +16:05:16.515474 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: Close +16:05:16.516152 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: ROLLBACK +16:05:16.516375 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: Close +16:05:16.517117 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: ROLLBACK +16:05:16.517463 [info ] [Thread-1 (]: 19 of 36 PASS not_null_stg_products_seller_id .................................. [PASS in 0.03s] +16:05:16.517979 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.unique_stg_customers_email.1ebcb2333e' +16:05:16.518228 [info ] [Thread-3 (]: 18 of 36 PASS not_null_stg_products_product_id ................................. [PASS in 0.03s] +16:05:16.518720 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360' +16:05:16.518968 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 +16:05:16.519149 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: Close +16:05:16.519380 [debug] [Thread-3 (]: Finished running node test.ecom.not_null_stg_products_product_id.6373b0acf3 +16:05:16.519544 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: Close +16:05:16.519733 [debug] [Thread-1 (]: Began running node test.ecom.unique_stg_products_product_id.7d950a1467 +16:05:16.520040 [info ] [Thread-2 (]: 17 of 36 PASS unique_stg_customers_email ....................................... [PASS in 0.03s] +16:05:16.520300 [info ] [Thread-4 (]: 20 of 36 PASS relationships_stg_products_seller_id__seller_id__ref_stg_sellers_ [PASS in 0.03s] +16:05:16.520508 [info ] [Thread-1 (]: 21 of 36 START test unique_stg_products_product_id ............................. [RUN] +16:05:16.520766 [debug] [Thread-2 (]: Finished running node test.ecom.unique_stg_customers_email.1ebcb2333e +16:05:16.520999 [debug] [Thread-4 (]: Finished running node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 +16:05:16.521181 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_products_seller_id.0ba77d68d6, now test.ecom.unique_stg_products_product_id.7d950a1467) +16:05:16.521454 [debug] [Thread-3 (]: Began running node model.ecom.stg_orders +16:05:16.521656 [debug] [Thread-1 (]: Began compiling node test.ecom.unique_stg_products_product_id.7d950a1467 +16:05:16.524192 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.unique_stg_products_product_id.7d950a1467" +16:05:16.521901 [info ] [Thread-3 (]: 22 of 36 START sql view model main_staging.stg_orders .......................... [RUN] +16:05:16.524514 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_products_product_id.6373b0acf3, now model.ecom.stg_orders) +16:05:16.524697 [debug] [Thread-3 (]: Began compiling node model.ecom.stg_orders +16:05:16.526332 [debug] [Thread-3 (]: Writing injected SQL for node "model.ecom.stg_orders" +16:05:16.526581 [debug] [Thread-1 (]: Began executing node test.ecom.unique_stg_products_product_id.7d950a1467 +16:05:16.527913 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.unique_stg_products_product_id.7d950a1467" +16:05:16.528160 [debug] [Thread-3 (]: Began executing node model.ecom.stg_orders +16:05:16.529798 [debug] [Thread-3 (]: Writing runtime sql for node "model.ecom.stg_orders" +16:05:16.530090 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.unique_stg_products_product_id.7d950a1467" +16:05:16.530275 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: BEGIN +16:05:16.530503 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.530786 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" +16:05:16.530976 [debug] [Thread-3 (]: On model.ecom.stg_orders: BEGIN +16:05:16.531148 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.531301 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.531465 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.unique_stg_products_product_id.7d950a1467" +16:05:16.531685 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_products_product_id.7d950a1467"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + product_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_products" +where product_id is not null +group by product_id +having count(*) > 1 + + + + + + + ) dbt_internal_test +16:05:16.531936 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.532093 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" +16:05:16.532296 [debug] [Thread-3 (]: On model.ecom.stg_orders: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_orders"} */ + + + create view "ecom"."main_staging"."stg_orders__dbt_tmp" as ( + /* + stg_orders + ---------- + - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy). + We COALESCE two TRY_STRPTIME calls to handle both safely. + - Filters rows where the date cannot be parsed (data quality guard) + - Filters orphaned orders (customer_id not in stg_customers) + - Casts and standardises order_status and payment_method +*/ + +with source as ( + select * from "ecom"."raw"."orders" +), + +date_parsed as ( + select + order_id, + customer_id, + -- Try ISO first, then dd/mm/yyyy — whichever parses wins + coalesce( + try_strptime(order_date, '%Y-%m-%d'), + try_strptime(order_date, '%d/%m/%Y') + ) as order_date, + order_status, + payment_method, + shipping_city, + cast(discount_amount as decimal(10,2)) as discount_amount, + nullif(trim(coupon_code), '') as coupon_code, + lower(platform) as platform + from source +), + +valid_customers as ( + select customer_id from "ecom"."main_staging"."stg_customers" +), + +final as ( + select + o.order_id, + o.customer_id, + o.order_date, + o.order_status, + o.payment_method, + o.shipping_city, + o.discount_amount, + o.coupon_code, + o.platform + from date_parsed o + -- Drop unparseable dates + where o.order_date is not null + -- Drop orphaned customer_ids (referential integrity fix) + and o.customer_id in (select customer_id from valid_customers) +) + +select * from final + ); + +16:05:16.533017 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.533974 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: ROLLBACK +16:05:16.534253 [debug] [Thread-3 (]: SQL status: OK in 0.002 seconds +16:05:16.534743 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.unique_stg_products_product_id.7d950a1467' +16:05:16.536381 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" +16:05:16.536576 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: Close +16:05:16.536776 [debug] [Thread-3 (]: On model.ecom.stg_orders: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_orders"} */ +alter view "ecom"."main_staging"."stg_orders__dbt_tmp" rename to "stg_orders" +16:05:16.537111 [info ] [Thread-1 (]: 21 of 36 PASS unique_stg_products_product_id ................................... [PASS in 0.02s] +16:05:16.537458 [debug] [Thread-1 (]: Finished running node test.ecom.unique_stg_products_product_id.7d950a1467 +16:05:16.537655 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.538416 [debug] [Thread-3 (]: On model.ecom.stg_orders: COMMIT +16:05:16.538594 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" +16:05:16.538752 [debug] [Thread-3 (]: On model.ecom.stg_orders: COMMIT +16:05:16.539172 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.541384 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" +16:05:16.541567 [debug] [Thread-3 (]: On model.ecom.stg_orders: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_orders"} */ + + drop view if exists "ecom"."main_staging"."stg_orders__dbt_backup" cascade + +16:05:16.541837 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.542459 [debug] [Thread-3 (]: On model.ecom.stg_orders: Close +16:05:16.542727 [debug] [Thread-3 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.543016 [info ] [Thread-3 (]: 22 of 36 OK created sql view model main_staging.stg_orders ..................... [OK in 0.02s] +16:05:16.543273 [debug] [Thread-3 (]: Finished running node model.ecom.stg_orders +16:05:16.543671 [debug] [Thread-2 (]: Began running node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 +16:05:16.543892 [debug] [Thread-4 (]: Began running node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 +16:05:16.544107 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 +16:05:16.544435 [debug] [Thread-3 (]: Began running node test.ecom.not_null_stg_orders_order_date.2177a3e8bb +16:05:16.544299 [info ] [Thread-2 (]: 23 of 36 START test accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned [RUN] +16:05:16.544666 [info ] [Thread-4 (]: 24 of 36 START test accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet [RUN] +16:05:16.544861 [info ] [Thread-1 (]: 25 of 36 START test not_null_stg_orders_customer_id ............................ [RUN] +16:05:16.545047 [info ] [Thread-3 (]: 26 of 36 START test not_null_stg_orders_order_date ............................. [RUN] +16:05:16.545276 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_customers_email.1ebcb2333e, now test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9) +16:05:16.545476 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360, now test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2) +16:05:16.545661 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_products_product_id.7d950a1467, now test.ecom.not_null_stg_orders_customer_id.af79d5e4b5) +16:05:16.545830 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly model.ecom.stg_orders, now test.ecom.not_null_stg_orders_order_date.2177a3e8bb) +16:05:16.545999 [debug] [Thread-2 (]: Began compiling node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 +16:05:16.546168 [debug] [Thread-4 (]: Began compiling node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 +16:05:16.546328 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 +16:05:16.546482 [debug] [Thread-3 (]: Began compiling node test.ecom.not_null_stg_orders_order_date.2177a3e8bb +16:05:16.548719 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" +16:05:16.551137 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" +16:05:16.553290 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" +16:05:16.555154 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" +16:05:16.555702 [debug] [Thread-3 (]: Began executing node test.ecom.not_null_stg_orders_order_date.2177a3e8bb +16:05:16.556965 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" +16:05:16.557205 [debug] [Thread-4 (]: Began executing node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 +16:05:16.558658 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" +16:05:16.558885 [debug] [Thread-2 (]: Began executing node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 +16:05:16.560398 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" +16:05:16.560674 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 +16:05:16.561874 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" +16:05:16.562236 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" +16:05:16.562455 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" +16:05:16.562655 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" +16:05:16.562838 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: BEGIN +16:05:16.563029 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: BEGIN +16:05:16.563226 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" +16:05:16.563416 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: BEGIN +16:05:16.563605 [debug] [Thread-2 (]: Opening a new connection, currently in state closed +16:05:16.563777 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.563936 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: BEGIN +16:05:16.564089 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.564412 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.564640 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.564807 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.565032 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.565205 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" +16:05:16.565381 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.565542 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" +16:05:16.565706 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" +16:05:16.565891 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + order_status as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_orders" + group by order_status + +) + +select * +from all_values +where value_field not in ( + 'pending','processing','shipped','delivered','cancelled','returned' +) + + + + + + + ) dbt_internal_test +16:05:16.566068 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" +16:05:16.566251 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + payment_method as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_orders" + group by payment_method + +) + +select * +from all_values +where value_field not in ( + 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet' +) + + + + + + + ) dbt_internal_test +16:05:16.566461 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_orders_order_date.2177a3e8bb"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_date +from "ecom"."main_staging"."stg_orders" +where order_date is null + + + + + + + ) dbt_internal_test +16:05:16.566793 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select customer_id +from "ecom"."main_staging"."stg_orders" +where customer_id is null + + + + + + + ) dbt_internal_test +16:05:16.572073 [debug] [Thread-1 (]: SQL status: OK in 0.005 seconds +16:05:16.573274 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: ROLLBACK +16:05:16.573551 [debug] [Thread-2 (]: SQL status: OK in 0.007 seconds +16:05:16.573761 [debug] [Thread-4 (]: SQL status: OK in 0.007 seconds +16:05:16.574243 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_orders_customer_id.af79d5e4b5' +16:05:16.574498 [debug] [Thread-3 (]: SQL status: OK in 0.007 seconds +16:05:16.575243 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: ROLLBACK +16:05:16.575427 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: Close +16:05:16.576106 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: ROLLBACK +16:05:16.576634 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9' +16:05:16.577298 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: ROLLBACK +16:05:16.577588 [info ] [Thread-1 (]: 25 of 36 PASS not_null_stg_orders_customer_id .................................. [PASS in 0.03s] +16:05:16.578086 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2' +16:05:16.578259 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: Close +16:05:16.578711 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.not_null_stg_orders_order_date.2177a3e8bb' +16:05:16.578958 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 +16:05:16.579140 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: Close +16:05:16.579328 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: Close +16:05:16.579587 [info ] [Thread-2 (]: 23 of 36 PASS accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned [PASS in 0.03s] +16:05:16.579826 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 +16:05:16.580170 [info ] [Thread-4 (]: 24 of 36 PASS accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet [PASS in 0.03s] +16:05:16.580433 [info ] [Thread-3 (]: 26 of 36 PASS not_null_stg_orders_order_date ................................... [PASS in 0.03s] +16:05:16.580697 [debug] [Thread-2 (]: Finished running node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 +16:05:16.580879 [info ] [Thread-1 (]: 27 of 36 START test not_null_stg_orders_order_id ............................... [RUN] +16:05:16.581148 [debug] [Thread-4 (]: Finished running node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 +16:05:16.581373 [debug] [Thread-3 (]: Finished running node test.ecom.not_null_stg_orders_order_date.2177a3e8bb +16:05:16.581560 [debug] [Thread-2 (]: Began running node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 +16:05:16.581772 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_orders_customer_id.af79d5e4b5, now test.ecom.not_null_stg_orders_order_id.81cfe2fe64) +16:05:16.581959 [debug] [Thread-4 (]: Began running node test.ecom.unique_stg_orders_order_id.e3b841c71a +16:05:16.582204 [info ] [Thread-2 (]: 28 of 36 START test relationships_stg_orders_customer_id__customer_id__ref_stg_customers_ [RUN] +16:05:16.582393 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 +16:05:16.582719 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9, now test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500) +16:05:16.582566 [info ] [Thread-4 (]: 29 of 36 START test unique_stg_orders_order_id ................................. [RUN] +16:05:16.585482 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" +16:05:16.585803 [debug] [Thread-2 (]: Began compiling node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 +16:05:16.586027 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2, now test.ecom.unique_stg_orders_order_id.e3b841c71a) +16:05:16.588705 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" +16:05:16.588915 [debug] [Thread-4 (]: Began compiling node test.ecom.unique_stg_orders_order_id.e3b841c71a +16:05:16.592028 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.unique_stg_orders_order_id.e3b841c71a" +16:05:16.592269 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 +16:05:16.593524 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" +16:05:16.593824 [debug] [Thread-2 (]: Began executing node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 +16:05:16.595061 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" +16:05:16.595271 [debug] [Thread-4 (]: Began executing node test.ecom.unique_stg_orders_order_id.e3b841c71a +16:05:16.596476 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.unique_stg_orders_order_id.e3b841c71a" +16:05:16.596750 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" +16:05:16.597018 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: BEGIN +16:05:16.597226 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" +16:05:16.597416 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.597603 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: BEGIN +16:05:16.597890 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_orders_order_id.e3b841c71a" +16:05:16.598070 [debug] [Thread-2 (]: Opening a new connection, currently in state closed +16:05:16.598250 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.598405 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: BEGIN +16:05:16.598618 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" +16:05:16.598788 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.598953 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.599124 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_orders_order_id.81cfe2fe64"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_id +from "ecom"."main_staging"."stg_orders" +where order_id is null + + + + + + + ) dbt_internal_test +16:05:16.599352 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" +16:05:16.599583 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.599796 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select customer_id as from_field + from "ecom"."main_staging"."stg_orders" + where customer_id is not null +), + +parent as ( + select customer_id as to_field + from "ecom"."main_staging"."stg_customers" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test +16:05:16.600016 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_orders_order_id.e3b841c71a" +16:05:16.600354 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_orders_order_id.e3b841c71a"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + order_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_orders" +where order_id is not null +group by order_id +having count(*) > 1 + + + + + + + ) dbt_internal_test +16:05:16.603959 [debug] [Thread-1 (]: SQL status: OK in 0.004 seconds +16:05:16.605129 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: ROLLBACK +16:05:16.605365 [debug] [Thread-2 (]: SQL status: OK in 0.005 seconds +16:05:16.605576 [debug] [Thread-4 (]: SQL status: OK in 0.005 seconds +16:05:16.606136 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_orders_order_id.81cfe2fe64' +16:05:16.606362 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: Close +16:05:16.607064 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: ROLLBACK +16:05:16.607709 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: ROLLBACK +16:05:16.608028 [info ] [Thread-1 (]: 27 of 36 PASS not_null_stg_orders_order_id ..................................... [PASS in 0.03s] +16:05:16.608532 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.unique_stg_orders_order_id.e3b841c71a' +16:05:16.608991 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500' +16:05:16.609246 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 +16:05:16.609426 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: Close +16:05:16.609599 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: Close +16:05:16.609927 [info ] [Thread-4 (]: 29 of 36 PASS unique_stg_orders_order_id ....................................... [PASS in 0.02s] +16:05:16.610403 [debug] [Thread-4 (]: Finished running node test.ecom.unique_stg_orders_order_id.e3b841c71a +16:05:16.610138 [info ] [Thread-2 (]: 28 of 36 PASS relationships_stg_orders_customer_id__customer_id__ref_stg_customers_ [PASS in 0.03s] +16:05:16.610737 [debug] [Thread-2 (]: Finished running node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 +16:05:16.611047 [debug] [Thread-3 (]: Began running node model.ecom.stg_order_items +16:05:16.611331 [info ] [Thread-3 (]: 30 of 36 START sql view model main_staging.stg_order_items ..................... [RUN] +16:05:16.611564 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_orders_order_date.2177a3e8bb, now model.ecom.stg_order_items) +16:05:16.611780 [debug] [Thread-3 (]: Began compiling node model.ecom.stg_order_items +16:05:16.613510 [debug] [Thread-3 (]: Writing injected SQL for node "model.ecom.stg_order_items" +16:05:16.613925 [debug] [Thread-3 (]: Began executing node model.ecom.stg_order_items +16:05:16.615655 [debug] [Thread-3 (]: Writing runtime sql for node "model.ecom.stg_order_items" +16:05:16.616063 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" +16:05:16.616226 [debug] [Thread-3 (]: On model.ecom.stg_order_items: BEGIN +16:05:16.616412 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.616810 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.616982 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" +16:05:16.617178 [debug] [Thread-3 (]: On model.ecom.stg_order_items: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_order_items"} */ + + + create view "ecom"."main_staging"."stg_order_items__dbt_tmp" as ( + /* + stg_order_items + --------------- + - Casts numeric columns + - Adds derived column: is_flash_sale flag when unit_price < list_price + - Filters items whose order_id no longer exists after stg_orders cleanup +*/ + +with source as ( + select * from "ecom"."raw"."order_items" +), + +valid_orders as ( + select order_id from "ecom"."main_staging"."stg_orders" +), + +casted as ( + -- cast first in a separate CTE so arithmetic below works on typed values + select + order_item_id, + order_id, + product_id, + seller_id, + cast(quantity as integer) as quantity, + cast(unit_price as decimal(10,2)) as unit_price, + cast(list_price as decimal(10,2)) as list_price, + cast(discount_pct as decimal(6,4)) as discount_pct + from source + where order_id in (select order_id from valid_orders) +), + +renamed as ( + select + order_item_id, + order_id, + product_id, + seller_id, + quantity, + unit_price, + list_price, + discount_pct, + unit_price < list_price as is_flash_sale, + round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue + from casted +) + +select * from renamed + ); + +16:05:16.618622 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.620334 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" +16:05:16.620527 [debug] [Thread-3 (]: On model.ecom.stg_order_items: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_order_items"} */ +alter view "ecom"."main_staging"."stg_order_items__dbt_tmp" rename to "stg_order_items" +16:05:16.620840 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.621584 [debug] [Thread-3 (]: On model.ecom.stg_order_items: COMMIT +16:05:16.621755 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" +16:05:16.621910 [debug] [Thread-3 (]: On model.ecom.stg_order_items: COMMIT +16:05:16.622378 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.623538 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" +16:05:16.623720 [debug] [Thread-3 (]: On model.ecom.stg_order_items: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_order_items"} */ + + drop view if exists "ecom"."main_staging"."stg_order_items__dbt_backup" cascade + +16:05:16.623999 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds +16:05:16.624625 [debug] [Thread-3 (]: On model.ecom.stg_order_items: Close +16:05:16.624891 [debug] [Thread-3 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} +16:05:16.625184 [info ] [Thread-3 (]: 30 of 36 OK created sql view model main_staging.stg_order_items ................ [OK in 0.01s] +16:05:16.625478 [debug] [Thread-3 (]: Finished running node model.ecom.stg_order_items +16:05:16.625835 [debug] [Thread-4 (]: Began running node test.ecom.not_null_stg_order_items_order_id.2063801f96 +16:05:16.626055 [debug] [Thread-2 (]: Began running node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 +16:05:16.626411 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 +16:05:16.626244 [info ] [Thread-4 (]: 31 of 36 START test not_null_stg_order_items_order_id .......................... [RUN] +16:05:16.626659 [debug] [Thread-3 (]: Began running node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 +16:05:16.626826 [info ] [Thread-2 (]: 32 of 36 START test not_null_stg_order_items_order_item_id ..................... [RUN] +16:05:16.626981 [info ] [Thread-1 (]: 33 of 36 START test not_null_stg_order_items_product_id ........................ [RUN] +16:05:16.627258 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_orders_order_id.e3b841c71a, now test.ecom.not_null_stg_order_items_order_id.2063801f96) +16:05:16.627681 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500, now test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35) +16:05:16.627442 [info ] [Thread-3 (]: 34 of 36 START test relationships_stg_order_items_order_id__order_id__ref_stg_orders_ [RUN] +16:05:16.627918 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_orders_order_id.81cfe2fe64, now test.ecom.not_null_stg_order_items_product_id.5154a8a6f6) +16:05:16.628090 [debug] [Thread-4 (]: Began compiling node test.ecom.not_null_stg_order_items_order_id.2063801f96 +16:05:16.628259 [debug] [Thread-2 (]: Began compiling node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 +16:05:16.628434 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly model.ecom.stg_order_items, now test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54) +16:05:16.628596 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 +16:05:16.630683 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.not_null_stg_order_items_order_id.2063801f96" +16:05:16.632675 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" +16:05:16.632883 [debug] [Thread-3 (]: Began compiling node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 +16:05:16.636396 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" +16:05:16.639120 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" +16:05:16.639567 [debug] [Thread-4 (]: Began executing node test.ecom.not_null_stg_order_items_order_id.2063801f96 +16:05:16.639782 [debug] [Thread-2 (]: Began executing node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 +16:05:16.639966 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 +16:05:16.641253 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.not_null_stg_order_items_order_id.2063801f96" +16:05:16.642413 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" +16:05:16.643662 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" +16:05:16.643881 [debug] [Thread-3 (]: Began executing node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 +16:05:16.645166 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" +16:05:16.645473 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_id.2063801f96" +16:05:16.645673 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" +16:05:16.645948 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: BEGIN +16:05:16.646158 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" +16:05:16.646358 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: BEGIN +16:05:16.646541 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.646722 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" +16:05:16.646887 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: BEGIN +16:05:16.647045 [debug] [Thread-2 (]: Opening a new connection, currently in state closed +16:05:16.647303 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: BEGIN +16:05:16.647475 [debug] [Thread-3 (]: Opening a new connection, currently in state closed +16:05:16.647652 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.647881 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.648091 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds +16:05:16.648265 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_id.2063801f96" +16:05:16.648427 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds +16:05:16.648620 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" +16:05:16.648802 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_order_items_order_id.2063801f96"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_id +from "ecom"."main_staging"."stg_order_items" +where order_id is null + + + + + + + ) dbt_internal_test +16:05:16.648977 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.649132 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" +16:05:16.649301 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_item_id +from "ecom"."main_staging"."stg_order_items" +where order_item_id is null + + + + + + + ) dbt_internal_test +16:05:16.649542 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" +16:05:16.649745 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select order_id as from_field + from "ecom"."main_staging"."stg_order_items" + where order_id is not null +), + +parent as ( + select order_id as to_field + from "ecom"."main_staging"."stg_orders" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test +16:05:16.650178 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select product_id +from "ecom"."main_staging"."stg_order_items" +where product_id is null + + + + + + + ) dbt_internal_test +16:05:16.656506 [debug] [Thread-1 (]: SQL status: OK in 0.006 seconds +16:05:16.656784 [debug] [Thread-2 (]: SQL status: OK in 0.007 seconds +16:05:16.656995 [debug] [Thread-4 (]: SQL status: OK in 0.008 seconds +16:05:16.658159 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: ROLLBACK +16:05:16.658904 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: ROLLBACK +16:05:16.659634 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: ROLLBACK +16:05:16.660157 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_order_items_product_id.5154a8a6f6' +16:05:16.660361 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: Close +16:05:16.660804 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.not_null_stg_order_items_order_id.2063801f96' +16:05:16.660984 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: Close +16:05:16.661284 [info ] [Thread-1 (]: 33 of 36 PASS not_null_stg_order_items_product_id .............................. [PASS in 0.03s] +16:05:16.661564 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 +16:05:16.661761 [debug] [Thread-1 (]: Began running node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c +16:05:16.661936 [info ] [Thread-1 (]: 35 of 36 START test relationships_stg_order_items_product_id__product_id__ref_stg_products_ [RUN] +16:05:16.662207 [info ] [Thread-4 (]: 31 of 36 PASS not_null_stg_order_items_order_id ................................ [PASS in 0.03s] +16:05:16.662487 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_order_items_product_id.5154a8a6f6, now test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c) +16:05:16.662680 [debug] [Thread-3 (]: SQL status: OK in 0.012 seconds +16:05:16.663193 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35' +16:05:16.663438 [debug] [Thread-4 (]: Finished running node test.ecom.not_null_stg_order_items_order_id.2063801f96 +16:05:16.663630 [debug] [Thread-1 (]: Began compiling node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c +16:05:16.663867 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: Close +16:05:16.664087 [debug] [Thread-4 (]: Began running node test.ecom.unique_stg_order_items_order_item_id.90e333a108 +16:05:16.664954 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: ROLLBACK +16:05:16.667979 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" +16:05:16.668373 [info ] [Thread-2 (]: 32 of 36 PASS not_null_stg_order_items_order_item_id ........................... [PASS in 0.04s] +16:05:16.668605 [info ] [Thread-4 (]: 36 of 36 START test unique_stg_order_items_order_item_id ....................... [RUN] +16:05:16.669153 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54' +16:05:16.669426 [debug] [Thread-2 (]: Finished running node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 +16:05:16.669646 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_order_items_order_id.2063801f96, now test.ecom.unique_stg_order_items_order_item_id.90e333a108) +16:05:16.669890 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: Close +16:05:16.670123 [debug] [Thread-4 (]: Began compiling node test.ecom.unique_stg_order_items_order_item_id.90e333a108 +16:05:16.670308 [debug] [Thread-1 (]: Began executing node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c +16:05:16.670581 [info ] [Thread-3 (]: 34 of 36 PASS relationships_stg_order_items_order_id__order_id__ref_stg_orders_ [PASS in 0.04s] +16:05:16.672582 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.unique_stg_order_items_order_item_id.90e333a108" +16:05:16.674065 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" +16:05:16.674359 [debug] [Thread-3 (]: Finished running node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 +16:05:16.674789 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" +16:05:16.674990 [debug] [Thread-4 (]: Began executing node test.ecom.unique_stg_order_items_order_item_id.90e333a108 +16:05:16.675175 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: BEGIN +16:05:16.676368 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.unique_stg_order_items_order_item_id.90e333a108" +16:05:16.676564 [debug] [Thread-1 (]: Opening a new connection, currently in state closed +16:05:16.676951 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_order_items_order_item_id.90e333a108" +16:05:16.677129 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: BEGIN +16:05:16.677296 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds +16:05:16.677456 [debug] [Thread-4 (]: Opening a new connection, currently in state closed +16:05:16.677621 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" +16:05:16.677862 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select product_id as from_field + from "ecom"."main_staging"."stg_order_items" + where product_id is not null +), + +parent as ( + select product_id as to_field + from "ecom"."main_staging"."stg_products" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test +16:05:16.678127 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds +16:05:16.678285 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_order_items_order_item_id.90e333a108" +16:05:16.678451 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_order_items_order_item_id.90e333a108"} */ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + order_item_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_order_items" +where order_item_id is not null +group by order_item_id +having count(*) > 1 + + + + + + + ) dbt_internal_test +16:05:16.684433 [debug] [Thread-1 (]: SQL status: OK in 0.006 seconds +16:05:16.684726 [debug] [Thread-4 (]: SQL status: OK in 0.006 seconds +16:05:16.685823 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: ROLLBACK +16:05:16.686559 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: ROLLBACK +16:05:16.687064 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.unique_stg_order_items_order_item_id.90e333a108' +16:05:16.687245 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: Close +16:05:16.687687 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c' +16:05:16.688010 [info ] [Thread-4 (]: 36 of 36 PASS unique_stg_order_items_order_item_id ............................. [PASS in 0.02s] +16:05:16.688225 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: Close +16:05:16.688493 [debug] [Thread-4 (]: Finished running node test.ecom.unique_stg_order_items_order_item_id.90e333a108 +16:05:16.688780 [info ] [Thread-1 (]: 35 of 36 PASS relationships_stg_order_items_product_id__product_id__ref_stg_products_ [PASS in 0.03s] +16:05:16.689071 [debug] [Thread-1 (]: Finished running node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c +16:05:16.689676 [debug] [MainThread]: Using duckdb connection "master" +16:05:16.689840 [debug] [MainThread]: On master: BEGIN +16:05:16.689972 [debug] [MainThread]: Opening a new connection, currently in state closed +16:05:16.690282 [debug] [MainThread]: SQL status: OK in 0.000 seconds +16:05:16.690425 [debug] [MainThread]: On master: COMMIT +16:05:16.690565 [debug] [MainThread]: Using duckdb connection "master" +16:05:16.690691 [debug] [MainThread]: On master: COMMIT +16:05:16.690894 [debug] [MainThread]: SQL status: OK in 0.000 seconds +16:05:16.691032 [debug] [MainThread]: On master: Close +16:05:16.691206 [debug] [MainThread]: Connection 'master' was properly closed. +16:05:16.691331 [debug] [MainThread]: Connection 'test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c' was properly closed. +16:05:16.691449 [debug] [MainThread]: Connection 'test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35' was properly closed. +16:05:16.691567 [debug] [MainThread]: Connection 'test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54' was properly closed. +16:05:16.691682 [debug] [MainThread]: Connection 'test.ecom.unique_stg_order_items_order_item_id.90e333a108' was properly closed. +16:05:16.691846 [info ] [MainThread]: +16:05:16.692000 [info ] [MainThread]: Finished running 30 data tests, 6 view models in 0 hours 0 minutes and 0.50 seconds (0.50s). +16:05:16.694112 [debug] [MainThread]: Command end result +16:05:16.715458 [debug] [MainThread]: Wrote artifact WritableManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/manifest.json +16:05:16.717345 [debug] [MainThread]: Wrote artifact SemanticManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/semantic_manifest.json +16:05:16.721519 [debug] [MainThread]: Wrote artifact RunExecutionResult to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/run_results.json +16:05:16.721749 [info ] [MainThread]: +16:05:16.721959 [info ] [MainThread]: Completed successfully +16:05:16.722130 [info ] [MainThread]: +16:05:16.722395 [info ] [MainThread]: Done. PASS=36 WARN=0 ERROR=0 SKIP=0 NO-OP=0 TOTAL=36 +16:05:16.722921 [warn ] [MainThread]: [WARNING][DeprecationsSummary]: Deprecated functionality +Summary of encountered deprecations: +- MissingArgumentsPropertyInGenericTestDeprecation: 9 occurrences +To see all deprecation instances instead of just the first occurrence of each, +run command again with the `--show-all-deprecations` flag. You may also need to +run with `--no-partial-parse` as some deprecations are only encountered during +parsing. +16:05:16.725464 [debug] [MainThread]: Resource report: {"command_name": "build", "command_success": true, "command_wall_clock_time": 1.5960253, "process_in_blocks": "0", "process_kernel_time": 0.242465, "process_mem_max_rss": "200523776", "process_out_blocks": "0", "process_user_time": 2.254767} +16:05:16.725735 [debug] [MainThread]: Command `dbt build` succeeded at 16:05:16.725690 after 1.60 seconds +16:05:16.725957 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} +16:05:16.726148 [debug] [MainThread]: Flushing usage events +16:05:22.257478 [debug] [MainThread]: An error was encountered while trying to flush usage events diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql new file mode 100644 index 0000000..04a9e27 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql @@ -0,0 +1,22 @@ + + + + +with all_values as ( + + select + customer_tier as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_customers" + group by customer_tier + +) + +select * +from all_values +where value_field not in ( + 'bronze','silver','gold' +) + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql new file mode 100644 index 0000000..79c7591 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql @@ -0,0 +1,22 @@ + + + + +with all_values as ( + + select + order_status as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_orders" + group by order_status + +) + +select * +from all_values +where value_field not in ( + 'pending','processing','shipped','delivered','cancelled','returned' +) + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql new file mode 100644 index 0000000..fd879c4 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql @@ -0,0 +1,22 @@ + + + + +with all_values as ( + + select + payment_method as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_orders" + group by payment_method + +) + +select * +from all_values +where value_field not in ( + 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet' +) + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql new file mode 100644 index 0000000..7546e56 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql @@ -0,0 +1,22 @@ + + + + +with all_values as ( + + select + device_type as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_sessions" + group by device_type + +) + +select * +from all_values +where value_field not in ( + 'mobile','desktop','tablet' +) + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql new file mode 100644 index 0000000..cc412cc --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql @@ -0,0 +1,22 @@ + + + + +with all_values as ( + + select + platform as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_sessions" + group by platform + +) + +select * +from all_values +where value_field not in ( + 'ios','android','web' +) + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql new file mode 100644 index 0000000..1728252 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql @@ -0,0 +1,11 @@ + + + + + + +select customer_id +from "ecom"."main_staging"."stg_customers" +where customer_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql new file mode 100644 index 0000000..736df14 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql @@ -0,0 +1,11 @@ + + + + + + +select email +from "ecom"."main_staging"."stg_customers" +where email is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql new file mode 100644 index 0000000..280c456 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql @@ -0,0 +1,11 @@ + + + + + + +select signup_date +from "ecom"."main_staging"."stg_customers" +where signup_date is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql new file mode 100644 index 0000000..d6e2195 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql @@ -0,0 +1,11 @@ + + + + + + +select order_id +from "ecom"."main_staging"."stg_order_items" +where order_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql new file mode 100644 index 0000000..1a723ad --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql @@ -0,0 +1,11 @@ + + + + + + +select order_item_id +from "ecom"."main_staging"."stg_order_items" +where order_item_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql new file mode 100644 index 0000000..fcf94a9 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql @@ -0,0 +1,11 @@ + + + + + + +select product_id +from "ecom"."main_staging"."stg_order_items" +where product_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql new file mode 100644 index 0000000..94ff02c --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql @@ -0,0 +1,11 @@ + + + + + + +select customer_id +from "ecom"."main_staging"."stg_orders" +where customer_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql new file mode 100644 index 0000000..87a0c25 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql @@ -0,0 +1,11 @@ + + + + + + +select order_date +from "ecom"."main_staging"."stg_orders" +where order_date is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql new file mode 100644 index 0000000..cad3270 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql @@ -0,0 +1,11 @@ + + + + + + +select order_id +from "ecom"."main_staging"."stg_orders" +where order_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql new file mode 100644 index 0000000..d8dbc92 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql @@ -0,0 +1,11 @@ + + + + + + +select product_id +from "ecom"."main_staging"."stg_products" +where product_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql new file mode 100644 index 0000000..86c6421 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql @@ -0,0 +1,11 @@ + + + + + + +select seller_id +from "ecom"."main_staging"."stg_products" +where seller_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql new file mode 100644 index 0000000..c4bd486 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql @@ -0,0 +1,11 @@ + + + + + + +select rating +from "ecom"."main_staging"."stg_sellers" +where rating is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql new file mode 100644 index 0000000..b172483 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql @@ -0,0 +1,11 @@ + + + + + + +select seller_id +from "ecom"."main_staging"."stg_sellers" +where seller_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql new file mode 100644 index 0000000..6e0574b --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql @@ -0,0 +1,11 @@ + + + + + + +select session_id +from "ecom"."main_staging"."stg_sessions" +where session_id is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql new file mode 100644 index 0000000..946e79e --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql @@ -0,0 +1,25 @@ + + + + +with child as ( + select product_id as from_field + from "ecom"."main_staging"."stg_order_items" + where product_id is not null +), + +parent as ( + select product_id as to_field + from "ecom"."main_staging"."stg_products" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql new file mode 100644 index 0000000..e31f44f --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql @@ -0,0 +1,25 @@ + + + + +with child as ( + select order_id as from_field + from "ecom"."main_staging"."stg_order_items" + where order_id is not null +), + +parent as ( + select order_id as to_field + from "ecom"."main_staging"."stg_orders" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql new file mode 100644 index 0000000..16c77fc --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql @@ -0,0 +1,25 @@ + + + + +with child as ( + select customer_id as from_field + from "ecom"."main_staging"."stg_orders" + where customer_id is not null +), + +parent as ( + select customer_id as to_field + from "ecom"."main_staging"."stg_customers" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql new file mode 100644 index 0000000..312aa01 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql @@ -0,0 +1,25 @@ + + + + +with child as ( + select seller_id as from_field + from "ecom"."main_staging"."stg_products" + where seller_id is not null +), + +parent as ( + select seller_id as to_field + from "ecom"."main_staging"."stg_sellers" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql new file mode 100644 index 0000000..ce6db9f --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql @@ -0,0 +1,14 @@ + + + + +select + customer_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_customers" +where customer_id is not null +group by customer_id +having count(*) > 1 + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql new file mode 100644 index 0000000..24bdd0f --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql @@ -0,0 +1,14 @@ + + + + +select + email as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_customers" +where email is not null +group by email +having count(*) > 1 + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql new file mode 100644 index 0000000..26d3b0d --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql @@ -0,0 +1,14 @@ + + + + +select + order_item_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_order_items" +where order_item_id is not null +group by order_item_id +having count(*) > 1 + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql new file mode 100644 index 0000000..8ae865e --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql @@ -0,0 +1,14 @@ + + + + +select + order_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_orders" +where order_id is not null +group by order_id +having count(*) > 1 + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql new file mode 100644 index 0000000..46d2e72 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql @@ -0,0 +1,14 @@ + + + + +select + product_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_products" +where product_id is not null +group by product_id +having count(*) > 1 + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql new file mode 100644 index 0000000..d4281b6 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql @@ -0,0 +1,14 @@ + + + + +select + seller_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_sellers" +where seller_id is not null +group by seller_id +having count(*) > 1 + + diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql new file mode 100644 index 0000000..2fd5ca7 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql @@ -0,0 +1,14 @@ + + + + +select + session_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_sessions" +where session_id is not null +group by session_id +having count(*) > 1 + + diff --git a/ecom/target/compiled/ecom/models/staging/stg_customers.sql b/ecom/target/compiled/ecom/models/staging/stg_customers.sql new file mode 100644 index 0000000..87f8476 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/stg_customers.sql @@ -0,0 +1,57 @@ +/* + stg_customers + ------------- + - Renames columns to project convention + - Casts signup_date to DATE + - Deduplicates re-registered customers (keeps the earliest signup per email) + - Replaces empty city strings with NULL + - Excludes soft-deleted records +*/ + +with source as ( + select * from "ecom"."raw"."customers" +), + +renamed as ( + select + customer_id, + first_name, + last_name, + lower(trim(email)) as email, + phone, + nullif(trim(city), '') as city, + country, + lower(customer_tier) as customer_tier, + cast(signup_date as date) as signup_date, + cast(is_deleted as boolean) as is_deleted + from source +), + +deduped as ( + -- Keep earliest signup per email (first registration wins) + select *, + row_number() over ( + partition by email + order by signup_date asc + ) as rn + from renamed +), + +final as ( + select + customer_id, + first_name, + last_name, + email, + phone, + city, + country, + customer_tier, + signup_date, + is_deleted + from deduped + where rn = 1 + and is_deleted = false +) + +select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_order_items.sql b/ecom/target/compiled/ecom/models/staging/stg_order_items.sql new file mode 100644 index 0000000..9240080 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/stg_order_items.sql @@ -0,0 +1,47 @@ +/* + stg_order_items + --------------- + - Casts numeric columns + - Adds derived column: is_flash_sale flag when unit_price < list_price + - Filters items whose order_id no longer exists after stg_orders cleanup +*/ + +with source as ( + select * from "ecom"."raw"."order_items" +), + +valid_orders as ( + select order_id from "ecom"."main_staging"."stg_orders" +), + +casted as ( + -- cast first in a separate CTE so arithmetic below works on typed values + select + order_item_id, + order_id, + product_id, + seller_id, + cast(quantity as integer) as quantity, + cast(unit_price as decimal(10,2)) as unit_price, + cast(list_price as decimal(10,2)) as list_price, + cast(discount_pct as decimal(6,4)) as discount_pct + from source + where order_id in (select order_id from valid_orders) +), + +renamed as ( + select + order_item_id, + order_id, + product_id, + seller_id, + quantity, + unit_price, + list_price, + discount_pct, + unit_price < list_price as is_flash_sale, + round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue + from casted +) + +select * from renamed \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_orders.sql b/ecom/target/compiled/ecom/models/staging/stg_orders.sql new file mode 100644 index 0000000..8455c46 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/stg_orders.sql @@ -0,0 +1,55 @@ +/* + stg_orders + ---------- + - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy). + We COALESCE two TRY_STRPTIME calls to handle both safely. + - Filters rows where the date cannot be parsed (data quality guard) + - Filters orphaned orders (customer_id not in stg_customers) + - Casts and standardises order_status and payment_method +*/ + +with source as ( + select * from "ecom"."raw"."orders" +), + +date_parsed as ( + select + order_id, + customer_id, + -- Try ISO first, then dd/mm/yyyy — whichever parses wins + coalesce( + try_strptime(order_date, '%Y-%m-%d'), + try_strptime(order_date, '%d/%m/%Y') + ) as order_date, + order_status, + payment_method, + shipping_city, + cast(discount_amount as decimal(10,2)) as discount_amount, + nullif(trim(coupon_code), '') as coupon_code, + lower(platform) as platform + from source +), + +valid_customers as ( + select customer_id from "ecom"."main_staging"."stg_customers" +), + +final as ( + select + o.order_id, + o.customer_id, + o.order_date, + o.order_status, + o.payment_method, + o.shipping_city, + o.discount_amount, + o.coupon_code, + o.platform + from date_parsed o + -- Drop unparseable dates + where o.order_date is not null + -- Drop orphaned customer_ids (referential integrity fix) + and o.customer_id in (select customer_id from valid_customers) +) + +select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_products.sql b/ecom/target/compiled/ecom/models/staging/stg_products.sql new file mode 100644 index 0000000..adac662 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/stg_products.sql @@ -0,0 +1,33 @@ +/* + stg_products + ------------ + - Casts price columns and boolean + - Derives gross_margin_pct for later mart use + - Filters inactive products are kept (marts can filter by is_active) +*/ + +with source as ( + select * from "ecom"."raw"."products" +), + +final as ( + select + product_id, + trim(product_name) as product_name, + trim(category) as category, + trim(subcategory) as subcategory, + seller_id, + cast(list_price as decimal(10,2)) as list_price, + cast(cost_price as decimal(10,2)) as cost_price, + round( + (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2))) + / nullif(cast(list_price as decimal(10,2)), 0), + 4 + ) as gross_margin_pct, + cast(is_active as boolean) as is_active, + cast(stock_qty as integer) as stock_qty, + cast(created_at as date) as created_at + from source +) + +select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_sellers.sql b/ecom/target/compiled/ecom/models/staging/stg_sellers.sql new file mode 100644 index 0000000..70bd81f --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/stg_sellers.sql @@ -0,0 +1,26 @@ +/* + stg_sellers + ----------- + - Casts joined_date to DATE + - Casts is_verified to boolean + - Standardises category casing +*/ + +with source as ( + select * from "ecom"."raw"."sellers" +), + +final as ( + select + seller_id, + trim(seller_name) as seller_name, + trim(category) as category, + city, + cast(is_verified as boolean) as is_verified, + cast(joined_date as date) as joined_date, + cast(rating as decimal(3,1)) as rating, + cast(total_reviews as integer) as total_reviews + from source +) + +select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_sessions.sql b/ecom/target/compiled/ecom/models/staging/stg_sessions.sql new file mode 100644 index 0000000..bb60785 --- /dev/null +++ b/ecom/target/compiled/ecom/models/staging/stg_sessions.sql @@ -0,0 +1,28 @@ +/* + stg_sessions + ------------ + - Null customer_id = anonymous session (kept, not filtered) + - Derives session_duration_mins for readability + - Casts is_converted to boolean +*/ + +with source as ( + select * from "ecom"."raw"."sessions" +), + +final as ( + select + session_id, + nullif(trim(customer_id), '') as customer_id, -- preserve anonymous + cast(session_date as date) as session_date, + lower(platform) as platform, + lower(device_type) as device_type, + cast(page_views as integer) as page_views, + cast(duration_seconds as integer) as duration_seconds, + round(cast(duration_seconds as decimal) / 60, 2) as duration_mins, + cast(is_converted as boolean) as is_converted, + nullif(trim(utm_source), '') as utm_source + from source +) + +select * from final \ No newline at end of file diff --git a/ecom/target/graph.gpickle b/ecom/target/graph.gpickle new file mode 100644 index 0000000000000000000000000000000000000000..6e859872723f364f17cf365437bd2fb6c315bbf0 GIT binary patch literal 40392 zcmdUYd#oJSc^_r*c`52;#gau)9#LYrm*(BO?}uJCMN)#S7ePvX!OCWK<_u?t`?%WK z<<+&z!bYS-PA5nUZ-dm06$fd70BO(yK~W(-^D=9RXO7zKQ43}E2K_u$!#|;=iofTRX19Z6W?vc&JN?TqbYAcD zCtp$T@#f@9INdNu_|&64d`;J1_ebVs_rt*fS5~Rk;Tzq7X*1jC^hX2Z+}OHu?kU3=4tfTC>Y&aYY!|QQyIQCXg z(Oap8F^24N#~%$%dSl=C&KD=@*1lo(ZKFT#b`7gD>M$QTvIgC8 zuTS*{dwXnT@`|Mp)b(CS-iQ2x{V3Dv(5vTy1FUbhyUd=v<*wq|{phucyLN3dcFQ=a zzd9KQca8f)*0V_kdlVxT3V(S}=-7o$>uw=VxGiL3jL6H<@o zk3-VMvy|$lV{HS{?+e4y!Z8g6MGE>KY{KQdtkNN-GOz5f8CK5yNZ@- z0U@I?Nn{+{DB=J8s zs~Oxgbo=a!?zu>)?lZxM;$oB^aD3uED<${FZ@HgvpL3sob>hBAqPQ<9ijCpG9$R=J zDnF9N!7x2V7+#t%x=CSlQ-!fc!jOdF z=Eyg4&t7_o%gVObd%g87{H^Yguzn&gEb$(isDh8iMRhb)RISd4^^)>B%nOsZQiS$) zn$W(U6x!EQh4y49G{CCQ3|>DMAB>2ElhHG`47=kvY$%ldjw9{<6yb^Q)g<_f|0piO zsZI%!;FASNcFHh4MRxC`$?kWOviqG>*)>Ua=ElbQCTl}eiORX`N`(`E*`UAG8;pTE zVRaTstp~$Nc7O=S1PcDPSVs4* zU>`4JB6K};qvR%fw!HsZcj7(}d?dkNrt=(g-<@iLM3pSq2f}2+V#i-4I0(K5`!(+I z*S`aF%r#5Z+Qj{K@bPlB*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$S1N7N;hx3wO8w1KY@Q-jIZt6cMQC*n9?zkaad3C5 Z)o1uc-{F 1\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_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_customers_customer_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_customers_customer_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa", "fqn": ["ecom", "staging", "not_null_stg_customers_customer_id"], "alias": "not_null_stg_customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql", "unrendered_config": {}, "created_at": 1775999115.9733179, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\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_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.unique_stg_customers_email.1ebcb2333e": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_customers_email", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_customers_email.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_customers_email.1ebcb2333e", "fqn": ["ecom", "staging", "unique_stg_customers_email"], "alias": "unique_stg_customers_email", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql", "unrendered_config": {}, "created_at": 1775999115.9741051, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n email as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is not null\ngroup by email\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "email", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "unique", "kwargs": {"column_name": "email", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_customers_email.d7cf761533": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_customers_email", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_customers_email.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_customers_email.d7cf761533", "fqn": ["ecom", "staging", "not_null_stg_customers_email"], "alias": "not_null_stg_customers_email", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql", "unrendered_config": {}, "created_at": 1775999115.9748638, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect email\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "email", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "email", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_customers_customer_tier__bronze__silver__gold", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40", "fqn": ["ecom", "staging", "accepted_values_stg_customers_customer_tier__bronze__silver__gold"], "alias": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql", "unrendered_config": {"alias": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14"}, "created_at": 1775999115.976356, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n customer_tier as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_customers\"\n group by customer_tier\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'bronze','silver','gold'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_tier", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["bronze", "silver", "gold"], "column_name": "customer_tier", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_customers_signup_date.ef12d9c335": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_customers_signup_date", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_customers_signup_date.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_customers_signup_date.ef12d9c335", "fqn": ["ecom", "staging", "not_null_stg_customers_signup_date"], "alias": "not_null_stg_customers_signup_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql", "unrendered_config": {}, "created_at": 1775999115.988385, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect signup_date\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere signup_date is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "signup_date", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "signup_date", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_sellers_seller_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_sellers_seller_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8", "fqn": ["ecom", "staging", "unique_stg_sellers_seller_id"], "alias": "unique_stg_sellers_seller_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql", "unrendered_config": {}, "created_at": 1775999115.98927, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n seller_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is not null\ngroup by seller_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_sellers", "attached_node": "model.ecom.stg_sellers", "test_metadata": {"name": "unique", "kwargs": {"column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_sellers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_sellers_seller_id.35d0bce315": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_sellers_seller_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_sellers_seller_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_sellers_seller_id.35d0bce315", "fqn": ["ecom", "staging", "not_null_stg_sellers_seller_id"], "alias": "not_null_stg_sellers_seller_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql", "unrendered_config": {}, "created_at": 1775999115.990052, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_sellers", "attached_node": "model.ecom.stg_sellers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_sellers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_sellers_rating.973b52995f": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_sellers_rating", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_sellers_rating.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_sellers_rating.973b52995f", "fqn": ["ecom", "staging", "not_null_stg_sellers_rating"], "alias": "not_null_stg_sellers_rating", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql", "unrendered_config": {}, "created_at": 1775999115.9908109, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect rating\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere rating is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "rating", "file_key_name": "models.stg_sellers", "attached_node": "model.ecom.stg_sellers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "rating", "model": "{{ get_where_subquery(ref('stg_sellers')) }}"}, "namespace": null}}, "test.ecom.unique_stg_products_product_id.7d950a1467": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_products_product_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_products_product_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_products_product_id.7d950a1467", "fqn": ["ecom", "staging", "unique_stg_products_product_id"], "alias": "unique_stg_products_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": "target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql", "unrendered_config": {}, "created_at": 1775999115.991675, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n product_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere product_id is not null\ngroup by product_id\nhaving count(*) > 1\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_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_products_product_id.6373b0acf3": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_products_product_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_products_product_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_products_product_id.6373b0acf3", "fqn": ["ecom", "staging", "not_null_stg_products_product_id"], "alias": "not_null_stg_products_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql", "unrendered_config": {}, "created_at": 1775999115.992436, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\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_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_products_seller_id.0ba77d68d6": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_products_seller_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_products_seller_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_products_seller_id.0ba77d68d6", "fqn": ["ecom", "staging", "not_null_stg_products_seller_id"], "alias": "not_null_stg_products_seller_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql", "unrendered_config": {}, "created_at": 1775999115.993217, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere seller_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_products_seller_id__seller_id__ref_stg_sellers_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "fqn": ["ecom", "staging", "relationships_stg_products_seller_id__seller_id__ref_stg_sellers_"], "alias": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql", "unrendered_config": {"alias": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620"}, "created_at": 1775999115.9940329, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}, {"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers", "model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select seller_id as from_field\n from \"ecom\".\"main_staging\".\"stg_products\"\n where seller_id is not null\n),\n\nparent as (\n select seller_id as to_field\n from \"ecom\".\"main_staging\".\"stg_sellers\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_sellers')", "field": "seller_id", "column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.unique_stg_orders_order_id.e3b841c71a": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_orders_order_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_orders_order_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_orders_order_id.e3b841c71a", "fqn": ["ecom", "staging", "unique_stg_orders_order_id"], "alias": "unique_stg_orders_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": "target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql", "unrendered_config": {}, "created_at": 1775999115.997878, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_id is not null\ngroup by order_id\nhaving count(*) > 1\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_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_orders_order_id.81cfe2fe64": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_orders_order_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_orders_order_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_orders_order_id.81cfe2fe64", "fqn": ["ecom", "staging", "not_null_stg_orders_order_id"], "alias": "not_null_stg_orders_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql", "unrendered_config": {}, "created_at": 1775999115.998664, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\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_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_orders_customer_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_orders_customer_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5", "fqn": ["ecom", "staging", "not_null_stg_orders_customer_id"], "alias": "not_null_stg_orders_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql", "unrendered_config": {}, "created_at": 1775999115.999428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\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_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_orders_customer_id__customer_id__ref_stg_customers_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "fqn": ["ecom", "staging", "relationships_stg_orders_customer_id__customer_id__ref_stg_customers_"], "alias": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql", "unrendered_config": {"alias": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0"}, "created_at": 1775999116.001157, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}, {"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers", "model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select customer_id as from_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\n where customer_id is not null\n),\n\nparent as (\n select customer_id as to_field\n from \"ecom\".\"main_staging\".\"stg_customers\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_customers')", "field": "customer_id", "column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_orders_order_date.2177a3e8bb": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_orders_order_date", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_orders_order_date.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_orders_order_date.2177a3e8bb", "fqn": ["ecom", "staging", "not_null_stg_orders_order_date"], "alias": "not_null_stg_orders_order_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql", "unrendered_config": {}, "created_at": 1775999116.003506, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_date\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_date is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_date", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_date", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9", "fqn": ["ecom", "staging", "accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned"], "alias": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql", "unrendered_config": {"alias": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48"}, "created_at": 1775999116.004304, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n order_status as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by order_status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','processing','shipped','delivered','cancelled','returned'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_status", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "processing", "shipped", "delivered", "cancelled", "returned"], "column_name": "order_status", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2", "fqn": ["ecom", "staging", "accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet"], "alias": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql", "unrendered_config": {"alias": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa"}, "created_at": 1775999116.00728, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_method as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by payment_method\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "payment_method", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["credit_card", "debit_card", "bank_transfer", "cash_on_delivery", "wallet"], "column_name": "payment_method", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.unique_stg_order_items_order_item_id.90e333a108": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_order_items_order_item_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_order_items_order_item_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_order_items_order_item_id.90e333a108", "fqn": ["ecom", "staging", "unique_stg_order_items_order_item_id"], "alias": "unique_stg_order_items_order_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": "target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql", "unrendered_config": {}, "created_at": 1775999116.00999, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_item_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is not null\ngroup by order_item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_item_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_item_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_order_items_order_item_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_order_items_order_item_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35", "fqn": ["ecom", "staging", "not_null_stg_order_items_order_item_id"], "alias": "not_null_stg_order_items_order_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql", "unrendered_config": {}, "created_at": 1775999116.010766, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_item_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_item_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_item_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_order_items_order_id.2063801f96": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_order_items_order_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_order_items_order_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_order_items_order_id.2063801f96", "fqn": ["ecom", "staging", "not_null_stg_order_items_order_id"], "alias": "not_null_stg_order_items_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql", "unrendered_config": {}, "created_at": 1775999116.011617, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\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_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_order_items_order_id__order_id__ref_stg_orders_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "fqn": ["ecom", "staging", "relationships_stg_order_items_order_id__order_id__ref_stg_orders_"], "alias": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql", "unrendered_config": {"alias": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0"}, "created_at": 1775999116.012415, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}, {"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders", "model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select order_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where order_id is not null\n),\n\nparent as (\n select order_id as to_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_orders')", "field": "order_id", "column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_order_items_product_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_order_items_product_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6", "fqn": ["ecom", "staging", "not_null_stg_order_items_product_id"], "alias": "not_null_stg_order_items_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql", "unrendered_config": {}, "created_at": 1775999116.014642, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\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_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_order_items_product_id__product_id__ref_stg_products_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "fqn": ["ecom", "staging", "relationships_stg_order_items_product_id__product_id__ref_stg_products_"], "alias": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql", "unrendered_config": {"alias": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f"}, "created_at": 1775999116.015541, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}, {"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products", "model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select product_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where product_id is not null\n),\n\nparent as (\n select product_id as to_field\n from \"ecom\".\"main_staging\".\"stg_products\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_products')", "field": "product_id", "column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.unique_stg_sessions_session_id.ce45726d03": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_sessions_session_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_sessions_session_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_sessions_session_id.ce45726d03", "fqn": ["ecom", "staging", "unique_stg_sessions_session_id"], "alias": "unique_stg_sessions_session_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql", "unrendered_config": {}, "created_at": 1775999116.017781, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is not null\ngroup by session_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "session_id", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "session_id", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_sessions_session_id.2e872a126d": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_sessions_session_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_sessions_session_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_sessions_session_id.2e872a126d", "fqn": ["ecom", "staging", "not_null_stg_sessions_session_id"], "alias": "not_null_stg_sessions_session_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql", "unrendered_config": {}, "created_at": 1775999116.018548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_id\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "session_id", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_id", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_sessions_platform__ios__android__web", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_sessions_platform__ios__android__web.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e", "fqn": ["ecom", "staging", "accepted_values_stg_sessions_platform__ios__android__web"], "alias": "accepted_values_stg_sessions_platform__ios__android__web", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql", "unrendered_config": {}, "created_at": 1775999116.019422, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n platform as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by platform\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'ios','android','web'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "platform", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["ios", "android", "web"], "column_name": "platform", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_sessions_device_type__mobile__desktop__tablet", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4", "fqn": ["ecom", "staging", "accepted_values_stg_sessions_device_type__mobile__desktop__tablet"], "alias": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql", "unrendered_config": {"alias": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537"}, "created_at": 1775999116.021766, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n device_type as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by device_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'mobile','desktop','tablet'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "device_type", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["mobile", "desktop", "tablet"], "column_name": "device_type", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}}, "sources": {"source.ecom.raw.customers": {"database": "ecom", "schema": "raw", "name": "customers", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.customers", "fqn": ["ecom", "staging", "raw", "customers"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "customers", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw customer registrations \u2014 contains duplicates and null cities", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"customers\"", "created_at": 1775999116.0698712, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.sellers": {"database": "ecom", "schema": "raw", "name": "sellers", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.sellers", "fqn": ["ecom", "staging", "raw", "sellers"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "sellers", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw seller accounts", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"sellers\"", "created_at": 1775999116.070598, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.products": {"database": "ecom", "schema": "raw", "name": "products", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.products", "fqn": ["ecom", "staging", "raw", "products"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "products", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw product listings with cost and list price", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"products\"", "created_at": 1775999116.070837, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.orders": {"database": "ecom", "schema": "raw", "name": "orders", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.orders", "fqn": ["ecom", "staging", "raw", "orders"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "orders", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw orders \u2014 mixed date formats (ISO and dd/mm/yyyy)", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"orders\"", "created_at": 1775999116.0710552, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.order_items": {"database": "ecom", "schema": "raw", "name": "order_items", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.order_items", "fqn": ["ecom", "staging", "raw", "order_items"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "order_items", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw order line items \u2014 unit price may differ from list price", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"order_items\"", "created_at": 1775999116.0712671, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.sessions": {"database": "ecom", "schema": "raw", "name": "sessions", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.sessions", "fqn": ["ecom", "staging", "raw", "sessions"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "sessions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw app/web sessions \u2014 20% anonymous (null customer_id)", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"sessions\"", "created_at": 1775999116.071475, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}}, "macros": {"macro.dbt_duckdb.duckdb__get_binding_char": {"name": "duckdb__get_binding_char", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/seed.sql", "original_file_path": "macros/seed.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_binding_char", "macro_sql": "{% macro duckdb__get_binding_char() %}\n {{ return(adapter.get_binding_char()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.414221, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_batch_size": {"name": "duckdb__get_batch_size", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/seed.sql", "original_file_path": "macros/seed.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_batch_size", "macro_sql": "{% macro duckdb__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.41435, "supported_languages": null}, "macro.dbt_duckdb.duckdb__load_csv_rows": {"name": "duckdb__load_csv_rows", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/seed.sql", "original_file_path": "macros/seed.sql", "unique_id": "macro.dbt_duckdb.duckdb__load_csv_rows", "macro_sql": "{% macro duckdb__load_csv_rows(model, agate_table) %}\n {% if config.get('fast', true) %}\n {% set seed_file_path = adapter.get_seed_file_path(model) %}\n {% set delimiter = config.get('delimiter', ',') %}\n {% set sql %}\n COPY {{ this.render() }} FROM '{{ seed_file_path }}' (FORMAT CSV, HEADER TRUE, DELIMITER '{{ delimiter }}')\n {% endset %}\n {% do adapter.add_query(sql, abridge_sql_log=True) %}\n {{ return(sql) }}\n {% endif %}\n\n {% set batch_size = get_batch_size() %}\n {% set agate_table = adapter.convert_datetimes_to_strs(agate_table) %}\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.415773, "supported_languages": null}, "macro.dbt_duckdb.duckdb__snapshot_merge_sql": {"name": "duckdb__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/snapshot_helper.sql", "original_file_path": "macros/snapshot_helper.sql", "unique_id": "macro.dbt_duckdb.duckdb__snapshot_merge_sql", "macro_sql": "{% macro duckdb__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 }} as DBT_INTERNAL_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 = DBT_INTERNAL_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 (DBT_INTERNAL_TARGET.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or DBT_INTERNAL_TARGET.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and DBT_INTERNAL_TARGET.{{ columns.dbt_valid_to }} is null;\n {% endif %}\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\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.416752, "supported_languages": null}, "macro.dbt_duckdb.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/snapshot_helper.sql", "original_file_path": "macros/snapshot_helper.sql", "unique_id": "macro.dbt_duckdb.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(False, 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.417105, "supported_languages": null}, "macro.dbt_duckdb.duckdb__post_snapshot": {"name": "duckdb__post_snapshot", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/snapshot_helper.sql", "original_file_path": "macros/snapshot_helper.sql", "unique_id": "macro.dbt_duckdb.duckdb__post_snapshot", "macro_sql": "{% macro duckdb__post_snapshot(staging_relation) %}\n {% do return(drop_relation(staging_relation)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.417226, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_catalog": {"name": "duckdb__get_catalog", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_catalog", "macro_sql": "{% macro duckdb__get_catalog(information_schema, schemas) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n with relations AS (\n select\n t.table_name\n , t.database_name\n , t.schema_name\n , 'BASE TABLE' as table_type\n , t.comment as table_comment\n from duckdb_tables() t\n WHERE t.database_name = '{{ database }}'\n UNION ALL\n SELECT v.view_name as table_name\n , v.database_name\n , v.schema_name\n , 'VIEW' as table_type\n , v.comment as table_comment\n from duckdb_views() v\n WHERE v.database_name = '{{ database }}'\n )\n select\n '{{ database }}' as table_database,\n r.schema_name as table_schema,\n r.table_name,\n r.table_type,\n r.table_comment,\n c.column_name,\n c.column_index as column_index,\n c.data_type as column_type,\n c.comment as column_comment,\n NULL as table_owner\n FROM relations r JOIN duckdb_columns() c ON r.schema_name = c.schema_name AND r.table_name = c.table_name\n WHERE (\n {%- for schema in schemas -%}\n upper(r.schema_name) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ORDER BY\n r.schema_name,\n r.table_name,\n c.column_index\n {%- endcall -%}\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.417753, "supported_languages": null}, "macro.dbt_duckdb.duckdb__create_schema": {"name": "duckdb__create_schema", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__create_schema", "macro_sql": "{% macro duckdb__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n {% set sql %}\n select type from duckdb_databases()\n where lower(database_name)='{{ relation.database | lower }}'\n and type='sqlite'\n {% endset %}\n {% set results = run_query(sql) %}\n {% if results|length == 0 %}\n create schema if not exists {{ relation.without_identifier() }}\n {% else %}\n {% if relation.schema!='main' %}\n {{ exceptions.raise_compiler_error(\n \"Schema must be 'main' when writing to sqlite \"\n ~ \"instead got \" ~ relation.schema\n )}}\n {% endif %}\n {% endif %}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.419508, "supported_languages": null}, "macro.dbt_duckdb.duckdb__drop_schema": {"name": "duckdb__drop_schema", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__drop_schema", "macro_sql": "{% macro duckdb__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.419652, "supported_languages": null}, "macro.dbt_duckdb.duckdb__list_schemas": {"name": "duckdb__list_schemas", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__list_schemas", "macro_sql": "{% macro duckdb__list_schemas(database) -%}\n {% set sql %}\n select schema_name\n from system.information_schema.schemata\n {% if database is not none %}\n where lower(catalog_name) = '{{ database | lower }}'\n {% endif %}\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4198568, "supported_languages": null}, "macro.dbt_duckdb.duckdb__check_schema_exists": {"name": "duckdb__check_schema_exists", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__check_schema_exists", "macro_sql": "{% macro duckdb__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from system.information_schema.schemata\n where lower(schema_name) = '{{ schema | lower }}'\n and lower(catalog_name) = '{{ information_schema.database | lower }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.420049, "supported_languages": null}, "macro.dbt_duckdb.get_column_names": {"name": "get_column_names", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.get_column_names", "macro_sql": "{% macro get_column_names() %}\n {# loop through user_provided_columns to get column names #}\n {%- set user_provided_columns = model['columns'] -%}\n (\n {% for i in user_provided_columns %}\n {% set col = user_provided_columns[i] %}\n {{ col['name'] }} {{ \",\" if not loop.last }}\n {% endfor %}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4203022, "supported_languages": null}, "macro.dbt_duckdb.duckdb__create_table_as": {"name": "duckdb__create_table_as", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__create_table_as", "macro_sql": "{% macro duckdb__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(compiled_code) }}\n {% endif %}\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 {% if contract_config.enforced and not temporary %}\n {#-- DuckDB doesnt support constraints on temp tables --#}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} {{ get_column_names() }} (\n {{ get_select_subquery(compiled_code) }}\n );\n {% else %}\n as (\n {{ compiled_code }}\n );\n {% endif %}\n {%- elif language == 'python' -%}\n {{ py_write_table(temporary=temporary, relation=relation, compiled_code=compiled_code) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"duckdb__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt_duckdb.get_column_names", "macro.dbt.get_select_subquery", "macro.dbt_duckdb.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.421046, "supported_languages": null}, "macro.dbt_duckdb.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.py_write_table", "macro_sql": "{% macro py_write_table(temporary, relation, compiled_code) -%}\n{{ compiled_code }}\n\ndef materialize(df, con):\n try:\n import pyarrow\n pyarrow_available = True\n except ImportError:\n pyarrow_available = False\n finally:\n if pyarrow_available and isinstance(df, pyarrow.Table):\n # https://github.com/duckdb/duckdb/issues/6584\n import pyarrow.dataset\n tmp_name = '__dbt_python_model_df_' + '{{ relation.identifier }}'\n con.register(tmp_name, df)\n con.execute('create table {{ relation }} as select * from ' + tmp_name)\n con.unregister(tmp_name)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.421197, "supported_languages": null}, "macro.dbt_duckdb.duckdb__create_view_as": {"name": "duckdb__create_view_as", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__create_view_as", "macro_sql": "{% macro duckdb__create_view_as(relation, sql) -%}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.421481, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_columns_in_relation": {"name": "duckdb__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_columns_in_relation", "macro_sql": "{% macro duckdb__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 system.information_schema.columns\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and lower(table_schema) = '{{ relation.schema | lower }}'\n {% endif %}\n {% if relation.database %}\n and lower(table_catalog) = '{{ relation.database | lower }}'\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.42184, "supported_languages": null}, "macro.dbt_duckdb.duckdb__list_relations_without_caching": {"name": "duckdb__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__list_relations_without_caching", "macro_sql": "{% macro duckdb__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 table_name as name,\n table_schema as schema,\n CASE table_type\n WHEN 'BASE TABLE' THEN 'table'\n WHEN 'VIEW' THEN 'view'\n WHEN 'LOCAL TEMPORARY' THEN 'table'\n END as type\n from system.information_schema.tables\n where lower(table_schema) = '{{ schema_relation.schema | lower }}'\n and lower(table_catalog) = '{{ schema_relation.database | lower }}'\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.422113, "supported_languages": null}, "macro.dbt_duckdb.duckdb__drop_relation": {"name": "duckdb__drop_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__drop_relation", "macro_sql": "{% macro duckdb__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {% if adapter.is_ducklake(relation) %}\n drop {{ relation.type }} if exists {{ relation }}\n {% else %}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {% endif %}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.422409, "supported_languages": null}, "macro.dbt_duckdb.duckdb__rename_relation": {"name": "duckdb__rename_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__rename_relation", "macro_sql": "{% macro duckdb__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 {{ to_relation.type }} {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4227881, "supported_languages": null}, "macro.dbt_duckdb.duckdb__make_temp_relation": {"name": "duckdb__make_temp_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__make_temp_relation", "macro_sql": "{% macro duckdb__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix ~ py_current_timestring() %}\n {% do return(base_relation.incorporate(\n path={\n \"identifier\": tmp_identifier,\n \"schema\": none,\n \"database\": none\n })) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.py_current_timestring"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423106, "supported_languages": null}, "macro.dbt_duckdb.duckdb__current_timestamp": {"name": "duckdb__current_timestamp", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__current_timestamp", "macro_sql": "{% macro duckdb__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423182, "supported_languages": null}, "macro.dbt_duckdb.duckdb__snapshot_string_as_time": {"name": "duckdb__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__snapshot_string_as_time", "macro_sql": "{% macro duckdb__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423331, "supported_languages": null}, "macro.dbt_duckdb.duckdb__snapshot_get_time": {"name": "duckdb__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__snapshot_get_time", "macro_sql": "{% macro duckdb__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423419, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_incremental_default_sql": {"name": "duckdb__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_incremental_default_sql", "macro_sql": "{% macro duckdb__get_incremental_default_sql(arg_dict) %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423536, "supported_languages": null}, "macro.dbt_duckdb.location_exists": {"name": "location_exists", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.location_exists", "macro_sql": "{% macro location_exists(location) -%}\n {% do return(adapter.location_exists(location)) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423771, "supported_languages": null}, "macro.dbt_duckdb.write_to_file": {"name": "write_to_file", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.write_to_file", "macro_sql": "{% macro write_to_file(relation, location, options) -%}\n {% call statement('write_to_file') -%}\n copy {{ relation }} to '{{ location }}' ({{ options }})\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423949, "supported_languages": null}, "macro.dbt_duckdb.store_relation": {"name": "store_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.store_relation", "macro_sql": "{% macro store_relation(plugin, relation, location, format, config) -%}\n {%- set column_list = adapter.get_columns_in_relation(relation) -%}\n {% do adapter.store_relation(plugin, relation, column_list, location, format, config) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.42417, "supported_languages": null}, "macro.dbt_duckdb.render_write_options": {"name": "render_write_options", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.render_write_options", "macro_sql": "{% macro render_write_options(config) -%}\n {% set options = config.get('options', {}) %}\n {% if options is not mapping %}\n {% do exceptions.raise_compiler_error(\"The options argument must be a dictionary\") %}\n {% endif %}\n\n {% for k in options %}\n {% set _ = options.update({k: render(options[k])}) %}\n {% endfor %}\n\n {# legacy top-level write options #}\n {% if config.get('format') %}\n {% set _ = options.update({'format': render(config.get('format'))}) %}\n {% endif %}\n {% if config.get('delimiter') %}\n {% set _ = options.update({'delimiter': render(config.get('delimiter'))}) %}\n {% endif %}\n\n {% do return(options) %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.424889, "supported_languages": null}, "macro.dbt_duckdb.duckdb__apply_grants": {"name": "duckdb__apply_grants", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__apply_grants", "macro_sql": "{% macro duckdb__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 {{ adapter.warn_once('Grants for relations are not supported by DuckDB') }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.425049, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_create_index_sql": {"name": "duckdb__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_create_index_sql", "macro_sql": "{% macro duckdb__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\n \"{{ index_name }}\"\n on {{ relation }}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4253252, "supported_languages": null}, "macro.dbt_duckdb.drop_indexes_on_relation": {"name": "drop_indexes_on_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.drop_indexes_on_relation", "macro_sql": "{% macro drop_indexes_on_relation(relation) -%}\n {% call statement('get_indexes_on_relation', fetch_result=True) %}\n SELECT index_name\n FROM duckdb_indexes()\n WHERE schema_name = '{{ relation.schema }}'\n AND table_name = '{{ relation.identifier }}'\n {% endcall %}\n\n {% set results = load_result('get_indexes_on_relation').table %}\n {% for row in results %}\n {% set index_name = row[0] %}\n {% call statement('drop_index_' + loop.index|string, auto_begin=false) %}\n DROP INDEX \"{{ relation.schema }}\".\"{{ index_name }}\"\n {% endcall %}\n {% endfor %}\n\n {#-- Verify indexes were dropped --#}\n {% call statement('verify_indexes_dropped', fetch_result=True) %}\n SELECT COUNT(*) as remaining_indexes\n FROM duckdb_indexes()\n WHERE schema_name = '{{ relation.schema }}'\n AND table_name = '{{ relation.identifier }}'\n {% endcall %}\n {% set verify_results = load_result('verify_indexes_dropped').table %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4258702, "supported_languages": null}, "macro.dbt_duckdb.duckdb_escape_comment": {"name": "duckdb_escape_comment", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/persist_docs.sql", "original_file_path": "macros/persist_docs.sql", "unique_id": "macro.dbt_duckdb.duckdb_escape_comment", "macro_sql": "{% macro duckdb_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.426382, "supported_languages": null}, "macro.dbt_duckdb.duckdb__alter_relation_comment": {"name": "duckdb__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/persist_docs.sql", "original_file_path": "macros/persist_docs.sql", "unique_id": "macro.dbt_duckdb.duckdb__alter_relation_comment", "macro_sql": "{% macro duckdb__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = duckdb_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.duckdb_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4265459, "supported_languages": null}, "macro.dbt_duckdb.duckdb__alter_column_comment": {"name": "duckdb__alter_column_comment", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/persist_docs.sql", "original_file_path": "macros/persist_docs.sql", "unique_id": "macro.dbt_duckdb.duckdb__alter_column_comment", "macro_sql": "{% macro duckdb__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 = duckdb_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_duckdb.duckdb_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.426978, "supported_languages": null}, "macro.dbt_duckdb.duckdb__alter_relation_add_remove_columns": {"name": "duckdb__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/columns.sql", "original_file_path": "macros/columns.sql", "unique_id": "macro.dbt_duckdb.duckdb__alter_relation_add_remove_columns", "macro_sql": "{% macro duckdb__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns %}\n {% for column in add_columns %}\n {% set sql -%}\n alter {{ relation.type }} {{ relation }} add column\n {{ api.Relation.create(identifier=column.name) }} {{ column.data_type }}\n {%- endset -%}\n {% do run_query(sql) %}\n {% endfor %}\n {% endif %}\n\n {% if remove_columns %}\n {% for column in remove_columns %}\n {% set sql -%}\n alter {{ relation.type }} {{ relation }} drop column\n {{ api.Relation.create(identifier=column.name) }}\n {%- endset -%}\n {% do run_query(sql) %}\n {% endfor %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.427636, "supported_languages": null}, "macro.dbt_duckdb.materialization_table_function_duckdb": {"name": "materialization_table_function_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/table_function.sql", "original_file_path": "macros/materializations/table_function.sql", "unique_id": "macro.dbt_duckdb.materialization_table_function_duckdb", "macro_sql": "{% materialization table_function, adapter='duckdb' %}\n -- This materialization uses DuckDB's Table Function / Table Macro feature to provide parameterized views.\n -- Why use this?\n -- Late binding of functions means that the underlying table can change (have new columns added), and\n -- the function does not need to be recreated. (With a view, the create view statement would need to be re-run).\n -- This allows for skipping parts of the dbt DAG, even if the underlying table changed.\n -- Parameters can force filter pushdown\n -- Functions can provide advanced features like dynamic SQL (the query and query_table functions)\n\n -- For usage examples, see the tests at /dbt-duckdb/tests/functional/adapter/test_table_function.py\n -- (Don't forget parentheses when you pull from a table_function!)\n\n -- Using Redshift as an example:\n -- https://github.com/dbt-labs/dbt-adapters/blob/main/dbt-redshift/src/dbt/include/redshift/macros/materializations/table.sql\n {%- set identifier = model['alias'] -%}\n {%- set target_relation = api.Relation.create(\n identifier=identifier,\n schema=schema,\n database=database,\n type='view') -%}\n {%- set backup_relation = none -%}\n\n -- The parameters config is used to pass in the names of the parameters that will be used within the table function.\n -- parameters can be a single string value (with or without commas), or a list of strings.\n {%- set parameters=config.get('parameters') -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- Create or replace the function (macro)\n -- By using create or replace (and a transaction), we do not need an old version and new version.\n {% call statement('main') -%}\n create or replace function {{ target_relation.render() }}(\n {% if not parameters %}\n {% elif parameters is string or parameters is number %}\n {{ parameters if parameters }}\n {% else %}\n {{ parameters|join(', ') }}\n {% endif %}\n ) as table (\n {{ sql }});\n {%- endcall %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here:\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_duckdb.run_hooks", "macro.dbt.statement", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.428726, "supported_languages": ["sql"]}, "macro.dbt_duckdb.materialization_table_duckdb": {"name": "materialization_table_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_duckdb.materialization_table_duckdb", "macro_sql": "{% materialization table, adapter=\"duckdb\", supported_languages=['sql', 'python'] %}\n\n {%- set language = model['language'] -%}\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', language=language) -%}\n {{- create_table_as(False, intermediate_relation, compiled_code, language) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {#-- Drop indexes before renaming to avoid dependency errors --#}\n {% do drop_indexes_on_relation(existing_relation) %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "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_duckdb.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_duckdb.drop_indexes_on_relation", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.430271, "supported_languages": ["sql", "python"]}, "macro.dbt_duckdb.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt_duckdb.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4307148, "supported_languages": null}, "macro.dbt_duckdb.materialization_external_duckdb": {"name": "materialization_external_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/external.sql", "original_file_path": "macros/materializations/external.sql", "unique_id": "macro.dbt_duckdb.materialization_external_duckdb", "macro_sql": "{% materialization external, adapter=\"duckdb\", supported_languages=['sql', 'python'] %}\n\n {%- set location = render(config.get('location', default=external_location(this, config))) -%})\n {%- set rendered_options = render_write_options(config) -%}\n\n {%- set format = config.get('format') -%}\n {%- set allowed_formats = ['csv', 'parquet', 'json'] -%}\n {%- if format -%}\n {%- if format not in allowed_formats -%}\n {{ exceptions.raise_compiler_error(\"Invalid format: \" ~ format ~ \". Allowed formats are: \" ~ allowed_formats | join(', ')) }}\n {%- endif -%}\n {%- else -%}\n {%- set format = location.split('.')[-1].lower() if '.' in location else 'parquet' -%}\n {%- set format = format if format in allowed_formats else 'parquet' -%}\n {%- endif -%}\n\n {%- set write_options = adapter.external_write_options(location, rendered_options) -%}\n {%- set read_location = adapter.external_read_location(location, rendered_options) -%}\n {%- set parquet_read_options = config.get('parquet_read_options', {'union_by_name': False}) -%}\n {%- set json_read_options = config.get('json_read_options', {'auto_detect': True}) -%}\n {%- set csv_read_options = config.get('csv_read_options', {'auto_detect': True}) -%}\n\n -- set language - python or sql\n {%- set language = model['language'] -%}\n\n {%- set target_relation = this.incorporate(type='view') %}\n\n -- Continue as normal materialization\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set temp_relation = make_intermediate_relation(this.incorporate(type='table'), suffix='__dbt_tmp') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation, suffix='__dbt_int') -%}\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_temp_relation = load_cached_relation(temp_relation) -%}\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_temp_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('create_table', language=language) -%}\n {{- create_table_as(False, temp_relation, compiled_code, language) }}\n {%- endcall %}\n\n -- check if relation is empty\n {%- set count_query -%}\n select count(*) as row_count from {{ temp_relation }}\n {%- endset -%}\n {%- set row_count = run_query(count_query) -%}\n\n -- if relation is empty, write a non-empty table with column names and null values\n {% call statement('main', language='sql') -%}\n {% if row_count[0][0] == 0 %}\n insert into {{ temp_relation }} values (\n {%- for col in get_columns_in_relation(temp_relation) -%}\n NULL,\n {%- endfor -%}\n )\n {% endif %}\n {%- endcall %}\n\n -- write a temp relation into file\n {{ write_to_file(temp_relation, location, write_options) }}\n\n-- create a view on top of the location\n {% call statement('main', language='sql') -%}\n {% if format == 'json' %}\n create or replace view {{ intermediate_relation }} as (\n select * from read_json('{{ read_location }}'\n {%- for key, value in json_read_options.items() -%}\n , {{ key }}=\n {%- if value is string -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- endfor -%}\n )\n -- if relation is empty, filter by all columns having null values\n {% if row_count[0][0] == 0 %}\n where 1\n {%- for col in get_columns_in_relation(temp_relation) -%}\n {{ '' }} AND \"{{ col.column }}\" is not NULL\n {%- endfor -%}\n {% endif %}\n );\n {% elif format == 'parquet' %}\n create or replace view {{ intermediate_relation }} as (\n select * from read_parquet('{{ read_location }}'\n {%- for key, value in parquet_read_options.items() -%}\n , {{ key }}=\n {%- if value is string -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- endfor -%}\n )\n -- if relation is empty, filter by all columns having null values\n {% if row_count[0][0] == 0 %}\n where 1\n {%- for col in get_columns_in_relation(temp_relation) -%}\n {{ '' }} AND \"{{ col.column }}\" is not NULL\n {%- endfor -%}\n {% endif %}\n );\n {% elif format == 'csv' %}\n create or replace view {{ intermediate_relation }} as (\n select * from read_csv('{{ read_location }}'\n {%- for key, value in csv_read_options.items() -%}\n , {{ key }}=\n {%- if value is string -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- endfor -%}\n )\n -- if relation is empty, filter by all columns having null values\n {% if row_count[0][0] == 0 %}\n where 1\n {%- for col in get_columns_in_relation(temp_relation) -%}\n {{ '' }} AND \"{{ col.column }}\" is not NULL\n {%- endfor -%}\n {% endif %}\n );\n {% endif %}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ 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 {{ drop_relation_if_exists(temp_relation) }}\n\n -- register table into glue\n {%- set plugin_name = config.get('plugin') -%}\n {%- set glue_register = config.get('glue_register', default=false) -%}\n {%- set partition_columns = config.get('partition_columns', []) -%}\n {% if plugin_name is not none or glue_register is true %}\n {% if glue_register %}\n {# legacy hack to set the glue database name, deprecate this #}\n {%- set plugin_name = 'glue|' ~ config.get('glue_database', 'default') -%}\n {% endif %}\n {% do store_relation(plugin_name, target_relation, location, format, config) %}\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_duckdb.external_location", "macro.dbt_duckdb.render_write_options", "macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt_duckdb.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.run_query", "macro.dbt.get_columns_in_relation", "macro.dbt_duckdb.write_to_file", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_duckdb.store_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4358249, "supported_languages": ["sql", "python"]}, "macro.dbt_duckdb.materialization_incremental_duckdb": {"name": "materialization_incremental_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_duckdb.materialization_incremental_duckdb", "macro_sql": "{% materialization incremental, adapter=\"duckdb\", supported_languages=['sql', 'python'] -%}\n\n {%- set language = model['language'] -%}\n -- only create temp tables if using local duckdb, as it is not currently supported for remote databases\n {%- set temporary = not adapter.is_motherduck() -%}\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 {% set to_drop = [] %}\n {% if not temporary %}\n -- if not using a temporary table we will update the temp relation to use a different temp schema (\"dbt_temp\" by default)\n -- for microbatch with concurrent batches, include batch timestamps in the identifier to avoid collisions\n {%- set batch_id = '' -%}\n {%- set batch_ctx = model.get('batch') -%}\n {%- if batch_ctx and batch_ctx.get('event_time_start') -%}\n {%- set batch_id = batch_ctx.get('event_time_start') | string | replace('-', '') | replace(':', '') | replace(' ', '_') | replace('+', '') -%}\n {%- endif -%}\n {% set temp_relation = temp_relation.incorporate(path=adapter.get_temp_relation_path(this, batch_id)) %}\n {% do run_query(create_schema(temp_relation)) %}\n {% if not adapter.disable_transactions() %}\n {% do adapter.commit() %}\n {% endif %}\n -- then drop the temp relation after we insert the incremental data into the target relation\n {% do to_drop.append(temp_relation) %}\n {% endif %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, compiled_code, language) %}\n {% elif full_refresh_mode %}\n {% set build_sql = create_table_as(False, intermediate_relation, compiled_code, language) %}\n {% set need_swap = true %}\n {% else %}\n {% if language == 'python' %}\n {% set build_python = create_table_as(temporary, temp_relation, compiled_code, language) %}\n {% call statement(\"pre\", language=language) %}\n {{- build_python }}\n {% endcall %}\n {% else %} {# SQL #}\n {% do run_query(create_table_as(temporary, temp_relation, compiled_code, language)) %}\n {% endif %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n {% set language = \"sql\" %}\n\n {% endif %}\n\n {% call statement(\"main\", language=language) %}\n {{- build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {#-- Drop indexes on target relation before renaming to backup to avoid dependency errors --#}\n {% do drop_indexes_on_relation(target_relation) %}\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 {# Align order with table materialization to avoid MotherDuck alter conflicts #}\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {% 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 {# On MotherDuck the temp relation is a real table; dropping it cascades indexes. Avoid extra ALTERs. #}\n {% if not adapter.is_motherduck() %}\n {% do drop_indexes_on_relation(rel) %}\n {% endif %}\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_query", "macro.dbt.create_schema", "macro.dbt_duckdb.run_hooks", "macro.dbt.create_table_as", "macro.dbt.statement", "macro.dbt.process_schema_changes", "macro.dbt_duckdb.drop_indexes_on_relation", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.create_indexes", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.439952, "supported_languages": ["sql", "python"]}, "macro.dbt_duckdb.duckdb__merge_join_clause": {"name": "duckdb__merge_join_clause", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_duckdb.duckdb__merge_join_clause", "macro_sql": "{% macro duckdb__merge_join_clause(unique_key, merge_on_using_columns, incremental_predicates) -%}\n {%- set incremental_filters = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set join_predicates = [] -%}\n {%- set using_clause_requested = merge_on_using_columns and merge_on_using_columns | length > 0 -%}\n\n {%- if not using_clause_requested -%}\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 {% do join_predicates.append(\"DBT_INTERNAL_SOURCE.\" ~ key ~ \" = DBT_INTERNAL_DEST.\" ~ key) %}\n {% endfor %}\n {% else %}\n {% do join_predicates.append(\"DBT_INTERNAL_SOURCE.\" ~ unique_key ~ \" = DBT_INTERNAL_DEST.\" ~ unique_key) %}\n {% endif %}\n {% else %}\n {% do join_predicates.append('FALSE') %}\n {% endif %}\n {%- endif -%}\n\n {% if using_clause_requested %}\n USING ({{ merge_on_using_columns | join(', ') }})\n {%- if incremental_filters | length > 0 %}\n ON ({{ incremental_filters | join(\") AND (\") }})\n {%- endif %}\n {% else %}\n ON ({{ (join_predicates + incremental_filters) | join(\") AND (\") }})\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.441917, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_incremental_merge_sql": {"name": "duckdb__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_incremental_merge_sql", "macro_sql": "{% macro duckdb__get_incremental_merge_sql(args_dict) %}\n {%- set target_relation = args_dict['target_relation'] -%}\n {%- set temp_relation = args_dict['temp_relation'] -%}\n {%- set unique_key = args_dict['unique_key'] -%}\n {%- set dest_columns = args_dict['dest_columns'] -%}\n {%- set incremental_predicates = normalize_incremental_predicates(args_dict.get('incremental_predicates')) -%}\n\n {%- set build_sql = duckdb__get_merge_sql(target_relation, temp_relation, unique_key, dest_columns, incremental_predicates) -%}\n\n {{ return(build_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.normalize_incremental_predicates", "macro.dbt_duckdb.duckdb__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.442284, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_merge_sql": {"name": "duckdb__get_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_merge_sql", "macro_sql": "{% macro duckdb__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = normalize_incremental_predicates(incremental_predicates) -%}\n\n {{ validate_merge_config(config, target) }}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {%- set merge_on_using_columns = config.get('merge_on_using_columns', []) -%}\n {%- set merge_update_condition = config.get('merge_update_condition', none) -%}\n {%- set merge_insert_condition = config.get('merge_insert_condition', none) -%}\n {%- set merge_update_columns = config.get('merge_update_columns', []) -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns', []) -%}\n {%- set merge_update_set_expressions = config.get('merge_update_set_expressions', {}) -%}\n {%- set merge_returning_columns = config.get('merge_returning_columns', []) -%}\n\n {%- set merge_clause_defaults = merge_clause_defaults(\n merge_update_condition,\n merge_insert_condition,\n merge_update_columns,\n merge_exclude_columns,\n merge_update_set_expressions\n ) -%}\n\n {%- set merge_clauses = config.get('merge_clauses', {}) -%}\n {%- set when_matched_clauses = merge_clauses.get('when_matched', [\n merge_clause_defaults.when_matched_update_explicit\n if (merge_update_columns|length != 0 or merge_exclude_columns|length != 0 or merge_update_set_expressions|length != 0)\n else merge_clause_defaults.when_matched_update_by_name\n ]) -%}\n\n {%- set when_not_matched_clauses = merge_clauses.get('when_not_matched', [\n merge_clause_defaults.when_not_matched_insert_by_name\n ]) -%}\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 {{ duckdb__merge_join_clause(unique_key, merge_on_using_columns, incremental_predicates) }}\n\n {%- for when_matched in when_matched_clauses %}\n WHEN MATCHED\n {%- if when_matched.get('condition') -%}\n {%- if when_matched.get('condition') is string %} AND {{ when_matched.get('condition') }}\n {%- else %} AND ({{ when_matched.get('condition') | join(') AND (') }})\n {%- endif -%}\n {%- endif %}\n THEN\n {% if when_matched.get('action') == 'update' %}\n {%- if when_matched.get('mode') == 'by_name' -%}\n UPDATE BY NAME\n {%- elif when_matched.get('mode') == 'by_position' -%}\n UPDATE BY POSITION\n {%- elif when_matched.get('mode') == 'star' -%}\n UPDATE SET *\n {%- elif when_matched.get('mode') == 'explicit' -%}\n {%- set include_columns = when_matched.get('update', {}).get('include', []) -%}\n {%- set exclude_columns = when_matched.get('update', {}).get('exclude', []) -%}\n {%- set set_expressions = when_matched.get('update', {}).get('set_expressions', {}) -%}\n\n {%- set update_columns = get_merge_update_columns(include_columns, exclude_columns, dest_columns) -%}\n\n {%- set update_columns_after_overrides = [] -%}\n {%- for column in update_columns -%}\n {%- set unquoted_column = column.replace('\"', '').replace(\"'\", \"\") -%}\n {%- if unquoted_column not in set_expressions -%}\n {%- do update_columns_after_overrides.append(column) -%}\n {%- endif -%}\n {%- endfor -%}\n\n UPDATE SET\n {% for column, expression in set_expressions.items() -%}\n {{ column }} = {{ expression }}{% if not loop.last or update_columns_after_overrides|length > 0 %}, {% endif %}\n {%- endfor %}\n {%- for column in update_columns_after_overrides -%}\n {{ column }} = DBT_INTERNAL_SOURCE.{{ column }}{% if not loop.last %}, {% endif %}\n {%- endfor %}\n {%- endif -%}\n\n {%- elif when_matched.get('action') == 'delete' %}\n DELETE\n {%- elif when_matched.get('action') == 'do_nothing' %}\n DO NOTHING\n {%- elif when_matched.get('action') == 'error' %}\n {%- set error_message = (when_matched.get('error_message', '') or '') | replace(\"'\", \"''\") -%}\n ERROR{% if when_matched.get('error_message') %} '{{ error_message }}'{% endif %}\n {%- endif %}\n {%- endfor %}\n\n {%- for when_not_matched in when_not_matched_clauses %}\n WHEN NOT MATCHED\n {% if when_not_matched.get('by') %}BY {{ when_not_matched.get('by') | upper }} {% endif %}\n {%- if when_not_matched.get('condition') -%}\n {%- if when_not_matched.get('condition') is string %} AND {{ when_not_matched.get('condition') }}\n {%- else %} AND ({{ when_not_matched.get('condition') | join(') AND (') }})\n {%- endif -%}\n {%- endif %}\n THEN\n {% if when_not_matched.get('action') == 'update' %}\n {%- set set_expressions = when_not_matched.get('set_expressions', {}) -%}\n\n UPDATE SET\n {% for column, expression in set_expressions.items() -%}\n {{ column }} = {{ expression }}{% if not loop.last %}, {% endif %}\n {%- endfor %}\n\n {%- elif when_not_matched.get('action') == 'insert' %}\n {%- if when_not_matched.get('mode') == 'by_name' -%}\n INSERT BY NAME\n {%- elif when_not_matched.get('mode') == 'by_position' -%}\n INSERT BY POSITION\n {%- elif when_not_matched.get('mode') == 'star' -%}\n INSERT *\n {%- elif when_not_matched.get('mode') == 'explicit' -%}\n {%- set insert_columns = when_not_matched.get('insert', {}).get('columns', []) -%}\n {%- set insert_values = when_not_matched.get('insert', {}).get('values', []) -%}\n\n INSERT\n ({{ insert_columns | join(', ') }})\n VALUES ({{ insert_values | join(', ') }})\n {%- endif -%}\n {%- elif when_not_matched.get('action') == 'delete' %}\n DELETE\n {%- elif when_not_matched.get('action') == 'do_nothing' %}\n DO NOTHING\n {%- elif when_not_matched.get('action') == 'error' %}\n {%- set error_message = (when_not_matched.get('error_message', '') or '') | replace(\"'\", \"''\") -%}\n ERROR{% if when_not_matched.get('error_message') %} '{{ error_message }}'{% endif %}\n {%- endif %}\n {%- endfor %}\n\n {%- if merge_returning_columns %}\n RETURNING {{ merge_returning_columns if merge_returning_columns is string else merge_returning_columns | join(', ') }}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.normalize_incremental_predicates", "macro.dbt_duckdb.validate_merge_config", "macro.dbt_duckdb.merge_clause_defaults", "macro.dbt_duckdb.duckdb__merge_join_clause", "macro.dbt.get_merge_update_columns", "macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.446988, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_incremental_microbatch_sql": {"name": "duckdb__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/microbatch.sql", "original_file_path": "macros/materializations/incremental_strategy/microbatch.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_incremental_microbatch_sql", "macro_sql": "{% macro duckdb__get_incremental_microbatch_sql(arg_dict) -%}\n {# Extract and validate required config #}\n {%- set event_time = config.get('event_time') -%}\n {%- if not event_time -%}\n {{ exceptions.raise_compiler_error(\"microbatch incremental strategy requires an 'event_time' model config\") }}\n {%- endif -%}\n\n {# microbatch is implemented as delete+insert on event_time; unique_key is ignored and misleading #}\n {%- set unique_key = config.get('unique_key') -%}\n {%- if unique_key -%}\n {{ exceptions.raise_compiler_error(\"microbatch incremental strategy does not support 'unique_key'. Microbatch runs delete+insert per batch based on 'event_time' and does not do key-based upserts. Remove 'unique_key' or use incremental_strategy='merge'.\") }}\n {%- endif -%}\n\n {# Extract batch context - dbt sets these per batch run based on lookback window #}\n {%- set batch_ctx = model.get('batch') -%}\n {%- set batch_start = batch_ctx.get('event_time_start') if batch_ctx else none -%}\n {%- set batch_end = batch_ctx.get('event_time_end') if batch_ctx else none -%}\n\n {%- if not (batch_start and batch_end) -%}\n {{ exceptions.raise_compiler_error(\"microbatch incremental strategy requires 'batch.event_time_start' and 'batch.event_time_end' to be set in the context\") }}\n {%- endif -%}\n\n {# Extract remaining arguments #}\n {%- set target = arg_dict[\"target_relation\"] -%}\n {%- set source = arg_dict[\"temp_relation\"] -%}\n {%- set dest_columns = arg_dict[\"dest_columns\"] -%}\n {%- set incremental_predicates = normalize_incremental_predicates(arg_dict.get(\"incremental_predicates\")) -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {# Build the batch time filter predicate #}\n {# batch_start and batch_end are already UTC timestamps from dbt Python code #}\n {%- set batch_predicate -%}\n {{ event_time }} >= '{{ batch_start }}'\n and {{ event_time }} < '{{ batch_end }}'\n {%- endset -%}\n\n {# Build combined WHERE clause with optional incremental predicates #}\n {%- set where_clause -%}\n {{ batch_predicate }}\n {%- for predicate in incremental_predicates %}\n and ({{ predicate }})\n {%- endfor %}\n {%- endset -%}\n\n {# Generate delete + insert SQL #}\n {%- set build_sql -%}\n delete from {{ target }}\n where {{ where_clause }};\n\n insert into {{ target }} ({{ dest_cols_csv }})\n select {{ dest_cols_csv }}\n from {{ source }}\n where {{ batch_predicate }};\n {%- endset -%}\n\n {{ return(build_sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.normalize_incremental_predicates", "macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.448496, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_delete_insert_merge_sql": {"name": "duckdb__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/delete_insert.sql", "original_file_path": "macros/materializations/incremental_strategy/delete_insert.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_delete_insert_merge_sql", "macro_sql": "{% macro duckdb__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }} as DBT_INCREMENTAL_TARGET\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = DBT_INCREMENTAL_TARGET.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.449436, "supported_languages": null}, "macro.dbt_duckdb.validate_merge_config": {"name": "validate_merge_config", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_merge_config", "macro_sql": "{% macro validate_merge_config(config, target_relation=none) %}\n {%- set errors = [] -%}\n\n {%- set base_configuration_fields = {\n 'merge_update_condition': 'string',\n 'merge_insert_condition': 'string',\n 'merge_on_using_columns': 'sequence',\n 'merge_update_columns': 'sequence',\n 'merge_update_set_expressions': 'mapping',\n 'merge_exclude_columns': 'sequence',\n 'merge_returning_columns': 'sequence'\n } -%}\n\n {%- for field_name, field_type in base_configuration_fields.items() -%}\n {%- set field_value = config.get(field_name) -%}\n {%- if field_type == 'string' -%}\n {%- do validate_string_field(field_value, field_name, errors) -%}\n {%- elif field_type == 'sequence' -%}\n {%- do validate_string_list_field(field_value, field_name, errors) -%}\n {%- elif field_type == 'mapping' -%}\n {%- do validate_dict_field(field_value, field_name, errors) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- do validate_ducklake_restrictions(config, target_relation, errors) -%}\n\n {%- do validate_merge_clauses(config, base_configuration_fields, errors) -%}\n\n {%- if errors -%}\n {{ exceptions.raise_compiler_error(\"MERGE configuration errors:\\n\" ~ errors|join('\\n')) }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.validate_string_field", "macro.dbt_duckdb.validate_string_list_field", "macro.dbt_duckdb.validate_dict_field", "macro.dbt_duckdb.validate_ducklake_restrictions", "macro.dbt_duckdb.validate_merge_clauses"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4509802, "supported_languages": null}, "macro.dbt_duckdb.validate_merge_clauses": {"name": "validate_merge_clauses", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_merge_clauses", "macro_sql": "\n\n\n{%- macro validate_merge_clauses(config, base_configuration_fields, errors) -%}\n {%- if config.get('merge_clauses') is not none -%}\n {%- if config.get('merge_clauses') is not mapping -%}\n {%- do errors.append(\"merge_clauses must be a dictionary, found: \" ~ config.get('merge_clauses')) -%}\n {%- else -%}\n {%- set merge_clauses = config.get('merge_clauses') -%}\n {%- set clause_types = ['when_matched', 'when_not_matched'] -%}\n\n {%- set has_when_matched = 'when_matched' in merge_clauses -%}\n {%- set has_when_not_matched = 'when_not_matched' in merge_clauses -%}\n\n {%- if not has_when_matched and not has_when_not_matched -%}\n {%- do errors.append(\"merge_clauses must contain at least one of 'when_matched' or 'when_not_matched' keys\") -%}\n {%- endif -%}\n\n {%- for clause_type in clause_types -%}\n {%- if clause_type in merge_clauses -%}\n {%- do validate_merge_clause_list(merge_clauses, clause_type, errors) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- set conflicting_configs = [] -%}\n {%- for config_name, config_type in base_configuration_fields.items() -%}\n {%- if config_name not in ['merge_on_using_columns', 'merge_returning_columns'] -%}\n {%- set config_value = config.get(config_name) -%}\n {%- if config_value is not none -%}\n {%- if config_type == 'sequence' -%}\n {%- if config_value|length > 0 -%}\n {%- do conflicting_configs.append(config_name) -%}\n {%- endif -%}\n {%- elif config_type == 'mapping' -%}\n {%- if config_value.keys()|length > 0 -%}\n {%- do conflicting_configs.append(config_name) -%}\n {%- endif -%}\n {%- else -%}\n {%- do conflicting_configs.append(config_name) -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if conflicting_configs|length > 0 -%}\n {%- do errors.append(\"When merge_clauses is specified, the following basic merge configurations will be ignored and should be removed: \" ~ conflicting_configs|join(', ') ~ \". Define your merge behavior within merge_clauses instead.\") -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_duckdb.validate_merge_clause_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4521978, "supported_languages": null}, "macro.dbt_duckdb.validate_merge_clause_list": {"name": "validate_merge_clause_list", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_merge_clause_list", "macro_sql": "{%- macro validate_merge_clause_list(merge_clauses, clause_type, errors) -%}\n {%- if merge_clauses.get(clause_type) is not sequence or merge_clauses.get(clause_type) is mapping or merge_clauses.get(clause_type) is string -%}\n {%- do errors.append(\"merge_clauses.\" ~ clause_type ~ \" must be a list\") -%}\n {%- elif merge_clauses.get(clause_type)|length == 0 -%}\n {%- do errors.append(\"merge_clauses.\" ~ clause_type ~ \" must contain at least one element\") -%}\n {%- else -%}\n {%- for clause in merge_clauses.get(clause_type) -%}\n {%- if clause is not mapping -%}\n {%- do errors.append(\"merge_clauses.\" ~ clause_type ~ \" elements must be dictionaries, found: \" ~ clause) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4527209, "supported_languages": null}, "macro.dbt_duckdb.validate_ducklake_restrictions": {"name": "validate_ducklake_restrictions", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_ducklake_restrictions", "macro_sql": "{%- macro validate_ducklake_restrictions(config, target_relation, errors) -%}\n {%- if target_relation and adapter.is_ducklake(target_relation) -%}\n {%- set merge_clauses = config.get('merge_clauses', {}) -%}\n {%- if merge_clauses and 'when_matched' in merge_clauses -%}\n {%- set when_matched_clauses = merge_clauses.get('when_matched', []) -%}\n {%- set update_delete_count = 0 -%}\n\n {%- for clause in when_matched_clauses -%}\n {%- if clause is mapping and clause.get('action') in ['update', 'delete'] -%}\n {%- set update_delete_count = update_delete_count + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if update_delete_count > 1 -%}\n {%- do errors.append(\"DuckLake MERGE restrictions: when_matched clauses can contain only a single UPDATE or DELETE action. Found \" ~ update_delete_count ~ \" UPDATE/DELETE actions. DuckLake currently supports only one UPDATE or DELETE operation per MERGE statement.\") -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.453283, "supported_languages": null}, "macro.dbt_duckdb.validate_string_field": {"name": "validate_string_field", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.validate_string_field", "macro_sql": "{%- macro validate_string_field(field_value, field_name, errors) -%}\n {%- if field_value is not none and field_value is not string -%}\n {%- do errors.append(field_name ~ \" must be a string, found: \" ~ field_value) -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.453723, "supported_languages": null}, "macro.dbt_duckdb.validate_string_list_field": {"name": "validate_string_list_field", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.validate_string_list_field", "macro_sql": "{%- macro validate_string_list_field(field_value, field_name, errors) -%}\n {%- if field_value is not none -%}\n {%- if field_value is not sequence or field_value is mapping or field_value is string -%}\n {%- do errors.append(field_name ~ \" must be a list\") -%}\n {%- else -%}\n {%- for item in field_value -%}\n {%- if item is not string -%}\n {%- do errors.append(field_name ~ \" must contain only string values, found: \" ~ item) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.454077, "supported_languages": null}, "macro.dbt_duckdb.validate_dict_field": {"name": "validate_dict_field", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.validate_dict_field", "macro_sql": "{%- macro validate_dict_field(field_value, field_name, errors) -%}\n {%- if field_value is not none and field_value is not mapping -%}\n {%- do errors.append(field_name ~ \" must be a dictionary, found: \" ~ field_value) -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.454262, "supported_languages": null}, "macro.dbt_duckdb.normalize_incremental_predicates": {"name": "normalize_incremental_predicates", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.normalize_incremental_predicates", "macro_sql": "{%- macro normalize_incremental_predicates(incremental_predicates) -%}\n {%- if incremental_predicates is none -%}\n {%- set incremental_predicates = [] -%}\n {%- elif incremental_predicates is mapping -%}\n {{ exceptions.raise_compiler_error(\"incremental_predicates must be a list of strings or a string\") }}\n {%- elif incremental_predicates is string -%}\n {%- set incremental_predicates = [incremental_predicates] -%}\n {%- elif incremental_predicates is sequence -%}\n {%- set incremental_predicates = incremental_predicates | list -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\"incremental_predicates must be a list of strings or a string\") }}\n {%- endif -%}\n {{ return(incremental_predicates) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.454616, "supported_languages": null}, "macro.dbt_duckdb.merge_clause_defaults": {"name": "merge_clause_defaults", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_defaults.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_defaults.sql", "unique_id": "macro.dbt_duckdb.merge_clause_defaults", "macro_sql": "{% macro merge_clause_defaults(\n merge_update_condition,\n merge_insert_condition,\n merge_update_columns=[],\n merge_exclude_columns=[],\n merge_update_set_expressions={}\n) -%}\n\n {{ return({\n 'when_matched_update_by_name': {\n 'action': 'update',\n 'condition': merge_update_condition,\n 'mode': 'by_name'\n },\n 'when_not_matched_insert_by_name': {\n 'action': 'insert',\n 'condition': merge_insert_condition,\n 'mode': 'by_name'\n },\n 'when_matched_update_explicit': {\n 'action': 'update',\n 'condition': merge_update_condition,\n 'mode': 'explicit',\n 'update': {\n 'include': merge_update_columns,\n 'exclude': merge_exclude_columns,\n 'set_expressions': merge_update_set_expressions\n }\n }\n }) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.45521, "supported_languages": null}, "macro.dbt_duckdb.duckdb__generate_series": {"name": "duckdb__generate_series", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt_duckdb.duckdb__generate_series", "macro_sql": "{% macro duckdb__generate_series(upper_bound) %}\n select\n generate_series as generated_number\n from generate_series(1, {{ upper_bound }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.455327, "supported_languages": null}, "macro.dbt_duckdb.duckdb__dateadd": {"name": "duckdb__dateadd", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_duckdb.duckdb__dateadd", "macro_sql": "{% macro duckdb__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {#\n Support both literal and expression intervals (e.g., column references)\n by multiplying an INTERVAL by the value. This avoids DuckDB parser issues\n with \"interval () \" and works across versions.\n\n Also map unsupported units:\n - quarter => 3 months\n - week => 7 days (DuckDB supports WEEK as a literal, but keep it explicit)\n #}\n\n {%- set unit = datepart | lower -%}\n {%- if unit == 'quarter' -%}\n ({{ from_date_or_timestamp }} + (cast({{ interval }} as bigint) * 3) * interval 1 month)\n {%- elif unit == 'week' -%}\n ({{ from_date_or_timestamp }} + (cast({{ interval }} as bigint) * 7) * interval 1 day)\n {%- else -%}\n ({{ from_date_or_timestamp }} + cast({{ interval }} as bigint) * interval 1 {{ unit }})\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.455744, "supported_languages": null}, "macro.dbt_duckdb.duckdb__listagg": {"name": "duckdb__listagg", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_duckdb.duckdb__listagg", "macro_sql": "{% macro duckdb__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n {% if limit_num -%}\n list_aggr(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n 'string_agg',\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{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.456127, "supported_languages": null}, "macro.dbt_duckdb.duckdb__datediff": {"name": "duckdb__datediff", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_duckdb.duckdb__datediff", "macro_sql": "{% macro duckdb__datediff(first_date, second_date, datepart) -%}\n {% if 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 {% else %}\n (date_diff('{{ datepart }}', {{ first_date }}::timestamp, {{ second_date}}::timestamp ))\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.456522, "supported_languages": null}, "macro.dbt_duckdb.duckdb__any_value": {"name": "duckdb__any_value", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_duckdb.duckdb__any_value", "macro_sql": "{% macro duckdb__any_value(expression) -%}\n\n arbitrary({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.456628, "supported_languages": null}, "macro.dbt_duckdb.register_upstream_external_models": {"name": "register_upstream_external_models", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/upstream.sql", "original_file_path": "macros/utils/upstream.sql", "unique_id": "macro.dbt_duckdb.register_upstream_external_models", "macro_sql": "{%- macro register_upstream_external_models() -%}\n{% if execute %}\n{% set upstream_nodes = {} %}\n{% set upstream_schemas = {} %}\n{% for node in selected_resources %}\n {% if node not in graph['nodes'] %}{% continue %}{% endif %}\n {% for upstream_node in graph['nodes'][node]['depends_on']['nodes'] %}\n {% if upstream_node not in upstream_nodes and upstream_node not in selected_resources %}\n {% do upstream_nodes.update({upstream_node: None}) %}\n {% set upstream = graph['nodes'].get(upstream_node) %}\n {% if upstream\n and upstream.resource_type in ('model', 'seed')\n and upstream.config.materialized=='external'\n %}\n {%- set upstream_rel = api.Relation.create(\n database=upstream['database'],\n schema=upstream['schema'],\n identifier=upstream['alias']\n ) -%}\n {%- set location = upstream.config.get('location', external_location(upstream_rel, upstream.config)) -%}\n {%- set rendered_options = render_write_options(upstream.config) -%}\n {%- set upstream_location = adapter.external_read_location(location, rendered_options) -%}\n {% if upstream_rel.schema not in upstream_schemas %}\n {% call statement('main', language='sql') -%}\n create schema if not exists {{ upstream_rel.without_identifier() }}\n {%- endcall %}\n {% do upstream_schemas.update({upstream_rel.schema: None}) %}\n {% endif %}\n {% call statement('main', language='sql') -%}\n create or replace view {{ upstream_rel }} as (\n select * from '{{ upstream_location }}'\n );\n {%- endcall %}\n {%- endif %}\n {% endif %}\n {% endfor %}\n{% endfor %}\n{% if upstream_schemas %}\n {% do adapter.commit() %}\n{% endif %}\n{% endif %}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_duckdb.external_location", "macro.dbt_duckdb.render_write_options", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4582431, "supported_languages": null}, "macro.dbt_duckdb.duckdb__split_part": {"name": "duckdb__split_part", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/splitpart.sql", "original_file_path": "macros/utils/splitpart.sql", "unique_id": "macro.dbt_duckdb.duckdb__split_part", "macro_sql": "{% macro duckdb__split_part(string_text, delimiter_text, part_number) %}\n string_split({{ string_text }}, {{ delimiter_text }})[ {{ part_number }} ]\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.458411, "supported_languages": null}, "macro.dbt_duckdb.duckdb__last_day": {"name": "duckdb__last_day", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/lastday.sql", "original_file_path": "macros/utils/lastday.sql", "unique_id": "macro.dbt_duckdb.duckdb__last_day", "macro_sql": "{% macro duckdb__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- duckdb 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.458761, "supported_languages": null}, "macro.dbt_duckdb.external_location": {"name": "external_location", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/external_location.sql", "original_file_path": "macros/utils/external_location.sql", "unique_id": "macro.dbt_duckdb.external_location", "macro_sql": "{%- macro external_location(relation, config) -%}\n {%- if config.get('options', {}).get('partition_by') is none -%}\n {%- set format = config.get('format', 'parquet') -%}\n {{- adapter.external_root() }}/{{ relation.identifier }}.{{ format }}\n {%- else -%}\n {{- adapter.external_root() }}/{{ relation.identifier }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.459152, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4597702, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.459905, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4600031, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4601018, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.460196, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.460415, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.460619, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4608269, "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_duckdb.duckdb__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4611452, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4617128, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.463281, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.463401, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4635599, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.464235, "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_duckdb.duckdb__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.464349, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.464468, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.465516, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.46654, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468365, "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.expanded_data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468595, "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_duckdb.duckdb__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468711, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4687748, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468878, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4689631, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4691122, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.469283, "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\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\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\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4724321, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.472584, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.472938, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4732301, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.473634, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.473933, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.474124, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4743612, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.474762, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.47491, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4750578, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.477921, "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 {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4797308, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.480154, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4803681, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.480509, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.480934, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.481169, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.481428, "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 {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.482848, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4840379, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4843059, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.48448, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4853692, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4855318, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.48597, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.487505, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.488982, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.48962, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.489999, "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 {{ return(adapter.dispatch('diff_column_data_types', 'dbt')(source_columns, target_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4901419, "supported_languages": null}, "macro.dbt.default__diff_column_data_types": {"name": "default__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.default__diff_column_data_types", "macro_sql": "{% macro default__diff_column_data_types(source_columns, target_columns) %}\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.expanded_data_type != tc.expanded_data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.expanded_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.490658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4908218, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.491316, "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_duckdb.duckdb__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.492157, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.493346, "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_duckdb.duckdb__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.493529, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.494024, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.49421, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4946592, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.495082, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4955788, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4957418, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.495869, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496068, "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_duckdb.duckdb__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496193, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4963908, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.49652, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4966972, "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_duckdb.duckdb__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496824, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496929, "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_duckdb.duckdb__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.497056, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4971678, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.497361, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5004601, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.501468, "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 {{ return(adapter.dispatch('check_for_schema_changes', 'dbt')(source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__check_for_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.501614, "supported_languages": null}, "macro.dbt.default__check_for_schema_changes": {"name": "default__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.default__check_for_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.502429, "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 {{ return(adapter.dispatch('sync_column_schemas', 'dbt')(on_schema_change, target_relation, schema_changes_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.502594, "supported_languages": null}, "macro.dbt.default__sync_column_schemas": {"name": "default__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.default__sync_column_schemas", "macro_sql": "{% macro default__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 {%- 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 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\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5033941, "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 {{ return(adapter.dispatch('process_schema_changes', 'dbt')(on_schema_change, source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__process_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.503558, "supported_languages": null}, "macro.dbt.default__process_schema_changes": {"name": "default__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.default__process_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504127, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504301, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504384, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.50459, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504707, "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 {%- set grant_config = config.get('grants') -%}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.506517, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5082922, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.509071, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.509679, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.509841, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5101728, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510303, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510394, "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_duckdb.duckdb__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5105689, "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_duckdb.duckdb__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510676, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510828, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.511153, "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_duckdb.duckdb__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5112782, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.512105, "supported_languages": null}, "macro.dbt.scalar_function_sql": {"name": "scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_sql", "macro_sql": "{% macro scalar_function_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.512626, "supported_languages": null}, "macro.dbt.default__scalar_function_sql": {"name": "default__scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_sql", "macro_sql": "{% macro default__scalar_function_sql(target_relation) %}\n {{ scalar_function_create_replace_signature_sql(target_relation) }}\n {{ scalar_function_body_sql() }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_create_replace_signature_sql", "macro.dbt.scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5127318, "supported_languages": null}, "macro.dbt.scalar_function_create_replace_signature_sql": {"name": "scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_create_replace_signature_sql", "macro_sql": "{% macro scalar_function_create_replace_signature_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_create_replace_signature_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_create_replace_signature_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.512854, "supported_languages": null}, "macro.dbt.default__scalar_function_create_replace_signature_sql": {"name": "default__scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_create_replace_signature_sql", "macro_sql": "{% macro default__scalar_function_create_replace_signature_sql(target_relation) %}\n CREATE OR REPLACE FUNCTION {{ target_relation.render() }} ({{ formatted_scalar_function_args_sql()}})\n RETURNS {{ model.returns.data_type }}\n {{ scalar_function_volatility_sql() }}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql", "macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513006, "supported_languages": null}, "macro.dbt.formatted_scalar_function_args_sql": {"name": "formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.formatted_scalar_function_args_sql", "macro_sql": "{% macro formatted_scalar_function_args_sql() %}\n {{ return(adapter.dispatch('formatted_scalar_function_args_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.51312, "supported_languages": null}, "macro.dbt.default__formatted_scalar_function_args_sql": {"name": "default__formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__formatted_scalar_function_args_sql", "macro_sql": "{% macro default__formatted_scalar_function_args_sql() %}\n {% set args = [] %}\n {% for arg in model.arguments -%}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type) -%}\n {%- endfor %}\n {{ args | join(', ') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513344, "supported_languages": null}, "macro.dbt.scalar_function_body_sql": {"name": "scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_body_sql", "macro_sql": "{% macro scalar_function_body_sql() %}\n {{ return(adapter.dispatch('scalar_function_body_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513456, "supported_languages": null}, "macro.dbt.default__scalar_function_body_sql": {"name": "default__scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_body_sql", "macro_sql": "{% macro default__scalar_function_body_sql() %}\n $$\n {{ model.compiled_code }}\n $$ LANGUAGE SQL\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513528, "supported_languages": null}, "macro.dbt.scalar_function_volatility_sql": {"name": "scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_volatility_sql", "macro_sql": "{% macro scalar_function_volatility_sql() %}\n {{ return(adapter.dispatch('scalar_function_volatility_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5136378, "supported_languages": null}, "macro.dbt.default__scalar_function_volatility_sql": {"name": "default__scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_volatility_sql", "macro_sql": "{% macro default__scalar_function_volatility_sql() %}\n {% set volatility = model.config.get('volatility') %}\n {% if volatility == 'deterministic' %}\n IMMUTABLE\n {% elif volatility == 'stable' %}\n STABLE\n {% elif volatility == 'non-deterministic' %}\n VOLATILE\n {% elif volatility != none %}\n {# This shouldn't happen unless a new volatility is invented #}\n {% do unsupported_volatility_warning(volatility) %}\n {% endif %}\n {# If no volatility is set, don't add anything and let the data warehouse default it #}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5139232, "supported_languages": null}, "macro.dbt.unsupported_volatility_warning": {"name": "unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.unsupported_volatility_warning", "macro_sql": "{% macro unsupported_volatility_warning(volatility) %}\n {{ return(adapter.dispatch('unsupported_volatility_warning', 'dbt')(volatility)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5140522, "supported_languages": null}, "macro.dbt.default__unsupported_volatility_warning": {"name": "default__unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__unsupported_volatility_warning", "macro_sql": "{% macro default__unsupported_volatility_warning(volatility) %}\n {% set msg = \"Found `\" ~ volatility ~ \"` volatility specified on function `\" ~ model.name ~ \"`. This volatility is not supported by \" ~ adapter.type() ~ \", and will be ignored\" %}\n {% do exceptions.warn(msg) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5142379, "supported_languages": null}, "macro.dbt.function_execute_build_sql": {"name": "function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.function_execute_build_sql", "macro_sql": "{% macro function_execute_build_sql(build_sql, existing_relation, target_relation) %}\n {{ return(adapter.dispatch('function_execute_build_sql', 'dbt')(build_sql, existing_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5144992, "supported_languages": null}, "macro.dbt.default__function_execute_build_sql": {"name": "default__function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.default__function_execute_build_sql", "macro_sql": "{% macro default__function_execute_build_sql(build_sql, existing_relation, target_relation) %}\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 {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5148559, "supported_languages": null}, "macro.dbt.get_aggregate_function_create_replace_signature": {"name": "get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_create_replace_signature", "macro_sql": "{% macro get_aggregate_function_create_replace_signature(target_relation) %}\n {{ return(adapter.dispatch('get_aggregate_function_create_replace_signature', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_create_replace_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.515344, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_create_replace_signature": {"name": "default__get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_create_replace_signature", "macro_sql": "{% macro default__get_aggregate_function_create_replace_signature(target_relation) %}\n CREATE OR REPLACE AGGREGATE FUNCTION {{ target_relation.render() }} ({{ get_formatted_aggregate_function_args()}})\n RETURNS {{ model.returns.data_type }}\n {{ get_function_language_specifier() }}\n {{ get_aggregate_function_volatility_specifier() }}\n {% if model.get('language') == 'python' %}\n {{ get_function_python_options() }}\n {% endif %}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_formatted_aggregate_function_args", "macro.dbt.get_function_language_specifier", "macro.dbt.get_aggregate_function_volatility_specifier", "macro.dbt.get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5156639, "supported_languages": null}, "macro.dbt.get_formatted_aggregate_function_args": {"name": "get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_formatted_aggregate_function_args", "macro_sql": "{% macro get_formatted_aggregate_function_args() %}\n {{ return(adapter.dispatch('get_formatted_aggregate_function_args', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_formatted_aggregate_function_args"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.515788, "supported_languages": null}, "macro.dbt.default__get_formatted_aggregate_function_args": {"name": "default__get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_formatted_aggregate_function_args", "macro_sql": "{% macro default__get_formatted_aggregate_function_args() %}\n {# conveniently we can reuse the sql scalar function args #}\n {{ formatted_scalar_function_args_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.515878, "supported_languages": null}, "macro.dbt.get_function_language_specifier": {"name": "get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_language_specifier", "macro_sql": "{% macro get_function_language_specifier() %}\n {{ return(adapter.dispatch('get_function_language_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_language_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516002, "supported_languages": null}, "macro.dbt.default__get_function_language_specifier": {"name": "default__get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_language_specifier", "macro_sql": "{% macro default__get_function_language_specifier() %}\n {% set language = model.get('language') %}\n {% if language == 'sql' %}\n {# generally you dont need to specify the language for sql functions #}\n {% elif language == 'python' %}\n LANGUAGE PYTHON\n {% else %}\n {{ 'LANGUAGE ' ~ language.upper() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.51632, "supported_languages": null}, "macro.dbt.get_aggregate_function_volatility_specifier": {"name": "get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_volatility_specifier", "macro_sql": "{% macro get_aggregate_function_volatility_specifier() %}\n {{ return(adapter.dispatch('get_aggregate_function_volatility_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_volatility_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516439, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_volatility_specifier": {"name": "default__get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_volatility_specifier", "macro_sql": "{% macro default__get_aggregate_function_volatility_specifier() %}\n {{ scalar_function_volatility_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516513, "supported_languages": null}, "macro.dbt.get_function_python_options": {"name": "get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_python_options", "macro_sql": "{% macro get_function_python_options() %}\n {{ return(adapter.dispatch('get_function_python_options', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516621, "supported_languages": null}, "macro.dbt.default__get_function_python_options": {"name": "default__get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_python_options", "macro_sql": "{% macro default__get_function_python_options() %}\n RUNTIME_VERSION = '{{ model.config.get('runtime_version') }}'\n HANDLER = '{{ model.config.get('entry_point') }}'\n {% set packages = model.config.get('packages', []) %}\n {% if packages %}\n PACKAGES = ('{{ packages | join(\"','\") }}')\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516875, "supported_languages": null}, "macro.dbt.materialization_function_default": {"name": "materialization_function_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/function.sql", "original_file_path": "macros/materializations/functions/function.sql", "unique_id": "macro.dbt.materialization_function_default", "macro_sql": "{% materialization function, default, supported_languages=['sql', 'python'] %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.Function) %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% set function_config = this.get_function_config(model) %}\n {% set macro_name = this.get_function_macro_name(function_config) %}\n\n {# Doing this aliasing of adapter.dispatch is a hacky way to disable the static analysis of actually calling adapter.dispatch #}\n {# This is necessary because the static analysis breaks being able to dynamically pass a macro_name #}\n {% set _dispatch = adapter.dispatch %}\n\n {% set build_sql = _dispatch(macro_name, 'dbt')(target_relation) %}\n {{ function_execute_build_sql(build_sql, existing_relation, target_relation) }}\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.run_hooks", "macro.dbt.function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5175629, "supported_languages": ["sql", "python"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5178602, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518125, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518466, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518653, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518864, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5191329, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5193129, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.519648, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.51992, "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_duckdb.duckdb__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5200489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.520194, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.52033, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.520753, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.521687, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.521976, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5221791, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.522367, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.522534, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.522769, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.52294, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5232892, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.523626, "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_duckdb.duckdb__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.523777, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.524006, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5242612, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.524457, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.524746, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525106, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525367, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525523, "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.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525734, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525833, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526046, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526164, "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.default__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5264, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5265028, "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.default__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526707, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526884, "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.default__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.527284, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5274189, "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.default__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.527615, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.52772, "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.default__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.527911, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.528011, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.528595, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5286772, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5290508, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.529175, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.529269, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530124, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530387, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530616, "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.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5307992, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530884, "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.default__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.531073, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5311759, "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.default__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5313668, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.531468, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.531942, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.532139, "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_duckdb.duckdb__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.532437, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.532911, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.533234, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5333602, "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_duckdb.get_column_names", "macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.53348, "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.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.533658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5337431, "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.default__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.534136, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.534237, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.534994, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535127, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535289, "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.default__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535478, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535583, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5358489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535979, "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_duckdb.duckdb__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536099, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536405, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536621, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5368278, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536999, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5373702, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.538485, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.538877, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.539073, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.539627, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.540444, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.540951, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5411131, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.541271, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5413241, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5417101, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542111, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542269, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542523, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542756, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54295, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5431712, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543285, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543458, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543547, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543871, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.544158, "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_duckdb.duckdb__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.544289, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5446458, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.544825, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5449002, "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_duckdb.duckdb__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.545192, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54531, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54547, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5455291, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.545723, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.545818, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546012, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546112, "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_duckdb.duckdb__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546436, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546722, "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_duckdb.duckdb__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546944, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5470579, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5472598, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5473568, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5475829, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.547797, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5479748, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548086, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548257, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548369, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5485609, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54865, "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_duckdb.duckdb__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54882, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548893, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549151, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549249, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549421, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549493, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550101, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550206, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550315, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550418, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550529, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550633, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550742, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550863, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5509708, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551073, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5511801, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551278, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551392, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5514932, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551698, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5517938, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551973, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.552046, "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_duckdb.duckdb__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5522728, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.552526, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.55263, "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_duckdb.duckdb__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.552898, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553015, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553175, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553374, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553469, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553739, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553916, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5541298, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5542321, "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_duckdb.duckdb__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.554471, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5545979, "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_duckdb.duckdb__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.554705, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.554828, "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_duckdb.duckdb__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555181, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555286, "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_duckdb.duckdb__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555388, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5554612, "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_duckdb.duckdb__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5557451, "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.default__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555867, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555922, "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.default__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5560389, "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.default__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.556222, "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_duckdb.duckdb__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.556585, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.55668, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5567858, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557059, "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.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557187, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557282, "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.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557386, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5574698, "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.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557997, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.558109, "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_duckdb.duckdb__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5583758, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5585861, "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.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.558749, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5589702, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559094, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559218, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559387, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559766, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559927, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560023, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560365, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560713, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560857, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.561074, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.561273, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5614238, "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.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562311, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562392, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562506, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562583, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5628211, "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.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562946, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563036, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563187, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563329, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563484, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563623, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563776, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.564244, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.564373, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.564547, "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_duckdb.duckdb__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5647008, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5655491, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.565835, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.565961, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566092, "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_duckdb.duckdb__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566603, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566726, "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_duckdb.duckdb__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5668638, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566984, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.567168, "supported_languages": null}, "macro.dbt.validate_doc_columns": {"name": "validate_doc_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.validate_doc_columns", "macro_sql": "{% macro validate_doc_columns(relation, column_dict, existing_column_names) %}\n {% set existing_lower = existing_column_names | map(\"lower\") | list %}\n {% set missing = [] %}\n {% for col_name in column_dict %}\n {% if col_name | lower not in existing_lower %}\n {% do missing.append(col_name) %}\n {% endif %}\n {% endfor %}\n {% if missing | length > 0 %}\n {{ exceptions.warn(\"In relation \" ~ relation.render() ~ \": The following columns are specified in the schema but are not present in the database: \" ~ missing | join(\", \")) }}\n {% endif %}\n {% set filtered = {} %}\n {% for col_name in column_dict if col_name | lower in existing_lower %}\n {% do filtered.update({col_name: column_dict[col_name]}) %}\n {% endfor %}\n {{ return(filtered) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.567786, "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 {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% set filtered_columns = validate_doc_columns(relation, model.columns, existing_columns) %}\n {% set alter_comment_sql = alter_column_comment(relation, filtered_columns) %}\n {% if alter_comment_sql and alter_comment_sql | trim | length > 0 %}\n {% do run_query(alter_comment_sql) %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.validate_doc_columns", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.568349, "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.default__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569004, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5691829, "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_duckdb.duckdb__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569323, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569501, "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.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569628, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5697432, "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_duckdb.duckdb__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569868, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5700412, "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_duckdb.duckdb__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570186, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5704021, "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_duckdb.duckdb__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570527, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570642, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570837, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570952, "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.default__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571062, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571168, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571306, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571429, "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_duckdb.duckdb__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.572341, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.572451, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.572663, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.57286, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.573007, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.573153, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.573277, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.574062, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5742998, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.574425, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.574662, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5748181, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.575262, "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_duckdb.duckdb__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.575437, "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.expanded_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.575988, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.578048, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.57846, "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 {#-- For string fixture values, strip varchar length to prevent silent truncation (GH-11974) --#}\n {%- if column_value is string and 'varying' in column_type -%}\n {%- set column_type = column_type.split('(')[0] -%}\n {%- endif -%}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.579351, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.579499, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5795681, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.580228, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5803342, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.580995, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.581279, "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 -%}\n {# Handle dbt.config.meta_get() calls - use separate dict to avoid overwriting native configs #}\n {%- set meta_dict = {} -%}\n {%- if model.config.meta_keys_used -%}\n {% set meta_dbt_used = zip(model.config.meta_keys_used, model.config.meta_keys_defaults) | list %}\n {%- for key, default in meta_dbt_used -%}\n {%- if model.config.meta and key in model.config.meta -%}\n {%- set value = model.config.meta[key] -%}\n {%- else -%}\n {%- set value = default -%}\n {%- endif -%}\n {%- do meta_dict.update({key: value}) -%}\n {%- endfor -%}\n {%- endif -%}\nconfig_dict = {{ config_dict }}\nmeta_dict = {{ meta_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5820658, "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\n @staticmethod\n def meta_get(key, default=None):\n return meta_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.582408, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5824609, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.582796, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.582994, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.583225, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.583426, "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"}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.ecom.stg_products": ["source.ecom.raw.products"], "model.ecom.stg_sellers": ["source.ecom.raw.sellers"], "model.ecom.stg_customers": ["source.ecom.raw.customers"], "model.ecom.stg_orders": ["model.ecom.stg_customers", "source.ecom.raw.orders"], "model.ecom.stg_order_items": ["model.ecom.stg_orders", "source.ecom.raw.order_items"], "model.ecom.stg_sessions": ["source.ecom.raw.sessions"], "test.ecom.unique_stg_customers_customer_id.c7614daada": ["model.ecom.stg_customers"], "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa": ["model.ecom.stg_customers"], "test.ecom.unique_stg_customers_email.1ebcb2333e": ["model.ecom.stg_customers"], "test.ecom.not_null_stg_customers_email.d7cf761533": ["model.ecom.stg_customers"], "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40": ["model.ecom.stg_customers"], "test.ecom.not_null_stg_customers_signup_date.ef12d9c335": ["model.ecom.stg_customers"], "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8": ["model.ecom.stg_sellers"], "test.ecom.not_null_stg_sellers_seller_id.35d0bce315": ["model.ecom.stg_sellers"], "test.ecom.not_null_stg_sellers_rating.973b52995f": ["model.ecom.stg_sellers"], "test.ecom.unique_stg_products_product_id.7d950a1467": ["model.ecom.stg_products"], "test.ecom.not_null_stg_products_product_id.6373b0acf3": ["model.ecom.stg_products"], "test.ecom.not_null_stg_products_seller_id.0ba77d68d6": ["model.ecom.stg_products"], "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360": ["model.ecom.stg_products", "model.ecom.stg_sellers"], "test.ecom.unique_stg_orders_order_id.e3b841c71a": ["model.ecom.stg_orders"], "test.ecom.not_null_stg_orders_order_id.81cfe2fe64": ["model.ecom.stg_orders"], "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5": ["model.ecom.stg_orders"], "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500": ["model.ecom.stg_customers", "model.ecom.stg_orders"], "test.ecom.not_null_stg_orders_order_date.2177a3e8bb": ["model.ecom.stg_orders"], "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9": ["model.ecom.stg_orders"], "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2": ["model.ecom.stg_orders"], "test.ecom.unique_stg_order_items_order_item_id.90e333a108": ["model.ecom.stg_order_items"], "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35": ["model.ecom.stg_order_items"], "test.ecom.not_null_stg_order_items_order_id.2063801f96": ["model.ecom.stg_order_items"], "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54": ["model.ecom.stg_order_items", "model.ecom.stg_orders"], "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6": ["model.ecom.stg_order_items"], "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c": ["model.ecom.stg_order_items", "model.ecom.stg_products"], "test.ecom.unique_stg_sessions_session_id.ce45726d03": ["model.ecom.stg_sessions"], "test.ecom.not_null_stg_sessions_session_id.2e872a126d": ["model.ecom.stg_sessions"], "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e": ["model.ecom.stg_sessions"], "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4": ["model.ecom.stg_sessions"], "source.ecom.raw.customers": [], "source.ecom.raw.sellers": [], "source.ecom.raw.products": [], "source.ecom.raw.orders": [], "source.ecom.raw.order_items": [], "source.ecom.raw.sessions": []}, "child_map": {"model.ecom.stg_products": ["test.ecom.not_null_stg_products_product_id.6373b0acf3", "test.ecom.not_null_stg_products_seller_id.0ba77d68d6", "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "test.ecom.unique_stg_products_product_id.7d950a1467"], "model.ecom.stg_sellers": ["test.ecom.not_null_stg_sellers_rating.973b52995f", "test.ecom.not_null_stg_sellers_seller_id.35d0bce315", "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8"], "model.ecom.stg_customers": ["model.ecom.stg_orders", "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40", "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa", "test.ecom.not_null_stg_customers_email.d7cf761533", "test.ecom.not_null_stg_customers_signup_date.ef12d9c335", "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "test.ecom.unique_stg_customers_customer_id.c7614daada", "test.ecom.unique_stg_customers_email.1ebcb2333e"], "model.ecom.stg_orders": ["model.ecom.stg_order_items", "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9", "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2", "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5", "test.ecom.not_null_stg_orders_order_date.2177a3e8bb", "test.ecom.not_null_stg_orders_order_id.81cfe2fe64", "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "test.ecom.unique_stg_orders_order_id.e3b841c71a"], "model.ecom.stg_order_items": ["test.ecom.not_null_stg_order_items_order_id.2063801f96", "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35", "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6", "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "test.ecom.unique_stg_order_items_order_item_id.90e333a108"], "model.ecom.stg_sessions": ["test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4", "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e", "test.ecom.not_null_stg_sessions_session_id.2e872a126d", "test.ecom.unique_stg_sessions_session_id.ce45726d03"], "test.ecom.unique_stg_customers_customer_id.c7614daada": [], "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa": [], "test.ecom.unique_stg_customers_email.1ebcb2333e": [], "test.ecom.not_null_stg_customers_email.d7cf761533": [], "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40": [], "test.ecom.not_null_stg_customers_signup_date.ef12d9c335": [], "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8": [], "test.ecom.not_null_stg_sellers_seller_id.35d0bce315": [], "test.ecom.not_null_stg_sellers_rating.973b52995f": [], "test.ecom.unique_stg_products_product_id.7d950a1467": [], "test.ecom.not_null_stg_products_product_id.6373b0acf3": [], "test.ecom.not_null_stg_products_seller_id.0ba77d68d6": [], "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360": [], "test.ecom.unique_stg_orders_order_id.e3b841c71a": [], "test.ecom.not_null_stg_orders_order_id.81cfe2fe64": [], "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5": [], "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500": [], "test.ecom.not_null_stg_orders_order_date.2177a3e8bb": [], "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9": [], "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2": [], "test.ecom.unique_stg_order_items_order_item_id.90e333a108": [], "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35": [], "test.ecom.not_null_stg_order_items_order_id.2063801f96": [], "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54": [], "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6": [], "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c": [], "test.ecom.unique_stg_sessions_session_id.ce45726d03": [], "test.ecom.not_null_stg_sessions_session_id.2e872a126d": [], "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e": [], "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4": [], "source.ecom.raw.customers": ["model.ecom.stg_customers"], "source.ecom.raw.sellers": ["model.ecom.stg_sellers"], "source.ecom.raw.products": ["model.ecom.stg_products"], "source.ecom.raw.orders": ["model.ecom.stg_orders"], "source.ecom.raw.order_items": ["model.ecom.stg_order_items"], "source.ecom.raw.sessions": ["model.ecom.stg_sessions"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}, "functions": {}} \ No newline at end of file diff --git a/ecom/target/partial_parse.msgpack b/ecom/target/partial_parse.msgpack new file mode 100644 index 0000000000000000000000000000000000000000..8b96f7459ed9a5e0144d11146270e386149c1136 GIT binary patch literal 595159 zcmeFadyr(;c^^iAlx(A1v7(YHPGTpQ1FohA*zI}0797$G?2v@D*kyJXWM~L(-R{0U z)7+l!LEr9O3>T|{Ny@U7R1A=m9m|R>nZN>A5PZK$ky~Q&ms6EWQg$+=#7e0YRVDv8 zNhMBPt}^rczVAHmJ-1&oyR%EpR*{%K_dLJzz0Y^P^W(Qoz1r^7lk~@Ld)GI1@JFkh z)H*xmw6|5+?RM(@S`VL2zFv=eaWzhpSLo}_w6>k>#Gl)Vo9#;4i?^EXtykLdPVzao z*<0Nt?ex2~q|)2lOS zvz1h+?)SN)6jgcLT$4BY?dEg+q|&Sxt>?3i=h~m>#rf67+}uKKW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bdfe84b095a285bc588250ad14.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql new file mode 100644 index 0000000..ebd148d --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql @@ -0,0 +1,36 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + customer_tier as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_customers" + group by customer_tier + +) + +select * +from all_values +where value_field not in ( + 'bronze','silver','gold' +) + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql new file mode 100644 index 0000000..fd00e0f --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql @@ -0,0 +1,36 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + order_status as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_orders" + group by order_status + +) + +select * +from all_values +where value_field not in ( + 'pending','processing','shipped','delivered','cancelled','returned' +) + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql new file mode 100644 index 0000000..e07b965 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql @@ -0,0 +1,36 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + payment_method as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_orders" + group by payment_method + +) + +select * +from all_values +where value_field not in ( + 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet' +) + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql new file mode 100644 index 0000000..1f0f685 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql @@ -0,0 +1,36 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + device_type as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_sessions" + group by device_type + +) + +select * +from all_values +where value_field not in ( + 'mobile','desktop','tablet' +) + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql new file mode 100644 index 0000000..9349346 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql @@ -0,0 +1,36 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with all_values as ( + + select + platform as value_field, + count(*) as n_records + + from "ecom"."main_staging"."stg_sessions" + group by platform + +) + +select * +from all_values +where value_field not in ( + 'ios','android','web' +) + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql new file mode 100644 index 0000000..ee46d49 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select customer_id +from "ecom"."main_staging"."stg_customers" +where customer_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql new file mode 100644 index 0000000..c912619 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select email +from "ecom"."main_staging"."stg_customers" +where email is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql new file mode 100644 index 0000000..74c9bd8 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select signup_date +from "ecom"."main_staging"."stg_customers" +where signup_date is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql new file mode 100644 index 0000000..15218ab --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_id +from "ecom"."main_staging"."stg_order_items" +where order_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql new file mode 100644 index 0000000..0dd85d0 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_item_id +from "ecom"."main_staging"."stg_order_items" +where order_item_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql new file mode 100644 index 0000000..cb77eeb --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select product_id +from "ecom"."main_staging"."stg_order_items" +where product_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql new file mode 100644 index 0000000..f71151e --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select customer_id +from "ecom"."main_staging"."stg_orders" +where customer_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql new file mode 100644 index 0000000..d32c01b --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_date +from "ecom"."main_staging"."stg_orders" +where order_date is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql new file mode 100644 index 0000000..77c67a0 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select order_id +from "ecom"."main_staging"."stg_orders" +where order_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql new file mode 100644 index 0000000..57b2812 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select product_id +from "ecom"."main_staging"."stg_products" +where product_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql new file mode 100644 index 0000000..88aaec8 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select seller_id +from "ecom"."main_staging"."stg_products" +where seller_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql new file mode 100644 index 0000000..f379916 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select rating +from "ecom"."main_staging"."stg_sellers" +where rating is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql new file mode 100644 index 0000000..1a37ebc --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select seller_id +from "ecom"."main_staging"."stg_sellers" +where seller_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql new file mode 100644 index 0000000..b8c6706 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql @@ -0,0 +1,25 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + + + +select session_id +from "ecom"."main_staging"."stg_sessions" +where session_id is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql new file mode 100644 index 0000000..0d9dcd9 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql @@ -0,0 +1,39 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select product_id as from_field + from "ecom"."main_staging"."stg_order_items" + where product_id is not null +), + +parent as ( + select product_id as to_field + from "ecom"."main_staging"."stg_products" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql new file mode 100644 index 0000000..845ffea --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql @@ -0,0 +1,39 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select order_id as from_field + from "ecom"."main_staging"."stg_order_items" + where order_id is not null +), + +parent as ( + select order_id as to_field + from "ecom"."main_staging"."stg_orders" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql new file mode 100644 index 0000000..81fe34c --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql @@ -0,0 +1,39 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select customer_id as from_field + from "ecom"."main_staging"."stg_orders" + where customer_id is not null +), + +parent as ( + select customer_id as to_field + from "ecom"."main_staging"."stg_customers" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql new file mode 100644 index 0000000..a5365ea --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql @@ -0,0 +1,39 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +with child as ( + select seller_id as from_field + from "ecom"."main_staging"."stg_products" + where seller_id is not null +), + +parent as ( + select seller_id as to_field + from "ecom"."main_staging"."stg_sellers" +) + +select + from_field + +from child +left join parent + on child.from_field = parent.to_field + +where parent.to_field is null + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql new file mode 100644 index 0000000..1216ba5 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql @@ -0,0 +1,28 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + customer_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_customers" +where customer_id is not null +group by customer_id +having count(*) > 1 + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql new file mode 100644 index 0000000..20c4105 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql @@ -0,0 +1,28 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + email as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_customers" +where email is not null +group by email +having count(*) > 1 + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql new file mode 100644 index 0000000..0e31779 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql @@ -0,0 +1,28 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + order_item_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_order_items" +where order_item_id is not null +group by order_item_id +having count(*) > 1 + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql new file mode 100644 index 0000000..03df3b1 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql @@ -0,0 +1,28 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + order_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_orders" +where order_id is not null +group by order_id +having count(*) > 1 + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql new file mode 100644 index 0000000..109ca8d --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql @@ -0,0 +1,28 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + product_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_products" +where product_id is not null +group by product_id +having count(*) > 1 + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql new file mode 100644 index 0000000..8e26a26 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql @@ -0,0 +1,28 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + seller_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_sellers" +where seller_id is not null +group by seller_id +having count(*) > 1 + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql new file mode 100644 index 0000000..7ec292f --- /dev/null +++ b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql @@ -0,0 +1,28 @@ + + + select + count(*) as failures, + count(*) != 0 as should_warn, + count(*) != 0 as should_error + from ( + + + + + + +select + session_id as unique_field, + count(*) as n_records + +from "ecom"."main_staging"."stg_sessions" +where session_id is not null +group by session_id +having count(*) > 1 + + + + + + + ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/stg_customers.sql b/ecom/target/run/ecom/models/staging/stg_customers.sql new file mode 100644 index 0000000..957b81f --- /dev/null +++ b/ecom/target/run/ecom/models/staging/stg_customers.sql @@ -0,0 +1,61 @@ + + + create view "ecom"."main_staging"."stg_customers__dbt_tmp" as ( + /* + stg_customers + ------------- + - Renames columns to project convention + - Casts signup_date to DATE + - Deduplicates re-registered customers (keeps the earliest signup per email) + - Replaces empty city strings with NULL + - Excludes soft-deleted records +*/ + +with source as ( + select * from "ecom"."raw"."customers" +), + +renamed as ( + select + customer_id, + first_name, + last_name, + lower(trim(email)) as email, + phone, + nullif(trim(city), '') as city, + country, + lower(customer_tier) as customer_tier, + cast(signup_date as date) as signup_date, + cast(is_deleted as boolean) as is_deleted + from source +), + +deduped as ( + -- Keep earliest signup per email (first registration wins) + select *, + row_number() over ( + partition by email + order by signup_date asc + ) as rn + from renamed +), + +final as ( + select + customer_id, + first_name, + last_name, + email, + phone, + city, + country, + customer_tier, + signup_date, + is_deleted + from deduped + where rn = 1 + and is_deleted = false +) + +select * from final + ); diff --git a/ecom/target/run/ecom/models/staging/stg_order_items.sql b/ecom/target/run/ecom/models/staging/stg_order_items.sql new file mode 100644 index 0000000..cfaab13 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/stg_order_items.sql @@ -0,0 +1,51 @@ + + + create view "ecom"."main_staging"."stg_order_items__dbt_tmp" as ( + /* + stg_order_items + --------------- + - Casts numeric columns + - Adds derived column: is_flash_sale flag when unit_price < list_price + - Filters items whose order_id no longer exists after stg_orders cleanup +*/ + +with source as ( + select * from "ecom"."raw"."order_items" +), + +valid_orders as ( + select order_id from "ecom"."main_staging"."stg_orders" +), + +casted as ( + -- cast first in a separate CTE so arithmetic below works on typed values + select + order_item_id, + order_id, + product_id, + seller_id, + cast(quantity as integer) as quantity, + cast(unit_price as decimal(10,2)) as unit_price, + cast(list_price as decimal(10,2)) as list_price, + cast(discount_pct as decimal(6,4)) as discount_pct + from source + where order_id in (select order_id from valid_orders) +), + +renamed as ( + select + order_item_id, + order_id, + product_id, + seller_id, + quantity, + unit_price, + list_price, + discount_pct, + unit_price < list_price as is_flash_sale, + round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue + from casted +) + +select * from renamed + ); diff --git a/ecom/target/run/ecom/models/staging/stg_orders.sql b/ecom/target/run/ecom/models/staging/stg_orders.sql new file mode 100644 index 0000000..c0ca07c --- /dev/null +++ b/ecom/target/run/ecom/models/staging/stg_orders.sql @@ -0,0 +1,59 @@ + + + create view "ecom"."main_staging"."stg_orders__dbt_tmp" as ( + /* + stg_orders + ---------- + - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy). + We COALESCE two TRY_STRPTIME calls to handle both safely. + - Filters rows where the date cannot be parsed (data quality guard) + - Filters orphaned orders (customer_id not in stg_customers) + - Casts and standardises order_status and payment_method +*/ + +with source as ( + select * from "ecom"."raw"."orders" +), + +date_parsed as ( + select + order_id, + customer_id, + -- Try ISO first, then dd/mm/yyyy — whichever parses wins + coalesce( + try_strptime(order_date, '%Y-%m-%d'), + try_strptime(order_date, '%d/%m/%Y') + ) as order_date, + order_status, + payment_method, + shipping_city, + cast(discount_amount as decimal(10,2)) as discount_amount, + nullif(trim(coupon_code), '') as coupon_code, + lower(platform) as platform + from source +), + +valid_customers as ( + select customer_id from "ecom"."main_staging"."stg_customers" +), + +final as ( + select + o.order_id, + o.customer_id, + o.order_date, + o.order_status, + o.payment_method, + o.shipping_city, + o.discount_amount, + o.coupon_code, + o.platform + from date_parsed o + -- Drop unparseable dates + where o.order_date is not null + -- Drop orphaned customer_ids (referential integrity fix) + and o.customer_id in (select customer_id from valid_customers) +) + +select * from final + ); diff --git a/ecom/target/run/ecom/models/staging/stg_products.sql b/ecom/target/run/ecom/models/staging/stg_products.sql new file mode 100644 index 0000000..e35ce4a --- /dev/null +++ b/ecom/target/run/ecom/models/staging/stg_products.sql @@ -0,0 +1,37 @@ + + + create view "ecom"."main_staging"."stg_products__dbt_tmp" as ( + /* + stg_products + ------------ + - Casts price columns and boolean + - Derives gross_margin_pct for later mart use + - Filters inactive products are kept (marts can filter by is_active) +*/ + +with source as ( + select * from "ecom"."raw"."products" +), + +final as ( + select + product_id, + trim(product_name) as product_name, + trim(category) as category, + trim(subcategory) as subcategory, + seller_id, + cast(list_price as decimal(10,2)) as list_price, + cast(cost_price as decimal(10,2)) as cost_price, + round( + (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2))) + / nullif(cast(list_price as decimal(10,2)), 0), + 4 + ) as gross_margin_pct, + cast(is_active as boolean) as is_active, + cast(stock_qty as integer) as stock_qty, + cast(created_at as date) as created_at + from source +) + +select * from final + ); diff --git a/ecom/target/run/ecom/models/staging/stg_sellers.sql b/ecom/target/run/ecom/models/staging/stg_sellers.sql new file mode 100644 index 0000000..ac27056 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/stg_sellers.sql @@ -0,0 +1,30 @@ + + + create view "ecom"."main_staging"."stg_sellers__dbt_tmp" as ( + /* + stg_sellers + ----------- + - Casts joined_date to DATE + - Casts is_verified to boolean + - Standardises category casing +*/ + +with source as ( + select * from "ecom"."raw"."sellers" +), + +final as ( + select + seller_id, + trim(seller_name) as seller_name, + trim(category) as category, + city, + cast(is_verified as boolean) as is_verified, + cast(joined_date as date) as joined_date, + cast(rating as decimal(3,1)) as rating, + cast(total_reviews as integer) as total_reviews + from source +) + +select * from final + ); diff --git a/ecom/target/run/ecom/models/staging/stg_sessions.sql b/ecom/target/run/ecom/models/staging/stg_sessions.sql new file mode 100644 index 0000000..501c716 --- /dev/null +++ b/ecom/target/run/ecom/models/staging/stg_sessions.sql @@ -0,0 +1,32 @@ + + + create view "ecom"."main_staging"."stg_sessions__dbt_tmp" as ( + /* + stg_sessions + ------------ + - Null customer_id = anonymous session (kept, not filtered) + - Derives session_duration_mins for readability + - Casts is_converted to boolean +*/ + +with source as ( + select * from "ecom"."raw"."sessions" +), + +final as ( + select + session_id, + nullif(trim(customer_id), '') as customer_id, -- preserve anonymous + cast(session_date as date) as session_date, + lower(platform) as platform, + lower(device_type) as device_type, + cast(page_views as integer) as page_views, + cast(duration_seconds as integer) as duration_seconds, + round(cast(duration_seconds as decimal) / 60, 2) as duration_mins, + cast(is_converted as boolean) as is_converted, + nullif(trim(utm_source), '') as utm_source + from source +) + +select * from final + ); diff --git a/ecom/target/run_results.json b/ecom/target/run_results.json new file mode 100644 index 0000000..473e954 --- /dev/null +++ b/ecom/target/run_results.json @@ -0,0 +1 @@ +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v6.json", "dbt_version": "1.11.8", "generated_at": "2026-04-12T13:05:16.692128Z", "invocation_id": "c1e051fe-2da2-4723-894a-d9f18a60ef10", "invocation_started_at": "2026-04-12T13:05:15.154863Z", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.302425Z", "completed_at": "2026-04-12T13:05:16.304512Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.305263Z", "completed_at": "2026-04-12T13:05:16.361034Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.06878376007080078, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_sessions", "compiled": true, "compiled_code": "/*\n stg_sessions\n ------------\n - Null customer_id = anonymous session (kept, not filtered)\n - Derives session_duration_mins for readability\n - Casts is_converted to boolean\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"sessions\"\n),\n\nfinal as (\n select\n session_id,\n nullif(trim(customer_id), '') as customer_id, -- preserve anonymous\n cast(session_date as date) as session_date,\n lower(platform) as platform,\n lower(device_type) as device_type,\n cast(page_views as integer) as page_views,\n cast(duration_seconds as integer) as duration_seconds,\n round(cast(duration_seconds as decimal) / 60, 2) as duration_mins,\n cast(is_converted as boolean) as is_converted,\n nullif(trim(utm_source), '') as utm_source\n from source\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_sessions\"", "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.300772Z", "completed_at": "2026-04-12T13:05:16.305102Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.325175Z", "completed_at": "2026-04-12T13:05:16.364412Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.07092690467834473, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_sellers", "compiled": true, "compiled_code": "/*\n stg_sellers\n -----------\n - Casts joined_date to DATE\n - Casts is_verified to boolean\n - Standardises category casing\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"sellers\"\n),\n\nfinal as (\n select\n seller_id,\n trim(seller_name) as seller_name,\n trim(category) as category,\n city,\n cast(is_verified as boolean) as is_verified,\n cast(joined_date as date) as joined_date,\n cast(rating as decimal(3,1)) as rating,\n cast(total_reviews as integer) as total_reviews\n from source\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_sellers\"", "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.294968Z", "completed_at": "2026-04-12T13:05:16.304920Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.323605Z", "completed_at": "2026-04-12T13:05:16.365507Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07328391075134277, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_customers", "compiled": true, "compiled_code": "/*\n stg_customers\n -------------\n - Renames columns to project convention\n - Casts signup_date to DATE\n - Deduplicates re-registered customers (keeps the earliest signup per email)\n - Replaces empty city strings with NULL\n - Excludes soft-deleted records\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"customers\"\n),\n\nrenamed as (\n select\n customer_id,\n first_name,\n last_name,\n lower(trim(email)) as email,\n phone,\n nullif(trim(city), '') as city,\n country,\n lower(customer_tier) as customer_tier,\n cast(signup_date as date) as signup_date,\n cast(is_deleted as boolean) as is_deleted\n from source\n),\n\ndeduped as (\n -- Keep earliest signup per email (first registration wins)\n select *,\n row_number() over (\n partition by email\n order by signup_date asc\n ) as rn\n from renamed\n),\n\nfinal as (\n select\n customer_id,\n first_name,\n last_name,\n email,\n phone,\n city,\n country,\n customer_tier,\n signup_date,\n is_deleted\n from deduped\n where rn = 1\n and is_deleted = false\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_customers\"", "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.299049Z", "completed_at": "2026-04-12T13:05:16.304727Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.317793Z", "completed_at": "2026-04-12T13:05:16.366152Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07330107688903809, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_products", "compiled": true, "compiled_code": "/*\n stg_products\n ------------\n - Casts price columns and boolean\n - Derives gross_margin_pct for later mart use\n - Filters inactive products are kept (marts can filter by is_active)\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"products\"\n),\n\nfinal as (\n select\n product_id,\n trim(product_name) as product_name,\n trim(category) as category,\n trim(subcategory) as subcategory,\n seller_id,\n cast(list_price as decimal(10,2)) as list_price,\n cast(cost_price as decimal(10,2)) as cost_price,\n round(\n (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2)))\n / nullif(cast(list_price as decimal(10,2)), 0),\n 4\n ) as gross_margin_pct,\n cast(is_active as boolean) as is_active,\n cast(stock_qty as integer) as stock_qty,\n cast(created_at as date) as created_at\n from source\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_products\"", "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.377773Z", "completed_at": "2026-04-12T13:05:16.385919Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.386124Z", "completed_at": "2026-04-12T13:05:16.407130Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.039494991302490234, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_sessions_session_id.2e872a126d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_id\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.382184Z", "completed_at": "2026-04-12T13:05:16.392114Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.395545Z", "completed_at": "2026-04-12T13:05:16.409332Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0408940315246582, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_sessions_session_id.ce45726d03", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is not null\ngroup by session_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.375469Z", "completed_at": "2026-04-12T13:05:16.395187Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.398021Z", "completed_at": "2026-04-12T13:05:16.410292Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04242515563964844, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n platform as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by platform\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'ios','android','web'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.372625Z", "completed_at": "2026-04-12T13:05:16.395369Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.399244Z", "completed_at": "2026-04-12T13:05:16.413338Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.044567108154296875, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n device_type as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by device_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'mobile','desktop','tablet'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.421128Z", "completed_at": "2026-04-12T13:05:16.428068Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.430434Z", "completed_at": "2026-04-12T13:05:16.441229Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.026391983032226562, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_sellers_seller_id.35d0bce315", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.417095Z", "completed_at": "2026-04-12T13:05:16.423957Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.426480Z", "completed_at": "2026-04-12T13:05:16.442180Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.030900239944458008, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_sellers_rating.973b52995f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect rating\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere rating is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.424447Z", "completed_at": "2026-04-12T13:05:16.431741Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.432208Z", "completed_at": "2026-04-12T13:05:16.444533Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.028191089630126953, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8", "compiled": true, "compiled_code": "\n \n \n\nselect\n seller_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is not null\ngroup by seller_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.428279Z", "completed_at": "2026-04-12T13:05:16.433874Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.434500Z", "completed_at": "2026-04-12T13:05:16.447918Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.027422189712524414, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n customer_tier as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_customers\"\n group by customer_tier\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'bronze','silver','gold'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.452247Z", "completed_at": "2026-04-12T13:05:16.463493Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.463954Z", "completed_at": "2026-04-12T13:05:16.477556Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.029826641082763672, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere customer_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.459071Z", "completed_at": "2026-04-12T13:05:16.465641Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.468449Z", "completed_at": "2026-04-12T13:05:16.479307Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03195381164550781, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_customers_signup_date.ef12d9c335", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect signup_date\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere signup_date is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.455862Z", "completed_at": "2026-04-12T13:05:16.461727Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.462221Z", "completed_at": "2026-04-12T13:05:16.480066Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.033331871032714844, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_customers_email.d7cf761533", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect email\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.465845Z", "completed_at": "2026-04-12T13:05:16.470777Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.471494Z", "completed_at": "2026-04-12T13:05:16.482542Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.023607730865478516, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_customers_customer_id.c7614daada", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.492922Z", "completed_at": "2026-04-12T13:05:16.500702Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.501580Z", "completed_at": "2026-04-12T13:05:16.513037Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.027446746826171875, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_products_seller_id.0ba77d68d6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere seller_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.490935Z", "completed_at": "2026-04-12T13:05:16.503451Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.503700Z", "completed_at": "2026-04-12T13:05:16.513778Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.028434038162231445, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_products_product_id.6373b0acf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere product_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.487235Z", "completed_at": "2026-04-12T13:05:16.495178Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.499156Z", "completed_at": "2026-04-12T13:05:16.516095Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0341949462890625, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_customers_email.1ebcb2333e", "compiled": true, "compiled_code": "\n \n \n\nselect\n email as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is not null\ngroup by email\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.495450Z", "completed_at": "2026-04-12T13:05:16.505670Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.506388Z", "completed_at": "2026-04-12T13:05:16.517048Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.029481887817382812, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select seller_id as from_field\n from \"ecom\".\"main_staging\".\"stg_products\"\n where seller_id is not null\n),\n\nparent as (\n select seller_id as to_field\n from \"ecom\".\"main_staging\".\"stg_sellers\"\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\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.522001Z", "completed_at": "2026-04-12T13:05:16.526529Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.526727Z", "completed_at": "2026-04-12T13:05:16.533885Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015896081924438477, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_products_product_id.7d950a1467", "compiled": true, "compiled_code": "\n \n \n\nselect\n product_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere product_id is not null\ngroup by product_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.524835Z", "completed_at": "2026-04-12T13:05:16.528090Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.528310Z", "completed_at": "2026-04-12T13:05:16.542409Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01819896697998047, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_orders", "compiled": true, "compiled_code": "/*\n stg_orders\n ----------\n - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy).\n We COALESCE two TRY_STRPTIME calls to handle both safely.\n - Filters rows where the date cannot be parsed (data quality guard)\n - Filters orphaned orders (customer_id not in stg_customers)\n - Casts and standardises order_status and payment_method\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"orders\"\n),\n\ndate_parsed as (\n select\n order_id,\n customer_id,\n -- Try ISO first, then dd/mm/yyyy \u2014 whichever parses wins\n coalesce(\n try_strptime(order_date, '%Y-%m-%d'),\n try_strptime(order_date, '%d/%m/%Y')\n ) as order_date,\n order_status,\n payment_method,\n shipping_city,\n cast(discount_amount as decimal(10,2)) as discount_amount,\n nullif(trim(coupon_code), '') as coupon_code,\n lower(platform) as platform\n from source\n),\n\nvalid_customers as (\n select customer_id from \"ecom\".\"main_staging\".\"stg_customers\"\n),\n\nfinal as (\n select\n o.order_id,\n o.customer_id,\n o.order_date,\n o.order_status,\n o.payment_method,\n o.shipping_city,\n o.discount_amount,\n o.coupon_code,\n o.platform\n from date_parsed o\n -- Drop unparseable dates\n where o.order_date is not null\n -- Drop orphaned customer_ids (referential integrity fix)\n and o.customer_id in (select customer_id from valid_customers)\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_orders\"", "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.551353Z", "completed_at": "2026-04-12T13:05:16.560614Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.560835Z", "completed_at": "2026-04-12T13:05:16.573189Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.031877994537353516, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere customer_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.546642Z", "completed_at": "2026-04-12T13:05:16.558814Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.559088Z", "completed_at": "2026-04-12T13:05:16.575177Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03430819511413574, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n order_status as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by order_status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','processing','shipped','delivered','cancelled','returned'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.548875Z", "completed_at": "2026-04-12T13:05:16.557143Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.557346Z", "completed_at": "2026-04-12T13:05:16.576043Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03466606140136719, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_method as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by payment_method\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.553447Z", "completed_at": "2026-04-12T13:05:16.555640Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.555836Z", "completed_at": "2026-04-12T13:05:16.577242Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.034574031829833984, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_orders_order_date.2177a3e8bb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_date\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_date is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.582901Z", "completed_at": "2026-04-12T13:05:16.592213Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.592410Z", "completed_at": "2026-04-12T13:05:16.605049Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.026224136352539062, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_orders_order_id.81cfe2fe64", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.589138Z", "completed_at": "2026-04-12T13:05:16.595214Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.595411Z", "completed_at": "2026-04-12T13:05:16.607005Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.023907184600830078, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_orders_order_id.e3b841c71a", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_id is not null\ngroup by order_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.586221Z", "completed_at": "2026-04-12T13:05:16.593765Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.594006Z", "completed_at": "2026-04-12T13:05:16.607648Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02739691734313965, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select customer_id as from_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\n where customer_id is not null\n),\n\nparent as (\n select customer_id as to_field\n from \"ecom\".\"main_staging\".\"stg_customers\"\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\n", "relation_name": null, "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.611903Z", "completed_at": "2026-04-12T13:05:16.613870Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.614053Z", "completed_at": "2026-04-12T13:05:16.624574Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01331472396850586, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_order_items", "compiled": true, "compiled_code": "/*\n stg_order_items\n ---------------\n - Casts numeric columns\n - Adds derived column: is_flash_sale flag when unit_price < list_price\n - Filters items whose order_id no longer exists after stg_orders cleanup\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"order_items\"\n),\n\nvalid_orders as (\n select order_id from \"ecom\".\"main_staging\".\"stg_orders\"\n),\n\ncasted as (\n -- cast first in a separate CTE so arithmetic below works on typed values\n select\n order_item_id,\n order_id,\n product_id,\n seller_id,\n cast(quantity as integer) as quantity,\n cast(unit_price as decimal(10,2)) as unit_price,\n cast(list_price as decimal(10,2)) as list_price,\n cast(discount_pct as decimal(6,4)) as discount_pct\n from source\n where order_id in (select order_id from valid_orders)\n),\n\nrenamed as (\n select\n order_item_id,\n order_id,\n product_id,\n seller_id,\n quantity,\n unit_price,\n list_price,\n discount_pct,\n unit_price < list_price as is_flash_sale,\n round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue\n from casted\n)\n\nselect * from renamed", "relation_name": "\"ecom\".\"main_staging\".\"stg_order_items\"", "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.633021Z", "completed_at": "2026-04-12T13:05:16.639920Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.642576Z", "completed_at": "2026-04-12T13:05:16.658841Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03332400321960449, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere product_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.628718Z", "completed_at": "2026-04-12T13:05:16.639504Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.640132Z", "completed_at": "2026-04-12T13:05:16.659577Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03493809700012207, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_order_items_order_id.2063801f96", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.630843Z", "completed_at": "2026-04-12T13:05:16.639726Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.641396Z", "completed_at": "2026-04-12T13:05:16.658083Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04074215888977051, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_item_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.636748Z", "completed_at": "2026-04-12T13:05:16.643828Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.644091Z", "completed_at": "2026-04-12T13:05:16.664890Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04212188720703125, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select order_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where order_id is not null\n),\n\nparent as (\n select order_id as to_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\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\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.670720Z", "completed_at": "2026-04-12T13:05:16.674931Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.675306Z", "completed_at": "2026-04-12T13:05:16.685754Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01833176612854004, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_order_items_order_item_id.90e333a108", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_item_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is not null\ngroup by order_item_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.665099Z", "completed_at": "2026-04-12T13:05:16.670255Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.672730Z", "completed_at": "2026-04-12T13:05:16.686489Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02628493309020996, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select product_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where product_id is not null\n),\n\nparent as (\n select product_id as to_field\n from \"ecom\".\"main_staging\".\"stg_products\"\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\n", "relation_name": null, "batch_results": null}], "elapsed_time": 0.49898815155029297, "args": {"exclude": [], "export_saved_queries": false, "defer": false, "upload_to_artifacts_ingest_api": false, "resource_types": [], "favor_state": false, "warn_error_options": {"error": [], "warn": [], "silence": []}, "require_unique_project_resource_names": false, "exclude_resource_types": [], "show_all_deprecations": false, "strict_mode": false, "log_format": "default", "partial_parse": true, "log_level": "info", "state_modified_compare_vars": false, "show": false, "which": "build", "require_yaml_configuration_for_mf_time_spines": false, "require_nested_cumulative_type_params": false, "sqlparse": {"MAX_GROUPING_DEPTH": null, "MAX_GROUPING_TOKENS": null}, "show_resource_report": false, "static_parser": true, "log_path": "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/logs", "printer_width": 80, "source_freshness_run_project_hooks": true, "write_json": true, "populate_cache": true, "vars": {}, "state_modified_compare_more_unrendered_values": false, "use_fast_test_edges": false, "project_dir": "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom", "use_colors": true, "empty": false, "partial_parse_file_diff": true, "require_all_warnings_handled_by_warn_error": false, "introspect": true, "validate_macro_args": false, "log_file_max_bytes": 10485760, "quiet": false, "indirect_selection": "eager", "cache_selected_only": false, "require_explicit_package_overrides_for_builtin_materializations": true, "require_generic_test_arguments_property": true, "include_saved_query": false, "select": [], "version_check": true, "require_resource_names_without_spaces": true, "print": true, "send_anonymous_usage_stats": true, "require_ref_searches_node_package_before_root": false, "profiles_dir": ".", "use_colors_file": true, "log_format_file": "debug", "log_level_file": "debug", "require_batched_execution_for_custom_microbatch_strategy": false, "skip_nodes_if_on_run_start_fails": false, "invocation_command": "dbt build --profiles-dir .", "macro_debugging": false}} \ No newline at end of file diff --git a/ecom/target/semantic_manifest.json b/ecom/target/semantic_manifest.json new file mode 100644 index 0000000..8893f9e --- /dev/null +++ b/ecom/target/semantic_manifest.json @@ -0,0 +1 @@ +{"semantic_models": [], "metrics": [], "project_configuration": {"time_spine_table_configurations": [], "metadata": null, "dsi_package_version": {"major_version": "0", "minor_version": "9", "patch_version": "0"}, "time_spines": []}, "saved_queries": []} \ No newline at end of file From 7b11136657d743a22da4f6d3d11fa8dcd9ed4969 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 16:34:45 +0300 Subject: [PATCH 05/13] chore: ignore dbt build artifacts --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 5e4e32c..b35202d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,8 @@ data/processed/ *.duckdb __pycache__/ .env +# dbt artifacts +ecom/target/ +ecom/dbt_packages/ +ecom/logs/ +ecom/.user.yml \ No newline at end of file From 3c67e20c4cf8ab589734e8963b36cc4be93a8571 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 16:36:00 +0300 Subject: [PATCH 06/13] chore: untrack dbt target and logs directories --- ecom/logs/dbt.log | 2066 ----------------- ...omers_cb6541bdfe84b095a285bc588250ad14.sql | 22 - ...rders_438d464f50d5ac4083558b138f2a2e48.sql | 22 - ...rders_8aab560aa5989dcef0692b4b063c0cfa.sql | 22 - ...sions_5e2893171212959110c437f6a1c9f537.sql | 22 - ...g_sessions_platform__ios__android__web.sql | 22 - .../not_null_stg_customers_customer_id.sql | 11 - .../not_null_stg_customers_email.sql | 11 - .../not_null_stg_customers_signup_date.sql | 11 - .../not_null_stg_order_items_order_id.sql | 11 - ...not_null_stg_order_items_order_item_id.sql | 11 - .../not_null_stg_order_items_product_id.sql | 11 - .../not_null_stg_orders_customer_id.sql | 11 - .../not_null_stg_orders_order_date.sql | 11 - .../not_null_stg_orders_order_id.sql | 11 - .../not_null_stg_products_product_id.sql | 11 - .../not_null_stg_products_seller_id.sql | 11 - .../not_null_stg_sellers_rating.sql | 11 - .../not_null_stg_sellers_seller_id.sql | 11 - .../not_null_stg_sessions_session_id.sql | 11 - ...items_85fcc371bcae46211ede4a7fca07283f.sql | 25 - ...items_b3d7cdbd08ebfad01e3226c01c10bba0.sql | 25 - ...rders_96411fe0c89b49c3f4da955dfd358ba0.sql | 25 - ...ducts_150cf84beadbe29e9fadd6ea69c29620.sql | 25 - .../unique_stg_customers_customer_id.sql | 14 - .../unique_stg_customers_email.sql | 14 - .../unique_stg_order_items_order_item_id.sql | 14 - .../unique_stg_orders_order_id.sql | 14 - .../unique_stg_products_product_id.sql | 14 - .../unique_stg_sellers_seller_id.sql | 14 - .../unique_stg_sessions_session_id.sql | 14 - .../ecom/models/staging/stg_customers.sql | 57 - .../ecom/models/staging/stg_order_items.sql | 47 - .../ecom/models/staging/stg_orders.sql | 55 - .../ecom/models/staging/stg_products.sql | 33 - .../ecom/models/staging/stg_sellers.sql | 26 - .../ecom/models/staging/stg_sessions.sql | 28 - ecom/target/graph.gpickle | Bin 40392 -> 0 bytes ecom/target/graph_summary.json | 1 - ecom/target/manifest.json | 1 - ecom/target/partial_parse.msgpack | Bin 595159 -> 0 bytes ...omers_cb6541bdfe84b095a285bc588250ad14.sql | 36 - ...rders_438d464f50d5ac4083558b138f2a2e48.sql | 36 - ...rders_8aab560aa5989dcef0692b4b063c0cfa.sql | 36 - ...sions_5e2893171212959110c437f6a1c9f537.sql | 36 - ...g_sessions_platform__ios__android__web.sql | 36 - .../not_null_stg_customers_customer_id.sql | 25 - .../not_null_stg_customers_email.sql | 25 - .../not_null_stg_customers_signup_date.sql | 25 - .../not_null_stg_order_items_order_id.sql | 25 - ...not_null_stg_order_items_order_item_id.sql | 25 - .../not_null_stg_order_items_product_id.sql | 25 - .../not_null_stg_orders_customer_id.sql | 25 - .../not_null_stg_orders_order_date.sql | 25 - .../not_null_stg_orders_order_id.sql | 25 - .../not_null_stg_products_product_id.sql | 25 - .../not_null_stg_products_seller_id.sql | 25 - .../not_null_stg_sellers_rating.sql | 25 - .../not_null_stg_sellers_seller_id.sql | 25 - .../not_null_stg_sessions_session_id.sql | 25 - ...items_85fcc371bcae46211ede4a7fca07283f.sql | 39 - ...items_b3d7cdbd08ebfad01e3226c01c10bba0.sql | 39 - ...rders_96411fe0c89b49c3f4da955dfd358ba0.sql | 39 - ...ducts_150cf84beadbe29e9fadd6ea69c29620.sql | 39 - .../unique_stg_customers_customer_id.sql | 28 - .../unique_stg_customers_email.sql | 28 - .../unique_stg_order_items_order_item_id.sql | 28 - .../unique_stg_orders_order_id.sql | 28 - .../unique_stg_products_product_id.sql | 28 - .../unique_stg_sellers_seller_id.sql | 28 - .../unique_stg_sessions_session_id.sql | 28 - .../run/ecom/models/staging/stg_customers.sql | 61 - .../ecom/models/staging/stg_order_items.sql | 51 - .../run/ecom/models/staging/stg_orders.sql | 59 - .../run/ecom/models/staging/stg_products.sql | 37 - .../run/ecom/models/staging/stg_sellers.sql | 30 - .../run/ecom/models/staging/stg_sessions.sql | 32 - ecom/target/run_results.json | 1 - ecom/target/semantic_manifest.json | 1 - 79 files changed, 3930 deletions(-) delete mode 100644 ecom/logs/dbt.log delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/stg_customers.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/stg_order_items.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/stg_orders.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/stg_products.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/stg_sellers.sql delete mode 100644 ecom/target/compiled/ecom/models/staging/stg_sessions.sql delete mode 100644 ecom/target/graph.gpickle delete mode 100644 ecom/target/graph_summary.json delete mode 100644 ecom/target/manifest.json delete mode 100644 ecom/target/partial_parse.msgpack delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql delete mode 100644 ecom/target/run/ecom/models/staging/stg_customers.sql delete mode 100644 ecom/target/run/ecom/models/staging/stg_order_items.sql delete mode 100644 ecom/target/run/ecom/models/staging/stg_orders.sql delete mode 100644 ecom/target/run/ecom/models/staging/stg_products.sql delete mode 100644 ecom/target/run/ecom/models/staging/stg_sellers.sql delete mode 100644 ecom/target/run/ecom/models/staging/stg_sessions.sql delete mode 100644 ecom/target/run_results.json delete mode 100644 ecom/target/semantic_manifest.json diff --git a/ecom/logs/dbt.log b/ecom/logs/dbt.log deleted file mode 100644 index 5b9ef68..0000000 --- a/ecom/logs/dbt.log +++ /dev/null @@ -1,2066 +0,0 @@ -16:05:15.166283 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} - - -============================== 16:05:15.169144 | c1e051fe-2da2-4723-894a-d9f18a60ef10 ============================== -16:05:15.169144 [info ] [MainThread]: Running with dbt=1.11.8 -16:05:15.169479 [debug] [MainThread]: running dbt with arguments {'use_colors': 'True', 'cache_selected_only': 'False', 'static_parser': 'True', 'no_print': 'None', 'fail_fast': 'False', 'introspect': 'True', 'log_format': 'default', 'target_path': 'None', 'warn_error': 'None', 'profiles_dir': '.', 'send_anonymous_usage_stats': 'True', 'use_experimental_parser': 'False', 'indirect_selection': 'eager', 'log_cache_events': 'False', 'quiet': 'False', 'partial_parse': 'True', 'invocation_command': 'dbt build --profiles-dir .', 'debug': 'False', 'empty': 'False', 'write_json': 'True', 'log_path': '/Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/logs', 'version_check': 'True', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'printer_width': '80'} -16:05:15.280507 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'project_id', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:15.312782 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'adapter_info', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:15.314476 [info ] [MainThread]: Registered adapter: duckdb=1.10.1 -16:05:15.388549 [debug] [MainThread]: checksum: 7d524ac048c2100769df89d592e662e060a73ca564e31bd9c2a37efdfe8d8ab6, vars: {}, profile: , target: , version: 1.11.8 -16:05:15.388992 [info ] [MainThread]: Unable to do partial parsing because saved manifest not found. Starting full parse. -16:05:15.389200 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'partial_parser', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:15.975429 [warn ] [MainThread]: [WARNING][MissingArgumentsPropertyInGenericTestDeprecation]: Deprecated -functionality -Found top-level arguments to test `accepted_values` defined on 'stg_customers' -in package 'ecom' (models/staging/_schema.yml). Arguments to generic tests -should be nested under the `arguments` property. -16:05:15.975764 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'deprecation', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'property_': 'warn', 'context': []} -16:05:16.116183 [warn ] [MainThread]: [WARNING]: Configuration paths exist in your dbt_project.yml file which do not apply to any resources. -There are 1 unused configuration paths: -- models.ecom.marts -16:05:16.121221 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'load_project', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.173796 [debug] [MainThread]: Wrote artifact WritableManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/manifest.json -16:05:16.175225 [debug] [MainThread]: Wrote artifact SemanticManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/semantic_manifest.json -16:05:16.190047 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'resource_counts', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.190360 [info ] [MainThread]: Found 6 models, 30 data tests, 6 sources, 475 macros -16:05:16.192307 [info ] [MainThread]: -16:05:16.192508 [info ] [MainThread]: Concurrency: 4 threads (target='dev') -16:05:16.192669 [info ] [MainThread]: -16:05:16.192917 [debug] [MainThread]: Acquiring new duckdb connection 'master' -16:05:16.195412 [debug] [ThreadPool]: Acquiring new duckdb connection 'list_ecom' -16:05:16.261871 [debug] [ThreadPool]: Using duckdb connection "list_ecom" -16:05:16.262126 [debug] [ThreadPool]: On list_ecom: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "list_ecom"} */ - - - select schema_name - from system.information_schema.schemata - - where lower(catalog_name) = '"ecom"' - - - -16:05:16.262287 [debug] [ThreadPool]: Opening a new connection, currently in state init -16:05:16.271680 [debug] [ThreadPool]: SQL status: OK in 0.009 seconds -16:05:16.272442 [debug] [ThreadPool]: On list_ecom: Close -16:05:16.272827 [debug] [ThreadPool]: Re-using an available connection from the pool (formerly list_ecom, now create_ecom_main_staging) -16:05:16.273096 [debug] [ThreadPool]: Creating schema "database: "ecom" -schema: "main_staging" -" -16:05:16.276556 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" -16:05:16.276740 [debug] [ThreadPool]: On create_ecom_main_staging: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "create_ecom_main_staging"} */ - - - select type from duckdb_databases() - where lower(database_name)='ecom' - and type='sqlite' - - -16:05:16.276886 [debug] [ThreadPool]: Opening a new connection, currently in state closed -16:05:16.277563 [debug] [ThreadPool]: SQL status: OK in 0.001 seconds -16:05:16.278228 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" -16:05:16.278375 [debug] [ThreadPool]: On create_ecom_main_staging: BEGIN -16:05:16.278589 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds -16:05:16.278723 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" -16:05:16.278860 [debug] [ThreadPool]: On create_ecom_main_staging: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "create_ecom_main_staging"} */ - - - - create schema if not exists "ecom"."main_staging" - -16:05:16.279106 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds -16:05:16.279529 [debug] [ThreadPool]: On create_ecom_main_staging: COMMIT -16:05:16.279680 [debug] [ThreadPool]: Using duckdb connection "create_ecom_main_staging" -16:05:16.279810 [debug] [ThreadPool]: On create_ecom_main_staging: COMMIT -16:05:16.280224 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds -16:05:16.280372 [debug] [ThreadPool]: On create_ecom_main_staging: Close -16:05:16.281005 [debug] [ThreadPool]: Re-using an available connection from the pool (formerly create_ecom_main_staging, now list_ecom_main_staging) -16:05:16.283864 [debug] [ThreadPool]: Using duckdb connection "list_ecom_main_staging" -16:05:16.284040 [debug] [ThreadPool]: On list_ecom_main_staging: BEGIN -16:05:16.284184 [debug] [ThreadPool]: Opening a new connection, currently in state closed -16:05:16.284435 [debug] [ThreadPool]: SQL status: OK in 0.000 seconds -16:05:16.284586 [debug] [ThreadPool]: Using duckdb connection "list_ecom_main_staging" -16:05:16.284737 [debug] [ThreadPool]: On list_ecom_main_staging: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "connection_name": "list_ecom_main_staging"} */ -select - 'ecom' as database, - table_name as name, - table_schema as schema, - CASE table_type - WHEN 'BASE TABLE' THEN 'table' - WHEN 'VIEW' THEN 'view' - WHEN 'LOCAL TEMPORARY' THEN 'table' - END as type - from system.information_schema.tables - where lower(table_schema) = 'main_staging' - and lower(table_catalog) = 'ecom' - -16:05:16.286822 [debug] [ThreadPool]: SQL status: OK in 0.002 seconds -16:05:16.287466 [debug] [ThreadPool]: On list_ecom_main_staging: ROLLBACK -16:05:16.288330 [debug] [ThreadPool]: Failed to rollback 'list_ecom_main_staging' -16:05:16.288485 [debug] [ThreadPool]: On list_ecom_main_staging: Close -16:05:16.288727 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'runnable_timing', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.288977 [debug] [MainThread]: Using duckdb connection "master" -16:05:16.289130 [debug] [MainThread]: On master: BEGIN -16:05:16.289266 [debug] [MainThread]: Opening a new connection, currently in state init -16:05:16.289511 [debug] [MainThread]: SQL status: OK in 0.000 seconds -16:05:16.289655 [debug] [MainThread]: On master: COMMIT -16:05:16.289795 [debug] [MainThread]: Using duckdb connection "master" -16:05:16.289932 [debug] [MainThread]: On master: COMMIT -16:05:16.290137 [debug] [MainThread]: SQL status: OK in 0.000 seconds -16:05:16.290276 [debug] [MainThread]: On master: Close -16:05:16.291806 [debug] [Thread-1 (]: Began running node model.ecom.stg_customers -16:05:16.292009 [debug] [Thread-2 (]: Began running node model.ecom.stg_products -16:05:16.292186 [debug] [Thread-3 (]: Began running node model.ecom.stg_sellers -16:05:16.292554 [debug] [Thread-4 (]: Began running node model.ecom.stg_sessions -16:05:16.292419 [info ] [Thread-1 (]: 1 of 36 START sql view model main_staging.stg_customers ........................ [RUN] -16:05:16.292821 [info ] [Thread-2 (]: 2 of 36 START sql view model main_staging.stg_products ......................... [RUN] -16:05:16.293088 [info ] [Thread-3 (]: 3 of 36 START sql view model main_staging.stg_sellers .......................... [RUN] -16:05:16.293344 [info ] [Thread-4 (]: 4 of 36 START sql view model main_staging.stg_sessions ......................... [RUN] -16:05:16.293568 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly list_ecom_main_staging, now model.ecom.stg_customers) -16:05:16.293797 [debug] [Thread-2 (]: Acquiring new duckdb connection 'model.ecom.stg_products' -16:05:16.294006 [debug] [Thread-3 (]: Acquiring new duckdb connection 'model.ecom.stg_sellers' -16:05:16.294204 [debug] [Thread-4 (]: Acquiring new duckdb connection 'model.ecom.stg_sessions' -16:05:16.294372 [debug] [Thread-1 (]: Began compiling node model.ecom.stg_customers -16:05:16.294535 [debug] [Thread-2 (]: Began compiling node model.ecom.stg_products -16:05:16.294694 [debug] [Thread-3 (]: Began compiling node model.ecom.stg_sellers -16:05:16.294850 [debug] [Thread-4 (]: Began compiling node model.ecom.stg_sessions -16:05:16.298818 [debug] [Thread-1 (]: Writing injected SQL for node "model.ecom.stg_customers" -16:05:16.300583 [debug] [Thread-2 (]: Writing injected SQL for node "model.ecom.stg_products" -16:05:16.302174 [debug] [Thread-3 (]: Writing injected SQL for node "model.ecom.stg_sellers" -16:05:16.303785 [debug] [Thread-4 (]: Writing injected SQL for node "model.ecom.stg_sessions" -16:05:16.304581 [debug] [Thread-4 (]: Began executing node model.ecom.stg_sessions -16:05:16.304785 [debug] [Thread-2 (]: Began executing node model.ecom.stg_products -16:05:16.304974 [debug] [Thread-1 (]: Began executing node model.ecom.stg_customers -16:05:16.305148 [debug] [Thread-3 (]: Began executing node model.ecom.stg_sellers -16:05:16.322643 [debug] [Thread-2 (]: Writing runtime sql for node "model.ecom.stg_products" -16:05:16.323439 [debug] [Thread-4 (]: Writing runtime sql for node "model.ecom.stg_sessions" -16:05:16.325024 [debug] [Thread-1 (]: Writing runtime sql for node "model.ecom.stg_customers" -16:05:16.326573 [debug] [Thread-3 (]: Writing runtime sql for node "model.ecom.stg_sellers" -16:05:16.327354 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" -16:05:16.327597 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" -16:05:16.327787 [debug] [Thread-4 (]: On model.ecom.stg_sessions: BEGIN -16:05:16.327967 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" -16:05:16.328131 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" -16:05:16.328297 [debug] [Thread-1 (]: On model.ecom.stg_customers: BEGIN -16:05:16.328480 [debug] [Thread-4 (]: Opening a new connection, currently in state init -16:05:16.328659 [debug] [Thread-2 (]: On model.ecom.stg_products: BEGIN -16:05:16.328825 [debug] [Thread-3 (]: On model.ecom.stg_sellers: BEGIN -16:05:16.328990 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.329295 [debug] [Thread-2 (]: Opening a new connection, currently in state init -16:05:16.329488 [debug] [Thread-3 (]: Opening a new connection, currently in state init -16:05:16.329674 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.329958 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.330183 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" -16:05:16.330362 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.330523 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" -16:05:16.330686 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.330878 [debug] [Thread-4 (]: On model.ecom.stg_sessions: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sessions"} */ - - - create view "ecom"."main_staging"."stg_sessions__dbt_tmp" as ( - /* - stg_sessions - ------------ - - Null customer_id = anonymous session (kept, not filtered) - - Derives session_duration_mins for readability - - Casts is_converted to boolean -*/ - -with source as ( - select * from "ecom"."raw"."sessions" -), - -final as ( - select - session_id, - nullif(trim(customer_id), '') as customer_id, -- preserve anonymous - cast(session_date as date) as session_date, - lower(platform) as platform, - lower(device_type) as device_type, - cast(page_views as integer) as page_views, - cast(duration_seconds as integer) as duration_seconds, - round(cast(duration_seconds as decimal) / 60, 2) as duration_mins, - cast(is_converted as boolean) as is_converted, - nullif(trim(utm_source), '') as utm_source - from source -) - -select * from final - ); - -16:05:16.331070 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" -16:05:16.331265 [debug] [Thread-1 (]: On model.ecom.stg_customers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_customers"} */ - - - create view "ecom"."main_staging"."stg_customers__dbt_tmp" as ( - /* - stg_customers - ------------- - - Renames columns to project convention - - Casts signup_date to DATE - - Deduplicates re-registered customers (keeps the earliest signup per email) - - Replaces empty city strings with NULL - - Excludes soft-deleted records -*/ - -with source as ( - select * from "ecom"."raw"."customers" -), - -renamed as ( - select - customer_id, - first_name, - last_name, - lower(trim(email)) as email, - phone, - nullif(trim(city), '') as city, - country, - lower(customer_tier) as customer_tier, - cast(signup_date as date) as signup_date, - cast(is_deleted as boolean) as is_deleted - from source -), - -deduped as ( - -- Keep earliest signup per email (first registration wins) - select *, - row_number() over ( - partition by email - order by signup_date asc - ) as rn - from renamed -), - -final as ( - select - customer_id, - first_name, - last_name, - email, - phone, - city, - country, - customer_tier, - signup_date, - is_deleted - from deduped - where rn = 1 - and is_deleted = false -) - -select * from final - ); - -16:05:16.331461 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" -16:05:16.331764 [debug] [Thread-2 (]: On model.ecom.stg_products: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_products"} */ - - - create view "ecom"."main_staging"."stg_products__dbt_tmp" as ( - /* - stg_products - ------------ - - Casts price columns and boolean - - Derives gross_margin_pct for later mart use - - Filters inactive products are kept (marts can filter by is_active) -*/ - -with source as ( - select * from "ecom"."raw"."products" -), - -final as ( - select - product_id, - trim(product_name) as product_name, - trim(category) as category, - trim(subcategory) as subcategory, - seller_id, - cast(list_price as decimal(10,2)) as list_price, - cast(cost_price as decimal(10,2)) as cost_price, - round( - (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2))) - / nullif(cast(list_price as decimal(10,2)), 0), - 4 - ) as gross_margin_pct, - cast(is_active as boolean) as is_active, - cast(stock_qty as integer) as stock_qty, - cast(created_at as date) as created_at - from source -) - -select * from final - ); - -16:05:16.332143 [debug] [Thread-3 (]: On model.ecom.stg_sellers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sellers"} */ - - - create view "ecom"."main_staging"."stg_sellers__dbt_tmp" as ( - /* - stg_sellers - ----------- - - Casts joined_date to DATE - - Casts is_verified to boolean - - Standardises category casing -*/ - -with source as ( - select * from "ecom"."raw"."sellers" -), - -final as ( - select - seller_id, - trim(seller_name) as seller_name, - trim(category) as category, - city, - cast(is_verified as boolean) as is_verified, - cast(joined_date as date) as joined_date, - cast(rating as decimal(3,1)) as rating, - cast(total_reviews as integer) as total_reviews - from source -) - -select * from final - ); - -16:05:16.332518 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.336013 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" -16:05:16.336242 [debug] [Thread-4 (]: On model.ecom.stg_sessions: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sessions"} */ -alter view "ecom"."main_staging"."stg_sessions__dbt_tmp" rename to "stg_sessions" -16:05:16.336521 [debug] [Thread-3 (]: SQL status: OK in 0.004 seconds -16:05:16.336713 [debug] [Thread-1 (]: SQL status: OK in 0.005 seconds -16:05:16.336881 [debug] [Thread-2 (]: SQL status: OK in 0.005 seconds -16:05:16.338372 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" -16:05:16.339786 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" -16:05:16.339944 [debug] [Thread-4 (]: SQL status: OK in 0.004 seconds -16:05:16.341442 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" -16:05:16.341632 [debug] [Thread-3 (]: On model.ecom.stg_sellers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sellers"} */ -alter view "ecom"."main_staging"."stg_sellers__dbt_tmp" rename to "stg_sellers" -16:05:16.341827 [debug] [Thread-1 (]: On model.ecom.stg_customers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_customers"} */ -alter view "ecom"."main_staging"."stg_customers__dbt_tmp" rename to "stg_customers" -16:05:16.347635 [debug] [Thread-4 (]: On model.ecom.stg_sessions: COMMIT -16:05:16.347844 [debug] [Thread-2 (]: On model.ecom.stg_products: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_products"} */ -alter view "ecom"."main_staging"."stg_products__dbt_tmp" rename to "stg_products" -16:05:16.348215 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" -16:05:16.348419 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.348593 [debug] [Thread-1 (]: SQL status: OK in 0.000 seconds -16:05:16.348811 [debug] [Thread-4 (]: On model.ecom.stg_sessions: COMMIT -16:05:16.349492 [debug] [Thread-3 (]: On model.ecom.stg_sellers: COMMIT -16:05:16.350221 [debug] [Thread-1 (]: On model.ecom.stg_customers: COMMIT -16:05:16.350447 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds -16:05:16.350731 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" -16:05:16.350942 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.351122 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" -16:05:16.351811 [debug] [Thread-2 (]: On model.ecom.stg_products: COMMIT -16:05:16.351994 [debug] [Thread-3 (]: On model.ecom.stg_sellers: COMMIT -16:05:16.355504 [debug] [Thread-4 (]: Using duckdb connection "model.ecom.stg_sessions" -16:05:16.355705 [debug] [Thread-1 (]: On model.ecom.stg_customers: COMMIT -16:05:16.355891 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" -16:05:16.356121 [debug] [Thread-4 (]: On model.ecom.stg_sessions: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sessions"} */ - - drop view if exists "ecom"."main_staging"."stg_sessions__dbt_backup" cascade - -16:05:16.356352 [debug] [Thread-2 (]: On model.ecom.stg_products: COMMIT -16:05:16.356524 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.356690 [debug] [Thread-1 (]: SQL status: OK in 0.000 seconds -16:05:16.356969 [debug] [Thread-4 (]: SQL status: OK in 0.000 seconds -16:05:16.358388 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_sellers" -16:05:16.358634 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds -16:05:16.359906 [debug] [Thread-1 (]: Using duckdb connection "model.ecom.stg_customers" -16:05:16.361096 [debug] [Thread-4 (]: On model.ecom.stg_sessions: Close -16:05:16.361298 [debug] [Thread-3 (]: On model.ecom.stg_sellers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_sellers"} */ - - drop view if exists "ecom"."main_staging"."stg_sellers__dbt_backup" cascade - -16:05:16.362451 [debug] [Thread-2 (]: Using duckdb connection "model.ecom.stg_products" -16:05:16.362640 [debug] [Thread-1 (]: On model.ecom.stg_customers: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_customers"} */ - - drop view if exists "ecom"."main_staging"."stg_customers__dbt_backup" cascade - -16:05:16.363313 [debug] [Thread-2 (]: On model.ecom.stg_products: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_products"} */ - - drop view if exists "ecom"."main_staging"."stg_products__dbt_backup" cascade - -16:05:16.363490 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.364465 [debug] [Thread-3 (]: On model.ecom.stg_sellers: Close -16:05:16.364664 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.364953 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.365554 [debug] [Thread-1 (]: On model.ecom.stg_customers: Close -16:05:16.366200 [debug] [Thread-2 (]: On model.ecom.stg_products: Close -16:05:16.366410 [debug] [Thread-4 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.366583 [debug] [Thread-3 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.366831 [debug] [Thread-1 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.367045 [debug] [Thread-2 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.367347 [info ] [Thread-4 (]: 4 of 36 OK created sql view model main_staging.stg_sessions .................... [OK in 0.07s] -16:05:16.367666 [info ] [Thread-3 (]: 3 of 36 OK created sql view model main_staging.stg_sellers ..................... [OK in 0.07s] -16:05:16.367980 [info ] [Thread-1 (]: 1 of 36 OK created sql view model main_staging.stg_customers ................... [OK in 0.07s] -16:05:16.368277 [info ] [Thread-2 (]: 2 of 36 OK created sql view model main_staging.stg_products .................... [OK in 0.07s] -16:05:16.368572 [debug] [Thread-4 (]: Finished running node model.ecom.stg_sessions -16:05:16.368810 [debug] [Thread-3 (]: Finished running node model.ecom.stg_sellers -16:05:16.369051 [debug] [Thread-1 (]: Finished running node model.ecom.stg_customers -16:05:16.369284 [debug] [Thread-2 (]: Finished running node model.ecom.stg_products -16:05:16.369612 [debug] [Thread-4 (]: Began running node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 -16:05:16.369813 [debug] [Thread-3 (]: Began running node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e -16:05:16.370046 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_sessions_session_id.2e872a126d -16:05:16.370279 [debug] [Thread-2 (]: Began running node test.ecom.unique_stg_sessions_session_id.ce45726d03 -16:05:16.370495 [info ] [Thread-4 (]: 5 of 36 START test accepted_values_stg_sessions_device_type__mobile__desktop__tablet [RUN] -16:05:16.370694 [info ] [Thread-3 (]: 6 of 36 START test accepted_values_stg_sessions_platform__ios__android__web .... [RUN] -16:05:16.370887 [info ] [Thread-1 (]: 7 of 36 START test not_null_stg_sessions_session_id ............................ [RUN] -16:05:16.371080 [info ] [Thread-2 (]: 8 of 36 START test unique_stg_sessions_session_id .............................. [RUN] -16:05:16.371291 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly model.ecom.stg_sessions, now test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4) -16:05:16.371480 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly model.ecom.stg_sellers, now test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e) -16:05:16.371652 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly model.ecom.stg_customers, now test.ecom.not_null_stg_sessions_session_id.2e872a126d) -16:05:16.371824 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly model.ecom.stg_products, now test.ecom.unique_stg_sessions_session_id.ce45726d03) -16:05:16.371994 [debug] [Thread-4 (]: Began compiling node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 -16:05:16.372165 [debug] [Thread-3 (]: Began compiling node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e -16:05:16.372328 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_sessions_session_id.2e872a126d -16:05:16.372484 [debug] [Thread-2 (]: Began compiling node test.ecom.unique_stg_sessions_session_id.ce45726d03 -16:05:16.375200 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" -16:05:16.377529 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" -16:05:16.381996 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_sessions_session_id.2e872a126d" -16:05:16.385296 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.unique_stg_sessions_session_id.ce45726d03" -16:05:16.385986 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_sessions_session_id.2e872a126d -16:05:16.392175 [debug] [Thread-2 (]: Began executing node test.ecom.unique_stg_sessions_session_id.ce45726d03 -16:05:16.395048 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_sessions_session_id.2e872a126d" -16:05:16.395245 [debug] [Thread-3 (]: Began executing node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e -16:05:16.395421 [debug] [Thread-4 (]: Began executing node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 -16:05:16.397785 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.unique_stg_sessions_session_id.ce45726d03" -16:05:16.399101 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" -16:05:16.400300 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" -16:05:16.400739 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sessions_session_id.2e872a126d" -16:05:16.400927 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: BEGIN -16:05:16.401094 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.401443 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_sessions_session_id.ce45726d03" -16:05:16.401632 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: BEGIN -16:05:16.401798 [debug] [Thread-2 (]: Opening a new connection, currently in state closed -16:05:16.402044 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" -16:05:16.402215 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: BEGIN -16:05:16.402370 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.402603 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.402770 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_sessions_session_id.ce45726d03" -16:05:16.402942 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_sessions_session_id.ce45726d03"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - session_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_sessions" -where session_id is not null -group by session_id -having count(*) > 1 - - - - - - - ) dbt_internal_test -16:05:16.403206 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds -16:05:16.403369 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sessions_session_id.2e872a126d" -16:05:16.403547 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_sessions_session_id.2e872a126d"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select session_id -from "ecom"."main_staging"."stg_sessions" -where session_id is null - - - - - - - ) dbt_internal_test -16:05:16.403731 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.403941 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" -16:05:16.404170 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e" -16:05:16.404375 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: BEGIN -16:05:16.404619 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - platform as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_sessions" - group by platform - -) - -select * -from all_values -where value_field not in ( - 'ios','android','web' -) - - - - - - - ) dbt_internal_test -16:05:16.404846 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.405049 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.407217 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: ROLLBACK -16:05:16.407476 [debug] [Thread-4 (]: SQL status: OK in 0.003 seconds -16:05:16.407670 [debug] [Thread-2 (]: SQL status: OK in 0.005 seconds -16:05:16.408126 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_sessions_session_id.2e872a126d' -16:05:16.408297 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4" -16:05:16.408476 [debug] [Thread-3 (]: SQL status: OK in 0.003 seconds -16:05:16.408703 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sessions_session_id.2e872a126d: Close -16:05:16.409388 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: ROLLBACK -16:05:16.409599 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - device_type as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_sessions" - group by device_type - -) - -select * -from all_values -where value_field not in ( - 'mobile','desktop','tablet' -) - - - - - - - ) dbt_internal_test -16:05:16.410357 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: ROLLBACK -16:05:16.410842 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.unique_stg_sessions_session_id.ce45726d03' -16:05:16.411204 [info ] [Thread-1 (]: 7 of 36 PASS not_null_stg_sessions_session_id .................................. [PASS in 0.04s] -16:05:16.411711 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e' -16:05:16.411894 [debug] [Thread-2 (]: On test.ecom.unique_stg_sessions_session_id.ce45726d03: Close -16:05:16.412080 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.412316 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_sessions_session_id.2e872a126d -16:05:16.412486 [debug] [Thread-3 (]: On test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e: Close -16:05:16.413394 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: ROLLBACK -16:05:16.413584 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_sellers_rating.973b52995f -16:05:16.412744 [info ] [Thread-2 (]: 8 of 36 PASS unique_stg_sessions_session_id .................................... [PASS in 0.04s] -16:05:16.414357 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4' -16:05:16.413924 [info ] [Thread-3 (]: 6 of 36 PASS accepted_values_stg_sessions_platform__ios__android__web .......... [PASS in 0.04s] -16:05:16.414540 [info ] [Thread-1 (]: 9 of 36 START test not_null_stg_sellers_rating ................................. [RUN] -16:05:16.414844 [debug] [Thread-2 (]: Finished running node test.ecom.unique_stg_sessions_session_id.ce45726d03 -16:05:16.415020 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4: Close -16:05:16.415240 [debug] [Thread-3 (]: Finished running node test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e -16:05:16.415425 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_sessions_session_id.2e872a126d, now test.ecom.not_null_stg_sellers_rating.973b52995f) -16:05:16.415607 [debug] [Thread-2 (]: Began running node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 -16:05:16.415859 [info ] [Thread-4 (]: 5 of 36 PASS accepted_values_stg_sessions_device_type__mobile__desktop__tablet . [PASS in 0.04s] -16:05:16.416060 [debug] [Thread-3 (]: Began running node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 -16:05:16.416272 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_sellers_rating.973b52995f -16:05:16.416488 [info ] [Thread-2 (]: 10 of 36 START test not_null_stg_sellers_seller_id ............................. [RUN] -16:05:16.416743 [debug] [Thread-4 (]: Finished running node test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4 -16:05:16.416910 [info ] [Thread-3 (]: 11 of 36 START test unique_stg_sellers_seller_id ............................... [RUN] -16:05:16.419344 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_sellers_rating.973b52995f" -16:05:16.419618 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_sessions_session_id.ce45726d03, now test.ecom.not_null_stg_sellers_seller_id.35d0bce315) -16:05:16.419841 [debug] [Thread-4 (]: Began running node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 -16:05:16.420027 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e, now test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8) -16:05:16.420296 [debug] [Thread-2 (]: Began compiling node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 -16:05:16.420483 [info ] [Thread-4 (]: 12 of 36 START test accepted_values_stg_customers_customer_tier__bronze__silver__gold [RUN] -16:05:16.420848 [debug] [Thread-3 (]: Began compiling node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 -16:05:16.423775 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" -16:05:16.424016 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_sellers_rating.973b52995f -16:05:16.424291 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4, now test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40) -16:05:16.426285 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" -16:05:16.427600 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_sellers_rating.973b52995f" -16:05:16.427831 [debug] [Thread-4 (]: Began compiling node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 -16:05:16.428129 [debug] [Thread-2 (]: Began executing node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 -16:05:16.430256 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" -16:05:16.431554 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" -16:05:16.431795 [debug] [Thread-3 (]: Began executing node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 -16:05:16.432034 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_rating.973b52995f" -16:05:16.433337 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" -16:05:16.433614 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: BEGIN -16:05:16.433935 [debug] [Thread-4 (]: Began executing node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 -16:05:16.434168 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" -16:05:16.434360 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.435691 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" -16:05:16.435887 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: BEGIN -16:05:16.436080 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" -16:05:16.436413 [debug] [Thread-2 (]: Opening a new connection, currently in state closed -16:05:16.436629 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: BEGIN -16:05:16.436817 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds -16:05:16.437156 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" -16:05:16.437363 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.437552 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.437714 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_rating.973b52995f" -16:05:16.437898 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: BEGIN -16:05:16.438115 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_sellers_seller_id.35d0bce315" -16:05:16.438294 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_sellers_rating.973b52995f"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select rating -from "ecom"."main_staging"."stg_sellers" -where rating is null - - - - - - - ) dbt_internal_test -16:05:16.438465 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.438633 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.438819 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_sellers_seller_id.35d0bce315"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select seller_id -from "ecom"."main_staging"."stg_sellers" -where seller_id is null - - - - - - - ) dbt_internal_test -16:05:16.439059 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8" -16:05:16.439405 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.439600 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - seller_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_sellers" -where seller_id is not null -group by seller_id -having count(*) > 1 - - - - - - - ) dbt_internal_test -16:05:16.439830 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40" -16:05:16.440005 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.440167 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.440414 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - customer_tier as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_customers" - group by customer_tier - -) - -select * -from all_values -where value_field not in ( - 'bronze','silver','gold' -) - - - - - - - ) dbt_internal_test -16:05:16.441294 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: ROLLBACK -16:05:16.441552 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.442239 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: ROLLBACK -16:05:16.442803 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.not_null_stg_sellers_seller_id.35d0bce315' -16:05:16.443323 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_sellers_rating.973b52995f' -16:05:16.443532 [debug] [Thread-2 (]: On test.ecom.not_null_stg_sellers_seller_id.35d0bce315: Close -16:05:16.444699 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: ROLLBACK -16:05:16.445110 [debug] [Thread-1 (]: On test.ecom.not_null_stg_sellers_rating.973b52995f: Close -16:05:16.445711 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8' -16:05:16.446037 [info ] [Thread-2 (]: 10 of 36 PASS not_null_stg_sellers_seller_id ................................... [PASS in 0.03s] -16:05:16.446499 [debug] [Thread-4 (]: SQL status: OK in 0.005 seconds -16:05:16.446338 [info ] [Thread-1 (]: 9 of 36 PASS not_null_stg_sellers_rating ....................................... [PASS in 0.03s] -16:05:16.446741 [debug] [Thread-3 (]: On test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8: Close -16:05:16.447002 [debug] [Thread-2 (]: Finished running node test.ecom.not_null_stg_sellers_seller_id.35d0bce315 -16:05:16.447295 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_sellers_rating.973b52995f -16:05:16.447977 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: ROLLBACK -16:05:16.448236 [info ] [Thread-3 (]: 11 of 36 PASS unique_stg_sellers_seller_id ..................................... [PASS in 0.03s] -16:05:16.448472 [debug] [Thread-2 (]: Began running node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa -16:05:16.448704 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_customers_email.d7cf761533 -16:05:16.449241 [debug] [Thread-3 (]: Finished running node test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8 -16:05:16.449775 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40' -16:05:16.449971 [info ] [Thread-2 (]: 13 of 36 START test not_null_stg_customers_customer_id ......................... [RUN] -16:05:16.450170 [info ] [Thread-1 (]: 14 of 36 START test not_null_stg_customers_email ............................... [RUN] -16:05:16.450399 [debug] [Thread-3 (]: Began running node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 -16:05:16.450600 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40: Close -16:05:16.450803 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_sellers_seller_id.35d0bce315, now test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa) -16:05:16.451000 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_sellers_rating.973b52995f, now test.ecom.not_null_stg_customers_email.d7cf761533) -16:05:16.451181 [info ] [Thread-3 (]: 15 of 36 START test not_null_stg_customers_signup_date ......................... [RUN] -16:05:16.451434 [debug] [Thread-2 (]: Began compiling node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa -16:05:16.451706 [info ] [Thread-4 (]: 12 of 36 PASS accepted_values_stg_customers_customer_tier__bronze__silver__gold [PASS in 0.03s] -16:05:16.451919 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_customers_email.d7cf761533 -16:05:16.452113 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8, now test.ecom.not_null_stg_customers_signup_date.ef12d9c335) -16:05:16.455435 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" -16:05:16.455720 [debug] [Thread-4 (]: Finished running node test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40 -16:05:16.457857 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_customers_email.d7cf761533" -16:05:16.458097 [debug] [Thread-3 (]: Began compiling node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 -16:05:16.458555 [debug] [Thread-4 (]: Began running node test.ecom.unique_stg_customers_customer_id.c7614daada -16:05:16.461279 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" -16:05:16.461559 [info ] [Thread-4 (]: 16 of 36 START test unique_stg_customers_customer_id ........................... [RUN] -16:05:16.461781 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_customers_email.d7cf761533 -16:05:16.462072 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40, now test.ecom.unique_stg_customers_customer_id.c7614daada) -16:05:16.463357 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_customers_email.d7cf761533" -16:05:16.463546 [debug] [Thread-2 (]: Began executing node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa -16:05:16.463741 [debug] [Thread-4 (]: Began compiling node test.ecom.unique_stg_customers_customer_id.c7614daada -16:05:16.465456 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" -16:05:16.465705 [debug] [Thread-3 (]: Began executing node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 -16:05:16.468176 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.unique_stg_customers_customer_id.c7614daada" -16:05:16.469642 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" -16:05:16.469911 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_customers_email.d7cf761533" -16:05:16.470217 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" -16:05:16.470447 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: BEGIN -16:05:16.470637 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: BEGIN -16:05:16.470832 [debug] [Thread-4 (]: Began executing node test.ecom.unique_stg_customers_customer_id.c7614daada -16:05:16.471005 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.471200 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" -16:05:16.471362 [debug] [Thread-2 (]: Opening a new connection, currently in state closed -16:05:16.472544 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.unique_stg_customers_customer_id.c7614daada" -16:05:16.472832 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: BEGIN -16:05:16.473053 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds -16:05:16.473250 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds -16:05:16.473439 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.473654 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_customers_email.d7cf761533" -16:05:16.473845 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa" -16:05:16.474028 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_customers_customer_id.c7614daada" -16:05:16.474251 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_customers_email.d7cf761533"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select email -from "ecom"."main_staging"."stg_customers" -where email is null - - - - - - - ) dbt_internal_test -16:05:16.474451 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select customer_id -from "ecom"."main_staging"."stg_customers" -where customer_id is null - - - - - - - ) dbt_internal_test -16:05:16.474640 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.474799 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: BEGIN -16:05:16.475094 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_customers_signup_date.ef12d9c335" -16:05:16.475280 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.475473 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_customers_signup_date.ef12d9c335"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select signup_date -from "ecom"."main_staging"."stg_customers" -where signup_date is null - - - - - - - ) dbt_internal_test -16:05:16.475825 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.476002 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_customers_customer_id.c7614daada" -16:05:16.476184 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.476386 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_customers_customer_id.c7614daada"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - customer_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_customers" -where customer_id is not null -group by customer_id -having count(*) > 1 - - - - - - - ) dbt_internal_test -16:05:16.476596 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds -16:05:16.477621 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: ROLLBACK -16:05:16.477874 [debug] [Thread-3 (]: SQL status: OK in 0.002 seconds -16:05:16.478436 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa' -16:05:16.478656 [debug] [Thread-2 (]: On test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa: Close -16:05:16.479370 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: ROLLBACK -16:05:16.480131 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: ROLLBACK -16:05:16.480357 [debug] [Thread-4 (]: SQL status: OK in 0.003 seconds -16:05:16.480654 [info ] [Thread-2 (]: 13 of 36 PASS not_null_stg_customers_customer_id ............................... [PASS in 0.03s] -16:05:16.481173 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.not_null_stg_customers_signup_date.ef12d9c335' -16:05:16.481607 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_customers_email.d7cf761533' -16:05:16.481898 [debug] [Thread-2 (]: Finished running node test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa -16:05:16.482602 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: ROLLBACK -16:05:16.482772 [debug] [Thread-3 (]: On test.ecom.not_null_stg_customers_signup_date.ef12d9c335: Close -16:05:16.482955 [debug] [Thread-1 (]: On test.ecom.not_null_stg_customers_email.d7cf761533: Close -16:05:16.483203 [debug] [Thread-2 (]: Began running node test.ecom.unique_stg_customers_email.1ebcb2333e -16:05:16.483758 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.unique_stg_customers_customer_id.c7614daada' -16:05:16.484113 [info ] [Thread-3 (]: 15 of 36 PASS not_null_stg_customers_signup_date ............................... [PASS in 0.03s] -16:05:16.484375 [info ] [Thread-1 (]: 14 of 36 PASS not_null_stg_customers_email ..................................... [PASS in 0.03s] -16:05:16.484806 [debug] [Thread-4 (]: On test.ecom.unique_stg_customers_customer_id.c7614daada: Close -16:05:16.484526 [info ] [Thread-2 (]: 17 of 36 START test unique_stg_customers_email ................................. [RUN] -16:05:16.485124 [debug] [Thread-3 (]: Finished running node test.ecom.not_null_stg_customers_signup_date.ef12d9c335 -16:05:16.485389 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_customers_email.d7cf761533 -16:05:16.485844 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa, now test.ecom.unique_stg_customers_email.1ebcb2333e) -16:05:16.485666 [info ] [Thread-4 (]: 16 of 36 PASS unique_stg_customers_customer_id ................................. [PASS in 0.02s] -16:05:16.486128 [debug] [Thread-3 (]: Began running node test.ecom.not_null_stg_products_product_id.6373b0acf3 -16:05:16.486316 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 -16:05:16.486512 [debug] [Thread-2 (]: Began compiling node test.ecom.unique_stg_customers_email.1ebcb2333e -16:05:16.486744 [debug] [Thread-4 (]: Finished running node test.ecom.unique_stg_customers_customer_id.c7614daada -16:05:16.486917 [info ] [Thread-3 (]: 18 of 36 START test not_null_stg_products_product_id ........................... [RUN] -16:05:16.487095 [info ] [Thread-1 (]: 19 of 36 START test not_null_stg_products_seller_id ............................ [RUN] -16:05:16.489329 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.unique_stg_customers_email.1ebcb2333e" -16:05:16.489552 [debug] [Thread-4 (]: Began running node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 -16:05:16.489784 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_customers_signup_date.ef12d9c335, now test.ecom.not_null_stg_products_product_id.6373b0acf3) -16:05:16.489966 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_customers_email.d7cf761533, now test.ecom.not_null_stg_products_seller_id.0ba77d68d6) -16:05:16.490199 [info ] [Thread-4 (]: 20 of 36 START test relationships_stg_products_seller_id__seller_id__ref_stg_sellers_ [RUN] -16:05:16.490412 [debug] [Thread-3 (]: Began compiling node test.ecom.not_null_stg_products_product_id.6373b0acf3 -16:05:16.490595 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 -16:05:16.490804 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_customers_customer_id.c7614daada, now test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360) -16:05:16.492766 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.not_null_stg_products_product_id.6373b0acf3" -16:05:16.494835 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" -16:05:16.495048 [debug] [Thread-4 (]: Began compiling node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 -16:05:16.495234 [debug] [Thread-2 (]: Began executing node test.ecom.unique_stg_customers_email.1ebcb2333e -16:05:16.498954 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" -16:05:16.500450 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.unique_stg_customers_email.1ebcb2333e" -16:05:16.500813 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 -16:05:16.503173 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" -16:05:16.503523 [debug] [Thread-3 (]: Began executing node test.ecom.not_null_stg_products_product_id.6373b0acf3 -16:05:16.504793 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.not_null_stg_products_product_id.6373b0acf3" -16:05:16.505091 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_customers_email.1ebcb2333e" -16:05:16.505302 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: BEGIN -16:05:16.505525 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" -16:05:16.505725 [debug] [Thread-4 (]: Began executing node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 -16:05:16.505892 [debug] [Thread-2 (]: Opening a new connection, currently in state closed -16:05:16.506089 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_products_product_id.6373b0acf3" -16:05:16.506253 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: BEGIN -16:05:16.507451 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" -16:05:16.507741 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: BEGIN -16:05:16.507926 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.508105 [debug] [Thread-2 (]: SQL status: OK in 0.002 seconds -16:05:16.508299 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.508559 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" -16:05:16.508726 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.unique_stg_customers_email.1ebcb2333e" -16:05:16.508908 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.509113 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: BEGIN -16:05:16.509297 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_customers_email.1ebcb2333e"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - email as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_customers" -where email is not null -group by email -having count(*) > 1 - - - - - - - ) dbt_internal_test -16:05:16.509470 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.509639 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_products_seller_id.0ba77d68d6" -16:05:16.509800 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.510036 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_products_product_id.6373b0acf3" -16:05:16.510233 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_products_seller_id.0ba77d68d6"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select seller_id -from "ecom"."main_staging"."stg_products" -where seller_id is null - - - - - - - ) dbt_internal_test -16:05:16.510506 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_products_product_id.6373b0acf3"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select product_id -from "ecom"."main_staging"."stg_products" -where product_id is null - - - - - - - ) dbt_internal_test -16:05:16.510767 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.511134 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360" -16:05:16.511557 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select seller_id as from_field - from "ecom"."main_staging"."stg_products" - where seller_id is not null -), - -parent as ( - select seller_id as to_field - from "ecom"."main_staging"."stg_sellers" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test -16:05:16.511947 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.512214 [debug] [Thread-1 (]: SQL status: OK in 0.002 seconds -16:05:16.513111 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: ROLLBACK -16:05:16.513842 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: ROLLBACK -16:05:16.514082 [debug] [Thread-2 (]: SQL status: OK in 0.004 seconds -16:05:16.514564 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_products_seller_id.0ba77d68d6' -16:05:16.514779 [debug] [Thread-4 (]: SQL status: OK in 0.003 seconds -16:05:16.515245 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.not_null_stg_products_product_id.6373b0acf3' -16:05:16.515474 [debug] [Thread-1 (]: On test.ecom.not_null_stg_products_seller_id.0ba77d68d6: Close -16:05:16.516152 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: ROLLBACK -16:05:16.516375 [debug] [Thread-3 (]: On test.ecom.not_null_stg_products_product_id.6373b0acf3: Close -16:05:16.517117 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: ROLLBACK -16:05:16.517463 [info ] [Thread-1 (]: 19 of 36 PASS not_null_stg_products_seller_id .................................. [PASS in 0.03s] -16:05:16.517979 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.unique_stg_customers_email.1ebcb2333e' -16:05:16.518228 [info ] [Thread-3 (]: 18 of 36 PASS not_null_stg_products_product_id ................................. [PASS in 0.03s] -16:05:16.518720 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360' -16:05:16.518968 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_products_seller_id.0ba77d68d6 -16:05:16.519149 [debug] [Thread-2 (]: On test.ecom.unique_stg_customers_email.1ebcb2333e: Close -16:05:16.519380 [debug] [Thread-3 (]: Finished running node test.ecom.not_null_stg_products_product_id.6373b0acf3 -16:05:16.519544 [debug] [Thread-4 (]: On test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360: Close -16:05:16.519733 [debug] [Thread-1 (]: Began running node test.ecom.unique_stg_products_product_id.7d950a1467 -16:05:16.520040 [info ] [Thread-2 (]: 17 of 36 PASS unique_stg_customers_email ....................................... [PASS in 0.03s] -16:05:16.520300 [info ] [Thread-4 (]: 20 of 36 PASS relationships_stg_products_seller_id__seller_id__ref_stg_sellers_ [PASS in 0.03s] -16:05:16.520508 [info ] [Thread-1 (]: 21 of 36 START test unique_stg_products_product_id ............................. [RUN] -16:05:16.520766 [debug] [Thread-2 (]: Finished running node test.ecom.unique_stg_customers_email.1ebcb2333e -16:05:16.520999 [debug] [Thread-4 (]: Finished running node test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360 -16:05:16.521181 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_products_seller_id.0ba77d68d6, now test.ecom.unique_stg_products_product_id.7d950a1467) -16:05:16.521454 [debug] [Thread-3 (]: Began running node model.ecom.stg_orders -16:05:16.521656 [debug] [Thread-1 (]: Began compiling node test.ecom.unique_stg_products_product_id.7d950a1467 -16:05:16.524192 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.unique_stg_products_product_id.7d950a1467" -16:05:16.521901 [info ] [Thread-3 (]: 22 of 36 START sql view model main_staging.stg_orders .......................... [RUN] -16:05:16.524514 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_products_product_id.6373b0acf3, now model.ecom.stg_orders) -16:05:16.524697 [debug] [Thread-3 (]: Began compiling node model.ecom.stg_orders -16:05:16.526332 [debug] [Thread-3 (]: Writing injected SQL for node "model.ecom.stg_orders" -16:05:16.526581 [debug] [Thread-1 (]: Began executing node test.ecom.unique_stg_products_product_id.7d950a1467 -16:05:16.527913 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.unique_stg_products_product_id.7d950a1467" -16:05:16.528160 [debug] [Thread-3 (]: Began executing node model.ecom.stg_orders -16:05:16.529798 [debug] [Thread-3 (]: Writing runtime sql for node "model.ecom.stg_orders" -16:05:16.530090 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.unique_stg_products_product_id.7d950a1467" -16:05:16.530275 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: BEGIN -16:05:16.530503 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.530786 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" -16:05:16.530976 [debug] [Thread-3 (]: On model.ecom.stg_orders: BEGIN -16:05:16.531148 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.531301 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.531465 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.unique_stg_products_product_id.7d950a1467" -16:05:16.531685 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_products_product_id.7d950a1467"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - product_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_products" -where product_id is not null -group by product_id -having count(*) > 1 - - - - - - - ) dbt_internal_test -16:05:16.531936 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.532093 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" -16:05:16.532296 [debug] [Thread-3 (]: On model.ecom.stg_orders: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_orders"} */ - - - create view "ecom"."main_staging"."stg_orders__dbt_tmp" as ( - /* - stg_orders - ---------- - - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy). - We COALESCE two TRY_STRPTIME calls to handle both safely. - - Filters rows where the date cannot be parsed (data quality guard) - - Filters orphaned orders (customer_id not in stg_customers) - - Casts and standardises order_status and payment_method -*/ - -with source as ( - select * from "ecom"."raw"."orders" -), - -date_parsed as ( - select - order_id, - customer_id, - -- Try ISO first, then dd/mm/yyyy — whichever parses wins - coalesce( - try_strptime(order_date, '%Y-%m-%d'), - try_strptime(order_date, '%d/%m/%Y') - ) as order_date, - order_status, - payment_method, - shipping_city, - cast(discount_amount as decimal(10,2)) as discount_amount, - nullif(trim(coupon_code), '') as coupon_code, - lower(platform) as platform - from source -), - -valid_customers as ( - select customer_id from "ecom"."main_staging"."stg_customers" -), - -final as ( - select - o.order_id, - o.customer_id, - o.order_date, - o.order_status, - o.payment_method, - o.shipping_city, - o.discount_amount, - o.coupon_code, - o.platform - from date_parsed o - -- Drop unparseable dates - where o.order_date is not null - -- Drop orphaned customer_ids (referential integrity fix) - and o.customer_id in (select customer_id from valid_customers) -) - -select * from final - ); - -16:05:16.533017 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.533974 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: ROLLBACK -16:05:16.534253 [debug] [Thread-3 (]: SQL status: OK in 0.002 seconds -16:05:16.534743 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.unique_stg_products_product_id.7d950a1467' -16:05:16.536381 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" -16:05:16.536576 [debug] [Thread-1 (]: On test.ecom.unique_stg_products_product_id.7d950a1467: Close -16:05:16.536776 [debug] [Thread-3 (]: On model.ecom.stg_orders: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_orders"} */ -alter view "ecom"."main_staging"."stg_orders__dbt_tmp" rename to "stg_orders" -16:05:16.537111 [info ] [Thread-1 (]: 21 of 36 PASS unique_stg_products_product_id ................................... [PASS in 0.02s] -16:05:16.537458 [debug] [Thread-1 (]: Finished running node test.ecom.unique_stg_products_product_id.7d950a1467 -16:05:16.537655 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.538416 [debug] [Thread-3 (]: On model.ecom.stg_orders: COMMIT -16:05:16.538594 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" -16:05:16.538752 [debug] [Thread-3 (]: On model.ecom.stg_orders: COMMIT -16:05:16.539172 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.541384 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_orders" -16:05:16.541567 [debug] [Thread-3 (]: On model.ecom.stg_orders: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_orders"} */ - - drop view if exists "ecom"."main_staging"."stg_orders__dbt_backup" cascade - -16:05:16.541837 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.542459 [debug] [Thread-3 (]: On model.ecom.stg_orders: Close -16:05:16.542727 [debug] [Thread-3 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.543016 [info ] [Thread-3 (]: 22 of 36 OK created sql view model main_staging.stg_orders ..................... [OK in 0.02s] -16:05:16.543273 [debug] [Thread-3 (]: Finished running node model.ecom.stg_orders -16:05:16.543671 [debug] [Thread-2 (]: Began running node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 -16:05:16.543892 [debug] [Thread-4 (]: Began running node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 -16:05:16.544107 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 -16:05:16.544435 [debug] [Thread-3 (]: Began running node test.ecom.not_null_stg_orders_order_date.2177a3e8bb -16:05:16.544299 [info ] [Thread-2 (]: 23 of 36 START test accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned [RUN] -16:05:16.544666 [info ] [Thread-4 (]: 24 of 36 START test accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet [RUN] -16:05:16.544861 [info ] [Thread-1 (]: 25 of 36 START test not_null_stg_orders_customer_id ............................ [RUN] -16:05:16.545047 [info ] [Thread-3 (]: 26 of 36 START test not_null_stg_orders_order_date ............................. [RUN] -16:05:16.545276 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_customers_email.1ebcb2333e, now test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9) -16:05:16.545476 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360, now test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2) -16:05:16.545661 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_products_product_id.7d950a1467, now test.ecom.not_null_stg_orders_customer_id.af79d5e4b5) -16:05:16.545830 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly model.ecom.stg_orders, now test.ecom.not_null_stg_orders_order_date.2177a3e8bb) -16:05:16.545999 [debug] [Thread-2 (]: Began compiling node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 -16:05:16.546168 [debug] [Thread-4 (]: Began compiling node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 -16:05:16.546328 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 -16:05:16.546482 [debug] [Thread-3 (]: Began compiling node test.ecom.not_null_stg_orders_order_date.2177a3e8bb -16:05:16.548719 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" -16:05:16.551137 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" -16:05:16.553290 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" -16:05:16.555154 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" -16:05:16.555702 [debug] [Thread-3 (]: Began executing node test.ecom.not_null_stg_orders_order_date.2177a3e8bb -16:05:16.556965 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" -16:05:16.557205 [debug] [Thread-4 (]: Began executing node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 -16:05:16.558658 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" -16:05:16.558885 [debug] [Thread-2 (]: Began executing node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 -16:05:16.560398 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" -16:05:16.560674 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 -16:05:16.561874 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" -16:05:16.562236 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" -16:05:16.562455 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" -16:05:16.562655 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" -16:05:16.562838 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: BEGIN -16:05:16.563029 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: BEGIN -16:05:16.563226 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" -16:05:16.563416 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: BEGIN -16:05:16.563605 [debug] [Thread-2 (]: Opening a new connection, currently in state closed -16:05:16.563777 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.563936 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: BEGIN -16:05:16.564089 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.564412 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.564640 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.564807 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.565032 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.565205 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9" -16:05:16.565381 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.565542 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2" -16:05:16.565706 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_date.2177a3e8bb" -16:05:16.565891 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - order_status as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_orders" - group by order_status - -) - -select * -from all_values -where value_field not in ( - 'pending','processing','shipped','delivered','cancelled','returned' -) - - - - - - - ) dbt_internal_test -16:05:16.566068 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5" -16:05:16.566251 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - payment_method as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_orders" - group by payment_method - -) - -select * -from all_values -where value_field not in ( - 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet' -) - - - - - - - ) dbt_internal_test -16:05:16.566461 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_orders_order_date.2177a3e8bb"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_date -from "ecom"."main_staging"."stg_orders" -where order_date is null - - - - - - - ) dbt_internal_test -16:05:16.566793 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select customer_id -from "ecom"."main_staging"."stg_orders" -where customer_id is null - - - - - - - ) dbt_internal_test -16:05:16.572073 [debug] [Thread-1 (]: SQL status: OK in 0.005 seconds -16:05:16.573274 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: ROLLBACK -16:05:16.573551 [debug] [Thread-2 (]: SQL status: OK in 0.007 seconds -16:05:16.573761 [debug] [Thread-4 (]: SQL status: OK in 0.007 seconds -16:05:16.574243 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_orders_customer_id.af79d5e4b5' -16:05:16.574498 [debug] [Thread-3 (]: SQL status: OK in 0.007 seconds -16:05:16.575243 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: ROLLBACK -16:05:16.575427 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_customer_id.af79d5e4b5: Close -16:05:16.576106 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: ROLLBACK -16:05:16.576634 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9' -16:05:16.577298 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: ROLLBACK -16:05:16.577588 [info ] [Thread-1 (]: 25 of 36 PASS not_null_stg_orders_customer_id .................................. [PASS in 0.03s] -16:05:16.578086 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2' -16:05:16.578259 [debug] [Thread-2 (]: On test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9: Close -16:05:16.578711 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.not_null_stg_orders_order_date.2177a3e8bb' -16:05:16.578958 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_orders_customer_id.af79d5e4b5 -16:05:16.579140 [debug] [Thread-4 (]: On test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2: Close -16:05:16.579328 [debug] [Thread-3 (]: On test.ecom.not_null_stg_orders_order_date.2177a3e8bb: Close -16:05:16.579587 [info ] [Thread-2 (]: 23 of 36 PASS accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned [PASS in 0.03s] -16:05:16.579826 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 -16:05:16.580170 [info ] [Thread-4 (]: 24 of 36 PASS accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet [PASS in 0.03s] -16:05:16.580433 [info ] [Thread-3 (]: 26 of 36 PASS not_null_stg_orders_order_date ................................... [PASS in 0.03s] -16:05:16.580697 [debug] [Thread-2 (]: Finished running node test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9 -16:05:16.580879 [info ] [Thread-1 (]: 27 of 36 START test not_null_stg_orders_order_id ............................... [RUN] -16:05:16.581148 [debug] [Thread-4 (]: Finished running node test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2 -16:05:16.581373 [debug] [Thread-3 (]: Finished running node test.ecom.not_null_stg_orders_order_date.2177a3e8bb -16:05:16.581560 [debug] [Thread-2 (]: Began running node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 -16:05:16.581772 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_orders_customer_id.af79d5e4b5, now test.ecom.not_null_stg_orders_order_id.81cfe2fe64) -16:05:16.581959 [debug] [Thread-4 (]: Began running node test.ecom.unique_stg_orders_order_id.e3b841c71a -16:05:16.582204 [info ] [Thread-2 (]: 28 of 36 START test relationships_stg_orders_customer_id__customer_id__ref_stg_customers_ [RUN] -16:05:16.582393 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 -16:05:16.582719 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9, now test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500) -16:05:16.582566 [info ] [Thread-4 (]: 29 of 36 START test unique_stg_orders_order_id ................................. [RUN] -16:05:16.585482 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" -16:05:16.585803 [debug] [Thread-2 (]: Began compiling node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 -16:05:16.586027 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2, now test.ecom.unique_stg_orders_order_id.e3b841c71a) -16:05:16.588705 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" -16:05:16.588915 [debug] [Thread-4 (]: Began compiling node test.ecom.unique_stg_orders_order_id.e3b841c71a -16:05:16.592028 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.unique_stg_orders_order_id.e3b841c71a" -16:05:16.592269 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 -16:05:16.593524 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" -16:05:16.593824 [debug] [Thread-2 (]: Began executing node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 -16:05:16.595061 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" -16:05:16.595271 [debug] [Thread-4 (]: Began executing node test.ecom.unique_stg_orders_order_id.e3b841c71a -16:05:16.596476 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.unique_stg_orders_order_id.e3b841c71a" -16:05:16.596750 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" -16:05:16.597018 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: BEGIN -16:05:16.597226 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" -16:05:16.597416 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.597603 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: BEGIN -16:05:16.597890 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_orders_order_id.e3b841c71a" -16:05:16.598070 [debug] [Thread-2 (]: Opening a new connection, currently in state closed -16:05:16.598250 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.598405 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: BEGIN -16:05:16.598618 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_orders_order_id.81cfe2fe64" -16:05:16.598788 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.598953 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.599124 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_orders_order_id.81cfe2fe64"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_id -from "ecom"."main_staging"."stg_orders" -where order_id is null - - - - - - - ) dbt_internal_test -16:05:16.599352 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500" -16:05:16.599583 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.599796 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select customer_id as from_field - from "ecom"."main_staging"."stg_orders" - where customer_id is not null -), - -parent as ( - select customer_id as to_field - from "ecom"."main_staging"."stg_customers" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test -16:05:16.600016 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_orders_order_id.e3b841c71a" -16:05:16.600354 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_orders_order_id.e3b841c71a"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - order_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_orders" -where order_id is not null -group by order_id -having count(*) > 1 - - - - - - - ) dbt_internal_test -16:05:16.603959 [debug] [Thread-1 (]: SQL status: OK in 0.004 seconds -16:05:16.605129 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: ROLLBACK -16:05:16.605365 [debug] [Thread-2 (]: SQL status: OK in 0.005 seconds -16:05:16.605576 [debug] [Thread-4 (]: SQL status: OK in 0.005 seconds -16:05:16.606136 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_orders_order_id.81cfe2fe64' -16:05:16.606362 [debug] [Thread-1 (]: On test.ecom.not_null_stg_orders_order_id.81cfe2fe64: Close -16:05:16.607064 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: ROLLBACK -16:05:16.607709 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: ROLLBACK -16:05:16.608028 [info ] [Thread-1 (]: 27 of 36 PASS not_null_stg_orders_order_id ..................................... [PASS in 0.03s] -16:05:16.608532 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.unique_stg_orders_order_id.e3b841c71a' -16:05:16.608991 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500' -16:05:16.609246 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_orders_order_id.81cfe2fe64 -16:05:16.609426 [debug] [Thread-4 (]: On test.ecom.unique_stg_orders_order_id.e3b841c71a: Close -16:05:16.609599 [debug] [Thread-2 (]: On test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500: Close -16:05:16.609927 [info ] [Thread-4 (]: 29 of 36 PASS unique_stg_orders_order_id ....................................... [PASS in 0.02s] -16:05:16.610403 [debug] [Thread-4 (]: Finished running node test.ecom.unique_stg_orders_order_id.e3b841c71a -16:05:16.610138 [info ] [Thread-2 (]: 28 of 36 PASS relationships_stg_orders_customer_id__customer_id__ref_stg_customers_ [PASS in 0.03s] -16:05:16.610737 [debug] [Thread-2 (]: Finished running node test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500 -16:05:16.611047 [debug] [Thread-3 (]: Began running node model.ecom.stg_order_items -16:05:16.611331 [info ] [Thread-3 (]: 30 of 36 START sql view model main_staging.stg_order_items ..................... [RUN] -16:05:16.611564 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_orders_order_date.2177a3e8bb, now model.ecom.stg_order_items) -16:05:16.611780 [debug] [Thread-3 (]: Began compiling node model.ecom.stg_order_items -16:05:16.613510 [debug] [Thread-3 (]: Writing injected SQL for node "model.ecom.stg_order_items" -16:05:16.613925 [debug] [Thread-3 (]: Began executing node model.ecom.stg_order_items -16:05:16.615655 [debug] [Thread-3 (]: Writing runtime sql for node "model.ecom.stg_order_items" -16:05:16.616063 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" -16:05:16.616226 [debug] [Thread-3 (]: On model.ecom.stg_order_items: BEGIN -16:05:16.616412 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.616810 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.616982 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" -16:05:16.617178 [debug] [Thread-3 (]: On model.ecom.stg_order_items: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_order_items"} */ - - - create view "ecom"."main_staging"."stg_order_items__dbt_tmp" as ( - /* - stg_order_items - --------------- - - Casts numeric columns - - Adds derived column: is_flash_sale flag when unit_price < list_price - - Filters items whose order_id no longer exists after stg_orders cleanup -*/ - -with source as ( - select * from "ecom"."raw"."order_items" -), - -valid_orders as ( - select order_id from "ecom"."main_staging"."stg_orders" -), - -casted as ( - -- cast first in a separate CTE so arithmetic below works on typed values - select - order_item_id, - order_id, - product_id, - seller_id, - cast(quantity as integer) as quantity, - cast(unit_price as decimal(10,2)) as unit_price, - cast(list_price as decimal(10,2)) as list_price, - cast(discount_pct as decimal(6,4)) as discount_pct - from source - where order_id in (select order_id from valid_orders) -), - -renamed as ( - select - order_item_id, - order_id, - product_id, - seller_id, - quantity, - unit_price, - list_price, - discount_pct, - unit_price < list_price as is_flash_sale, - round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue - from casted -) - -select * from renamed - ); - -16:05:16.618622 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.620334 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" -16:05:16.620527 [debug] [Thread-3 (]: On model.ecom.stg_order_items: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_order_items"} */ -alter view "ecom"."main_staging"."stg_order_items__dbt_tmp" rename to "stg_order_items" -16:05:16.620840 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.621584 [debug] [Thread-3 (]: On model.ecom.stg_order_items: COMMIT -16:05:16.621755 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" -16:05:16.621910 [debug] [Thread-3 (]: On model.ecom.stg_order_items: COMMIT -16:05:16.622378 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.623538 [debug] [Thread-3 (]: Using duckdb connection "model.ecom.stg_order_items" -16:05:16.623720 [debug] [Thread-3 (]: On model.ecom.stg_order_items: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "model.ecom.stg_order_items"} */ - - drop view if exists "ecom"."main_staging"."stg_order_items__dbt_backup" cascade - -16:05:16.623999 [debug] [Thread-3 (]: SQL status: OK in 0.000 seconds -16:05:16.624625 [debug] [Thread-3 (]: On model.ecom.stg_order_items: Close -16:05:16.624891 [debug] [Thread-3 (]: Sending event: {'category': 'dbt', 'action': 'run_model', 'label': 'c1e051fe-2da2-4723-894a-d9f18a60ef10', 'context': []} -16:05:16.625184 [info ] [Thread-3 (]: 30 of 36 OK created sql view model main_staging.stg_order_items ................ [OK in 0.01s] -16:05:16.625478 [debug] [Thread-3 (]: Finished running node model.ecom.stg_order_items -16:05:16.625835 [debug] [Thread-4 (]: Began running node test.ecom.not_null_stg_order_items_order_id.2063801f96 -16:05:16.626055 [debug] [Thread-2 (]: Began running node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 -16:05:16.626411 [debug] [Thread-1 (]: Began running node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 -16:05:16.626244 [info ] [Thread-4 (]: 31 of 36 START test not_null_stg_order_items_order_id .......................... [RUN] -16:05:16.626659 [debug] [Thread-3 (]: Began running node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 -16:05:16.626826 [info ] [Thread-2 (]: 32 of 36 START test not_null_stg_order_items_order_item_id ..................... [RUN] -16:05:16.626981 [info ] [Thread-1 (]: 33 of 36 START test not_null_stg_order_items_product_id ........................ [RUN] -16:05:16.627258 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.unique_stg_orders_order_id.e3b841c71a, now test.ecom.not_null_stg_order_items_order_id.2063801f96) -16:05:16.627681 [debug] [Thread-2 (]: Re-using an available connection from the pool (formerly test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500, now test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35) -16:05:16.627442 [info ] [Thread-3 (]: 34 of 36 START test relationships_stg_order_items_order_id__order_id__ref_stg_orders_ [RUN] -16:05:16.627918 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_orders_order_id.81cfe2fe64, now test.ecom.not_null_stg_order_items_product_id.5154a8a6f6) -16:05:16.628090 [debug] [Thread-4 (]: Began compiling node test.ecom.not_null_stg_order_items_order_id.2063801f96 -16:05:16.628259 [debug] [Thread-2 (]: Began compiling node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 -16:05:16.628434 [debug] [Thread-3 (]: Re-using an available connection from the pool (formerly model.ecom.stg_order_items, now test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54) -16:05:16.628596 [debug] [Thread-1 (]: Began compiling node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 -16:05:16.630683 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.not_null_stg_order_items_order_id.2063801f96" -16:05:16.632675 [debug] [Thread-2 (]: Writing injected SQL for node "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" -16:05:16.632883 [debug] [Thread-3 (]: Began compiling node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 -16:05:16.636396 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" -16:05:16.639120 [debug] [Thread-3 (]: Writing injected SQL for node "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" -16:05:16.639567 [debug] [Thread-4 (]: Began executing node test.ecom.not_null_stg_order_items_order_id.2063801f96 -16:05:16.639782 [debug] [Thread-2 (]: Began executing node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 -16:05:16.639966 [debug] [Thread-1 (]: Began executing node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 -16:05:16.641253 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.not_null_stg_order_items_order_id.2063801f96" -16:05:16.642413 [debug] [Thread-2 (]: Writing runtime sql for node "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" -16:05:16.643662 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" -16:05:16.643881 [debug] [Thread-3 (]: Began executing node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 -16:05:16.645166 [debug] [Thread-3 (]: Writing runtime sql for node "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" -16:05:16.645473 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_id.2063801f96" -16:05:16.645673 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" -16:05:16.645948 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: BEGIN -16:05:16.646158 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" -16:05:16.646358 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: BEGIN -16:05:16.646541 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.646722 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" -16:05:16.646887 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: BEGIN -16:05:16.647045 [debug] [Thread-2 (]: Opening a new connection, currently in state closed -16:05:16.647303 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: BEGIN -16:05:16.647475 [debug] [Thread-3 (]: Opening a new connection, currently in state closed -16:05:16.647652 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.647881 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.648091 [debug] [Thread-2 (]: SQL status: OK in 0.001 seconds -16:05:16.648265 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_id.2063801f96" -16:05:16.648427 [debug] [Thread-3 (]: SQL status: OK in 0.001 seconds -16:05:16.648620 [debug] [Thread-2 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35" -16:05:16.648802 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_order_items_order_id.2063801f96"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_id -from "ecom"."main_staging"."stg_order_items" -where order_id is null - - - - - - - ) dbt_internal_test -16:05:16.648977 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.649132 [debug] [Thread-3 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54" -16:05:16.649301 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_item_id -from "ecom"."main_staging"."stg_order_items" -where order_item_id is null - - - - - - - ) dbt_internal_test -16:05:16.649542 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6" -16:05:16.649745 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select order_id as from_field - from "ecom"."main_staging"."stg_order_items" - where order_id is not null -), - -parent as ( - select order_id as to_field - from "ecom"."main_staging"."stg_orders" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test -16:05:16.650178 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select product_id -from "ecom"."main_staging"."stg_order_items" -where product_id is null - - - - - - - ) dbt_internal_test -16:05:16.656506 [debug] [Thread-1 (]: SQL status: OK in 0.006 seconds -16:05:16.656784 [debug] [Thread-2 (]: SQL status: OK in 0.007 seconds -16:05:16.656995 [debug] [Thread-4 (]: SQL status: OK in 0.008 seconds -16:05:16.658159 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: ROLLBACK -16:05:16.658904 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: ROLLBACK -16:05:16.659634 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: ROLLBACK -16:05:16.660157 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.not_null_stg_order_items_product_id.5154a8a6f6' -16:05:16.660361 [debug] [Thread-1 (]: On test.ecom.not_null_stg_order_items_product_id.5154a8a6f6: Close -16:05:16.660804 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.not_null_stg_order_items_order_id.2063801f96' -16:05:16.660984 [debug] [Thread-4 (]: On test.ecom.not_null_stg_order_items_order_id.2063801f96: Close -16:05:16.661284 [info ] [Thread-1 (]: 33 of 36 PASS not_null_stg_order_items_product_id .............................. [PASS in 0.03s] -16:05:16.661564 [debug] [Thread-1 (]: Finished running node test.ecom.not_null_stg_order_items_product_id.5154a8a6f6 -16:05:16.661761 [debug] [Thread-1 (]: Began running node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c -16:05:16.661936 [info ] [Thread-1 (]: 35 of 36 START test relationships_stg_order_items_product_id__product_id__ref_stg_products_ [RUN] -16:05:16.662207 [info ] [Thread-4 (]: 31 of 36 PASS not_null_stg_order_items_order_id ................................ [PASS in 0.03s] -16:05:16.662487 [debug] [Thread-1 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_order_items_product_id.5154a8a6f6, now test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c) -16:05:16.662680 [debug] [Thread-3 (]: SQL status: OK in 0.012 seconds -16:05:16.663193 [debug] [Thread-2 (]: Failed to rollback 'test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35' -16:05:16.663438 [debug] [Thread-4 (]: Finished running node test.ecom.not_null_stg_order_items_order_id.2063801f96 -16:05:16.663630 [debug] [Thread-1 (]: Began compiling node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c -16:05:16.663867 [debug] [Thread-2 (]: On test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35: Close -16:05:16.664087 [debug] [Thread-4 (]: Began running node test.ecom.unique_stg_order_items_order_item_id.90e333a108 -16:05:16.664954 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: ROLLBACK -16:05:16.667979 [debug] [Thread-1 (]: Writing injected SQL for node "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" -16:05:16.668373 [info ] [Thread-2 (]: 32 of 36 PASS not_null_stg_order_items_order_item_id ........................... [PASS in 0.04s] -16:05:16.668605 [info ] [Thread-4 (]: 36 of 36 START test unique_stg_order_items_order_item_id ....................... [RUN] -16:05:16.669153 [debug] [Thread-3 (]: Failed to rollback 'test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54' -16:05:16.669426 [debug] [Thread-2 (]: Finished running node test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35 -16:05:16.669646 [debug] [Thread-4 (]: Re-using an available connection from the pool (formerly test.ecom.not_null_stg_order_items_order_id.2063801f96, now test.ecom.unique_stg_order_items_order_item_id.90e333a108) -16:05:16.669890 [debug] [Thread-3 (]: On test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54: Close -16:05:16.670123 [debug] [Thread-4 (]: Began compiling node test.ecom.unique_stg_order_items_order_item_id.90e333a108 -16:05:16.670308 [debug] [Thread-1 (]: Began executing node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c -16:05:16.670581 [info ] [Thread-3 (]: 34 of 36 PASS relationships_stg_order_items_order_id__order_id__ref_stg_orders_ [PASS in 0.04s] -16:05:16.672582 [debug] [Thread-4 (]: Writing injected SQL for node "test.ecom.unique_stg_order_items_order_item_id.90e333a108" -16:05:16.674065 [debug] [Thread-1 (]: Writing runtime sql for node "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" -16:05:16.674359 [debug] [Thread-3 (]: Finished running node test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54 -16:05:16.674789 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" -16:05:16.674990 [debug] [Thread-4 (]: Began executing node test.ecom.unique_stg_order_items_order_item_id.90e333a108 -16:05:16.675175 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: BEGIN -16:05:16.676368 [debug] [Thread-4 (]: Writing runtime sql for node "test.ecom.unique_stg_order_items_order_item_id.90e333a108" -16:05:16.676564 [debug] [Thread-1 (]: Opening a new connection, currently in state closed -16:05:16.676951 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_order_items_order_item_id.90e333a108" -16:05:16.677129 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: BEGIN -16:05:16.677296 [debug] [Thread-1 (]: SQL status: OK in 0.001 seconds -16:05:16.677456 [debug] [Thread-4 (]: Opening a new connection, currently in state closed -16:05:16.677621 [debug] [Thread-1 (]: Using duckdb connection "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c" -16:05:16.677862 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select product_id as from_field - from "ecom"."main_staging"."stg_order_items" - where product_id is not null -), - -parent as ( - select product_id as to_field - from "ecom"."main_staging"."stg_products" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test -16:05:16.678127 [debug] [Thread-4 (]: SQL status: OK in 0.001 seconds -16:05:16.678285 [debug] [Thread-4 (]: Using duckdb connection "test.ecom.unique_stg_order_items_order_item_id.90e333a108" -16:05:16.678451 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: /* {"app": "dbt", "dbt_version": "1.11.8", "profile_name": "ecom", "target_name": "dev", "node_id": "test.ecom.unique_stg_order_items_order_item_id.90e333a108"} */ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - order_item_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_order_items" -where order_item_id is not null -group by order_item_id -having count(*) > 1 - - - - - - - ) dbt_internal_test -16:05:16.684433 [debug] [Thread-1 (]: SQL status: OK in 0.006 seconds -16:05:16.684726 [debug] [Thread-4 (]: SQL status: OK in 0.006 seconds -16:05:16.685823 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: ROLLBACK -16:05:16.686559 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: ROLLBACK -16:05:16.687064 [debug] [Thread-4 (]: Failed to rollback 'test.ecom.unique_stg_order_items_order_item_id.90e333a108' -16:05:16.687245 [debug] [Thread-4 (]: On test.ecom.unique_stg_order_items_order_item_id.90e333a108: Close -16:05:16.687687 [debug] [Thread-1 (]: Failed to rollback 'test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c' -16:05:16.688010 [info ] [Thread-4 (]: 36 of 36 PASS unique_stg_order_items_order_item_id ............................. [PASS in 0.02s] -16:05:16.688225 [debug] [Thread-1 (]: On test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c: Close -16:05:16.688493 [debug] [Thread-4 (]: Finished running node test.ecom.unique_stg_order_items_order_item_id.90e333a108 -16:05:16.688780 [info ] [Thread-1 (]: 35 of 36 PASS relationships_stg_order_items_product_id__product_id__ref_stg_products_ [PASS in 0.03s] -16:05:16.689071 [debug] [Thread-1 (]: Finished running node test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c -16:05:16.689676 [debug] [MainThread]: Using duckdb connection "master" -16:05:16.689840 [debug] [MainThread]: On master: BEGIN -16:05:16.689972 [debug] [MainThread]: Opening a new connection, currently in state closed -16:05:16.690282 [debug] [MainThread]: SQL status: OK in 0.000 seconds -16:05:16.690425 [debug] [MainThread]: On master: COMMIT -16:05:16.690565 [debug] [MainThread]: Using duckdb connection "master" -16:05:16.690691 [debug] [MainThread]: On master: COMMIT -16:05:16.690894 [debug] [MainThread]: SQL status: OK in 0.000 seconds -16:05:16.691032 [debug] [MainThread]: On master: Close -16:05:16.691206 [debug] [MainThread]: Connection 'master' was properly closed. -16:05:16.691331 [debug] [MainThread]: Connection 'test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c' was properly closed. -16:05:16.691449 [debug] [MainThread]: Connection 'test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35' was properly closed. -16:05:16.691567 [debug] [MainThread]: Connection 'test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54' was properly closed. -16:05:16.691682 [debug] [MainThread]: Connection 'test.ecom.unique_stg_order_items_order_item_id.90e333a108' was properly closed. -16:05:16.691846 [info ] [MainThread]: -16:05:16.692000 [info ] [MainThread]: Finished running 30 data tests, 6 view models in 0 hours 0 minutes and 0.50 seconds (0.50s). -16:05:16.694112 [debug] [MainThread]: Command end result -16:05:16.715458 [debug] [MainThread]: Wrote artifact WritableManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/manifest.json -16:05:16.717345 [debug] [MainThread]: Wrote artifact SemanticManifest to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/semantic_manifest.json -16:05:16.721519 [debug] [MainThread]: Wrote artifact RunExecutionResult to /Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/target/run_results.json -16:05:16.721749 [info ] [MainThread]: -16:05:16.721959 [info ] [MainThread]: Completed successfully -16:05:16.722130 [info ] [MainThread]: -16:05:16.722395 [info ] [MainThread]: Done. PASS=36 WARN=0 ERROR=0 SKIP=0 NO-OP=0 TOTAL=36 -16:05:16.722921 [warn ] [MainThread]: [WARNING][DeprecationsSummary]: Deprecated functionality -Summary of encountered deprecations: -- MissingArgumentsPropertyInGenericTestDeprecation: 9 occurrences -To see all deprecation instances instead of just the first occurrence of each, -run command again with the `--show-all-deprecations` flag. You may also need to -run with `--no-partial-parse` as some deprecations are only encountered during -parsing. -16:05:16.725464 [debug] [MainThread]: Resource report: {"command_name": "build", "command_success": true, "command_wall_clock_time": 1.5960253, "process_in_blocks": "0", "process_kernel_time": 0.242465, "process_mem_max_rss": "200523776", "process_out_blocks": "0", "process_user_time": 2.254767} -16:05:16.725735 [debug] [MainThread]: Command `dbt build` succeeded at 16:05:16.725690 after 1.60 seconds -16:05:16.725957 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} -16:05:16.726148 [debug] [MainThread]: Flushing usage events -16:05:22.257478 [debug] [MainThread]: An error was encountered while trying to flush usage events diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql deleted file mode 100644 index 04a9e27..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql +++ /dev/null @@ -1,22 +0,0 @@ - - - - -with all_values as ( - - select - customer_tier as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_customers" - group by customer_tier - -) - -select * -from all_values -where value_field not in ( - 'bronze','silver','gold' -) - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql deleted file mode 100644 index 79c7591..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql +++ /dev/null @@ -1,22 +0,0 @@ - - - - -with all_values as ( - - select - order_status as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_orders" - group by order_status - -) - -select * -from all_values -where value_field not in ( - 'pending','processing','shipped','delivered','cancelled','returned' -) - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql deleted file mode 100644 index fd879c4..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql +++ /dev/null @@ -1,22 +0,0 @@ - - - - -with all_values as ( - - select - payment_method as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_orders" - group by payment_method - -) - -select * -from all_values -where value_field not in ( - 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet' -) - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql deleted file mode 100644 index 7546e56..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql +++ /dev/null @@ -1,22 +0,0 @@ - - - - -with all_values as ( - - select - device_type as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_sessions" - group by device_type - -) - -select * -from all_values -where value_field not in ( - 'mobile','desktop','tablet' -) - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql deleted file mode 100644 index cc412cc..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql +++ /dev/null @@ -1,22 +0,0 @@ - - - - -with all_values as ( - - select - platform as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_sessions" - group by platform - -) - -select * -from all_values -where value_field not in ( - 'ios','android','web' -) - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql deleted file mode 100644 index 1728252..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select customer_id -from "ecom"."main_staging"."stg_customers" -where customer_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql deleted file mode 100644 index 736df14..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select email -from "ecom"."main_staging"."stg_customers" -where email is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql deleted file mode 100644 index 280c456..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select signup_date -from "ecom"."main_staging"."stg_customers" -where signup_date is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql deleted file mode 100644 index d6e2195..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select order_id -from "ecom"."main_staging"."stg_order_items" -where order_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql deleted file mode 100644 index 1a723ad..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select order_item_id -from "ecom"."main_staging"."stg_order_items" -where order_item_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql deleted file mode 100644 index fcf94a9..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select product_id -from "ecom"."main_staging"."stg_order_items" -where product_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql deleted file mode 100644 index 94ff02c..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select customer_id -from "ecom"."main_staging"."stg_orders" -where customer_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql deleted file mode 100644 index 87a0c25..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select order_date -from "ecom"."main_staging"."stg_orders" -where order_date is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql deleted file mode 100644 index cad3270..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select order_id -from "ecom"."main_staging"."stg_orders" -where order_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql deleted file mode 100644 index d8dbc92..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select product_id -from "ecom"."main_staging"."stg_products" -where product_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql deleted file mode 100644 index 86c6421..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select seller_id -from "ecom"."main_staging"."stg_products" -where seller_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql deleted file mode 100644 index c4bd486..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select rating -from "ecom"."main_staging"."stg_sellers" -where rating is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql deleted file mode 100644 index b172483..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select seller_id -from "ecom"."main_staging"."stg_sellers" -where seller_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql deleted file mode 100644 index 6e0574b..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -select session_id -from "ecom"."main_staging"."stg_sessions" -where session_id is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql deleted file mode 100644 index 946e79e..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - - -with child as ( - select product_id as from_field - from "ecom"."main_staging"."stg_order_items" - where product_id is not null -), - -parent as ( - select product_id as to_field - from "ecom"."main_staging"."stg_products" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql deleted file mode 100644 index e31f44f..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - - -with child as ( - select order_id as from_field - from "ecom"."main_staging"."stg_order_items" - where order_id is not null -), - -parent as ( - select order_id as to_field - from "ecom"."main_staging"."stg_orders" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql deleted file mode 100644 index 16c77fc..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - - -with child as ( - select customer_id as from_field - from "ecom"."main_staging"."stg_orders" - where customer_id is not null -), - -parent as ( - select customer_id as to_field - from "ecom"."main_staging"."stg_customers" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql deleted file mode 100644 index 312aa01..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - - -with child as ( - select seller_id as from_field - from "ecom"."main_staging"."stg_products" - where seller_id is not null -), - -parent as ( - select seller_id as to_field - from "ecom"."main_staging"."stg_sellers" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql deleted file mode 100644 index ce6db9f..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - -select - customer_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_customers" -where customer_id is not null -group by customer_id -having count(*) > 1 - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql deleted file mode 100644 index 24bdd0f..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - -select - email as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_customers" -where email is not null -group by email -having count(*) > 1 - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql deleted file mode 100644 index 26d3b0d..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - -select - order_item_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_order_items" -where order_item_id is not null -group by order_item_id -having count(*) > 1 - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql deleted file mode 100644 index 8ae865e..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - -select - order_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_orders" -where order_id is not null -group by order_id -having count(*) > 1 - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql deleted file mode 100644 index 46d2e72..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - -select - product_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_products" -where product_id is not null -group by product_id -having count(*) > 1 - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql deleted file mode 100644 index d4281b6..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - -select - seller_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_sellers" -where seller_id is not null -group by seller_id -having count(*) > 1 - - diff --git a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql b/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql deleted file mode 100644 index 2fd5ca7..0000000 --- a/ecom/target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - -select - session_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_sessions" -where session_id is not null -group by session_id -having count(*) > 1 - - diff --git a/ecom/target/compiled/ecom/models/staging/stg_customers.sql b/ecom/target/compiled/ecom/models/staging/stg_customers.sql deleted file mode 100644 index 87f8476..0000000 --- a/ecom/target/compiled/ecom/models/staging/stg_customers.sql +++ /dev/null @@ -1,57 +0,0 @@ -/* - stg_customers - ------------- - - Renames columns to project convention - - Casts signup_date to DATE - - Deduplicates re-registered customers (keeps the earliest signup per email) - - Replaces empty city strings with NULL - - Excludes soft-deleted records -*/ - -with source as ( - select * from "ecom"."raw"."customers" -), - -renamed as ( - select - customer_id, - first_name, - last_name, - lower(trim(email)) as email, - phone, - nullif(trim(city), '') as city, - country, - lower(customer_tier) as customer_tier, - cast(signup_date as date) as signup_date, - cast(is_deleted as boolean) as is_deleted - from source -), - -deduped as ( - -- Keep earliest signup per email (first registration wins) - select *, - row_number() over ( - partition by email - order by signup_date asc - ) as rn - from renamed -), - -final as ( - select - customer_id, - first_name, - last_name, - email, - phone, - city, - country, - customer_tier, - signup_date, - is_deleted - from deduped - where rn = 1 - and is_deleted = false -) - -select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_order_items.sql b/ecom/target/compiled/ecom/models/staging/stg_order_items.sql deleted file mode 100644 index 9240080..0000000 --- a/ecom/target/compiled/ecom/models/staging/stg_order_items.sql +++ /dev/null @@ -1,47 +0,0 @@ -/* - stg_order_items - --------------- - - Casts numeric columns - - Adds derived column: is_flash_sale flag when unit_price < list_price - - Filters items whose order_id no longer exists after stg_orders cleanup -*/ - -with source as ( - select * from "ecom"."raw"."order_items" -), - -valid_orders as ( - select order_id from "ecom"."main_staging"."stg_orders" -), - -casted as ( - -- cast first in a separate CTE so arithmetic below works on typed values - select - order_item_id, - order_id, - product_id, - seller_id, - cast(quantity as integer) as quantity, - cast(unit_price as decimal(10,2)) as unit_price, - cast(list_price as decimal(10,2)) as list_price, - cast(discount_pct as decimal(6,4)) as discount_pct - from source - where order_id in (select order_id from valid_orders) -), - -renamed as ( - select - order_item_id, - order_id, - product_id, - seller_id, - quantity, - unit_price, - list_price, - discount_pct, - unit_price < list_price as is_flash_sale, - round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue - from casted -) - -select * from renamed \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_orders.sql b/ecom/target/compiled/ecom/models/staging/stg_orders.sql deleted file mode 100644 index 8455c46..0000000 --- a/ecom/target/compiled/ecom/models/staging/stg_orders.sql +++ /dev/null @@ -1,55 +0,0 @@ -/* - stg_orders - ---------- - - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy). - We COALESCE two TRY_STRPTIME calls to handle both safely. - - Filters rows where the date cannot be parsed (data quality guard) - - Filters orphaned orders (customer_id not in stg_customers) - - Casts and standardises order_status and payment_method -*/ - -with source as ( - select * from "ecom"."raw"."orders" -), - -date_parsed as ( - select - order_id, - customer_id, - -- Try ISO first, then dd/mm/yyyy — whichever parses wins - coalesce( - try_strptime(order_date, '%Y-%m-%d'), - try_strptime(order_date, '%d/%m/%Y') - ) as order_date, - order_status, - payment_method, - shipping_city, - cast(discount_amount as decimal(10,2)) as discount_amount, - nullif(trim(coupon_code), '') as coupon_code, - lower(platform) as platform - from source -), - -valid_customers as ( - select customer_id from "ecom"."main_staging"."stg_customers" -), - -final as ( - select - o.order_id, - o.customer_id, - o.order_date, - o.order_status, - o.payment_method, - o.shipping_city, - o.discount_amount, - o.coupon_code, - o.platform - from date_parsed o - -- Drop unparseable dates - where o.order_date is not null - -- Drop orphaned customer_ids (referential integrity fix) - and o.customer_id in (select customer_id from valid_customers) -) - -select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_products.sql b/ecom/target/compiled/ecom/models/staging/stg_products.sql deleted file mode 100644 index adac662..0000000 --- a/ecom/target/compiled/ecom/models/staging/stg_products.sql +++ /dev/null @@ -1,33 +0,0 @@ -/* - stg_products - ------------ - - Casts price columns and boolean - - Derives gross_margin_pct for later mart use - - Filters inactive products are kept (marts can filter by is_active) -*/ - -with source as ( - select * from "ecom"."raw"."products" -), - -final as ( - select - product_id, - trim(product_name) as product_name, - trim(category) as category, - trim(subcategory) as subcategory, - seller_id, - cast(list_price as decimal(10,2)) as list_price, - cast(cost_price as decimal(10,2)) as cost_price, - round( - (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2))) - / nullif(cast(list_price as decimal(10,2)), 0), - 4 - ) as gross_margin_pct, - cast(is_active as boolean) as is_active, - cast(stock_qty as integer) as stock_qty, - cast(created_at as date) as created_at - from source -) - -select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_sellers.sql b/ecom/target/compiled/ecom/models/staging/stg_sellers.sql deleted file mode 100644 index 70bd81f..0000000 --- a/ecom/target/compiled/ecom/models/staging/stg_sellers.sql +++ /dev/null @@ -1,26 +0,0 @@ -/* - stg_sellers - ----------- - - Casts joined_date to DATE - - Casts is_verified to boolean - - Standardises category casing -*/ - -with source as ( - select * from "ecom"."raw"."sellers" -), - -final as ( - select - seller_id, - trim(seller_name) as seller_name, - trim(category) as category, - city, - cast(is_verified as boolean) as is_verified, - cast(joined_date as date) as joined_date, - cast(rating as decimal(3,1)) as rating, - cast(total_reviews as integer) as total_reviews - from source -) - -select * from final \ No newline at end of file diff --git a/ecom/target/compiled/ecom/models/staging/stg_sessions.sql b/ecom/target/compiled/ecom/models/staging/stg_sessions.sql deleted file mode 100644 index bb60785..0000000 --- a/ecom/target/compiled/ecom/models/staging/stg_sessions.sql +++ /dev/null @@ -1,28 +0,0 @@ -/* - stg_sessions - ------------ - - Null customer_id = anonymous session (kept, not filtered) - - Derives session_duration_mins for readability - - Casts is_converted to boolean -*/ - -with source as ( - select * from "ecom"."raw"."sessions" -), - -final as ( - select - session_id, - nullif(trim(customer_id), '') as customer_id, -- preserve anonymous - cast(session_date as date) as session_date, - lower(platform) as platform, - lower(device_type) as device_type, - cast(page_views as integer) as page_views, - cast(duration_seconds as integer) as duration_seconds, - round(cast(duration_seconds as decimal) / 60, 2) as duration_mins, - cast(is_converted as boolean) as is_converted, - nullif(trim(utm_source), '') as utm_source - from source -) - -select * from final \ No newline at end of file diff --git a/ecom/target/graph.gpickle b/ecom/target/graph.gpickle deleted file mode 100644 index 6e859872723f364f17cf365437bd2fb6c315bbf0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 40392 zcmdUYd#oJSc^_r*c`52;#gau)9#LYrm*(BO?}uJCMN)#S7ePvX!OCWK<_u?t`?%WK z<<+&z!bYS-PA5nUZ-dm06$fd70BO(yK~W(-^D=9RXO7zKQ43}E2K_u$!#|;=iofTRX19Z6W?vc&JN?TqbYAcD zCtp$T@#f@9INdNu_|&64d`;J1_ebVs_rt*fS5~Rk;Tzq7X*1jC^hX2Z+}OHu?kU3=4tfTC>Y&aYY!|QQyIQCXg z(Oap8F^24N#~%$%dSl=C&KD=@*1lo(ZKFT#b`7gD>M$QTvIgC8 zuTS*{dwXnT@`|Mp)b(CS-iQ2x{V3Dv(5vTy1FUbhyUd=v<*wq|{phucyLN3dcFQ=a zzd9KQca8f)*0V_kdlVxT3V(S}=-7o$>uw=VxGiL3jL6H<@o zk3-VMvy|$lV{HS{?+e4y!Z8g6MGE>KY{KQdtkNN-GOz5f8CK5yNZ@- z0U@I?Nn{+{DB=J8s zs~Oxgbo=a!?zu>)?lZxM;$oB^aD3uED<${FZ@HgvpL3sob>hBAqPQ<9ijCpG9$R=J zDnF9N!7x2V7+#t%x=CSlQ-!fc!jOdF z=Eyg4&t7_o%gVObd%g87{H^Yguzn&gEb$(isDh8iMRhb)RISd4^^)>B%nOsZQiS$) zn$W(U6x!EQh4y49G{CCQ3|>DMAB>2ElhHG`47=kvY$%ldjw9{<6yb^Q)g<_f|0piO zsZI%!;FASNcFHh4MRxC`$?kWOviqG>*)>Ua=ElbQCTl}eiORX`N`(`E*`UAG8;pTE zVRaTstp~$Nc7O=S1PcDPSVs4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(m_nyJoSSd)}7MFNlsVjNP%REJP7@qP9PZ1p@CxCGQNun`7iL`FitHOa&@SF*k;FT% z*TUIY>1Uq(r+Idvs!0w{g?UY$S1N7N;hx3wO8w1KY@Q-jIZt6cMQC*n9?zkaad3C5 Z)o1uc-{F 1\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_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_customers_customer_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_customers_customer_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa", "fqn": ["ecom", "staging", "not_null_stg_customers_customer_id"], "alias": "not_null_stg_customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql", "unrendered_config": {}, "created_at": 1775999115.9733179, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\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_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.unique_stg_customers_email.1ebcb2333e": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_customers_email", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_customers_email.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_customers_email.1ebcb2333e", "fqn": ["ecom", "staging", "unique_stg_customers_email"], "alias": "unique_stg_customers_email", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql", "unrendered_config": {}, "created_at": 1775999115.9741051, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n email as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is not null\ngroup by email\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "email", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "unique", "kwargs": {"column_name": "email", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_customers_email.d7cf761533": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_customers_email", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_customers_email.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_customers_email.d7cf761533", "fqn": ["ecom", "staging", "not_null_stg_customers_email"], "alias": "not_null_stg_customers_email", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql", "unrendered_config": {}, "created_at": 1775999115.9748638, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect email\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "email", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "email", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_customers_customer_tier__bronze__silver__gold", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40", "fqn": ["ecom", "staging", "accepted_values_stg_customers_customer_tier__bronze__silver__gold"], "alias": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql", "unrendered_config": {"alias": "accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14"}, "created_at": 1775999115.976356, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n customer_tier as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_customers\"\n group by customer_tier\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'bronze','silver','gold'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_tier", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["bronze", "silver", "gold"], "column_name": "customer_tier", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_customers_signup_date.ef12d9c335": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_customers_signup_date", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_customers_signup_date.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_customers_signup_date.ef12d9c335", "fqn": ["ecom", "staging", "not_null_stg_customers_signup_date"], "alias": "not_null_stg_customers_signup_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql", "unrendered_config": {}, "created_at": 1775999115.988385, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect signup_date\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere signup_date is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "signup_date", "file_key_name": "models.stg_customers", "attached_node": "model.ecom.stg_customers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "signup_date", "model": "{{ get_where_subquery(ref('stg_customers')) }}"}, "namespace": null}}, "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_sellers_seller_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_sellers_seller_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8", "fqn": ["ecom", "staging", "unique_stg_sellers_seller_id"], "alias": "unique_stg_sellers_seller_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql", "unrendered_config": {}, "created_at": 1775999115.98927, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n seller_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is not null\ngroup by seller_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_sellers", "attached_node": "model.ecom.stg_sellers", "test_metadata": {"name": "unique", "kwargs": {"column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_sellers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_sellers_seller_id.35d0bce315": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_sellers_seller_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_sellers_seller_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_sellers_seller_id.35d0bce315", "fqn": ["ecom", "staging", "not_null_stg_sellers_seller_id"], "alias": "not_null_stg_sellers_seller_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql", "unrendered_config": {}, "created_at": 1775999115.990052, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_sellers", "attached_node": "model.ecom.stg_sellers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_sellers')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_sellers_rating.973b52995f": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_sellers_rating", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_sellers_rating.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_sellers_rating.973b52995f", "fqn": ["ecom", "staging", "not_null_stg_sellers_rating"], "alias": "not_null_stg_sellers_rating", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql", "unrendered_config": {}, "created_at": 1775999115.9908109, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect rating\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere rating is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "rating", "file_key_name": "models.stg_sellers", "attached_node": "model.ecom.stg_sellers", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "rating", "model": "{{ get_where_subquery(ref('stg_sellers')) }}"}, "namespace": null}}, "test.ecom.unique_stg_products_product_id.7d950a1467": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_products_product_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_products_product_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_products_product_id.7d950a1467", "fqn": ["ecom", "staging", "unique_stg_products_product_id"], "alias": "unique_stg_products_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": "target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql", "unrendered_config": {}, "created_at": 1775999115.991675, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n product_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere product_id is not null\ngroup by product_id\nhaving count(*) > 1\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_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "unique", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_products_product_id.6373b0acf3": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_products_product_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_products_product_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_products_product_id.6373b0acf3", "fqn": ["ecom", "staging", "not_null_stg_products_product_id"], "alias": "not_null_stg_products_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql", "unrendered_config": {}, "created_at": 1775999115.992436, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\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_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_products_seller_id.0ba77d68d6": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_products_seller_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_products_seller_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_products_seller_id.0ba77d68d6", "fqn": ["ecom", "staging", "not_null_stg_products_seller_id"], "alias": "not_null_stg_products_seller_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql", "unrendered_config": {}, "created_at": 1775999115.993217, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere seller_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_products_seller_id__seller_id__ref_stg_sellers_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "fqn": ["ecom", "staging", "relationships_stg_products_seller_id__seller_id__ref_stg_sellers_"], "alias": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql", "unrendered_config": {"alias": "relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620"}, "created_at": 1775999115.9940329, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sellers", "package": null, "version": null}, {"name": "stg_products", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sellers", "model.ecom.stg_products"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select seller_id as from_field\n from \"ecom\".\"main_staging\".\"stg_products\"\n where seller_id is not null\n),\n\nparent as (\n select seller_id as to_field\n from \"ecom\".\"main_staging\".\"stg_sellers\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "seller_id", "file_key_name": "models.stg_products", "attached_node": "model.ecom.stg_products", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_sellers')", "field": "seller_id", "column_name": "seller_id", "model": "{{ get_where_subquery(ref('stg_products')) }}"}, "namespace": null}}, "test.ecom.unique_stg_orders_order_id.e3b841c71a": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_orders_order_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_orders_order_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_orders_order_id.e3b841c71a", "fqn": ["ecom", "staging", "unique_stg_orders_order_id"], "alias": "unique_stg_orders_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": "target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql", "unrendered_config": {}, "created_at": 1775999115.997878, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_id is not null\ngroup by order_id\nhaving count(*) > 1\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_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_orders_order_id.81cfe2fe64": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_orders_order_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_orders_order_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_orders_order_id.81cfe2fe64", "fqn": ["ecom", "staging", "not_null_stg_orders_order_id"], "alias": "not_null_stg_orders_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql", "unrendered_config": {}, "created_at": 1775999115.998664, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\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_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_orders_customer_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_orders_customer_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5", "fqn": ["ecom", "staging", "not_null_stg_orders_customer_id"], "alias": "not_null_stg_orders_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql", "unrendered_config": {}, "created_at": 1775999115.999428, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\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_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_orders_customer_id__customer_id__ref_stg_customers_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "fqn": ["ecom", "staging", "relationships_stg_orders_customer_id__customer_id__ref_stg_customers_"], "alias": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql", "unrendered_config": {"alias": "relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0"}, "created_at": 1775999116.001157, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_customers", "package": null, "version": null}, {"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_customers", "model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select customer_id as from_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\n where customer_id is not null\n),\n\nparent as (\n select customer_id as to_field\n from \"ecom\".\"main_staging\".\"stg_customers\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "customer_id", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_customers')", "field": "customer_id", "column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_orders_order_date.2177a3e8bb": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_orders_order_date", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_orders_order_date.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_orders_order_date.2177a3e8bb", "fqn": ["ecom", "staging", "not_null_stg_orders_order_date"], "alias": "not_null_stg_orders_order_date", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql", "unrendered_config": {}, "created_at": 1775999116.003506, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_date\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_date is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_date", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_date", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9", "fqn": ["ecom", "staging", "accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned"], "alias": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql", "unrendered_config": {"alias": "accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48"}, "created_at": 1775999116.004304, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n order_status as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by order_status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','processing','shipped','delivered','cancelled','returned'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_status", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["pending", "processing", "shipped", "delivered", "cancelled", "returned"], "column_name": "order_status", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2", "fqn": ["ecom", "staging", "accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet"], "alias": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql", "unrendered_config": {"alias": "accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa"}, "created_at": 1775999116.00728, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_method as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by payment_method\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "payment_method", "file_key_name": "models.stg_orders", "attached_node": "model.ecom.stg_orders", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["credit_card", "debit_card", "bank_transfer", "cash_on_delivery", "wallet"], "column_name": "payment_method", "model": "{{ get_where_subquery(ref('stg_orders')) }}"}, "namespace": null}}, "test.ecom.unique_stg_order_items_order_item_id.90e333a108": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_order_items_order_item_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_order_items_order_item_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_order_items_order_item_id.90e333a108", "fqn": ["ecom", "staging", "unique_stg_order_items_order_item_id"], "alias": "unique_stg_order_items_order_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": "target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql", "unrendered_config": {}, "created_at": 1775999116.00999, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_item_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is not null\ngroup by order_item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_item_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "unique", "kwargs": {"column_name": "order_item_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_order_items_order_item_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_order_items_order_item_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35", "fqn": ["ecom", "staging", "not_null_stg_order_items_order_item_id"], "alias": "not_null_stg_order_items_order_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql", "unrendered_config": {}, "created_at": 1775999116.010766, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_item_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_item_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_item_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_order_items_order_id.2063801f96": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_order_items_order_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_order_items_order_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_order_items_order_id.2063801f96", "fqn": ["ecom", "staging", "not_null_stg_order_items_order_id"], "alias": "not_null_stg_order_items_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql", "unrendered_config": {}, "created_at": 1775999116.011617, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\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_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_order_items_order_id__order_id__ref_stg_orders_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "fqn": ["ecom", "staging", "relationships_stg_order_items_order_id__order_id__ref_stg_orders_"], "alias": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql", "unrendered_config": {"alias": "relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0"}, "created_at": 1775999116.012415, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_orders", "package": null, "version": null}, {"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_orders", "model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select order_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where order_id is not null\n),\n\nparent as (\n select order_id as to_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "order_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_orders')", "field": "order_id", "column_name": "order_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_order_items_product_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_order_items_product_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6", "fqn": ["ecom", "staging", "not_null_stg_order_items_product_id"], "alias": "not_null_stg_order_items_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": "target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql", "unrendered_config": {}, "created_at": 1775999116.014642, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\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_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "relationships_stg_order_items_product_id__product_id__ref_stg_products_", "resource_type": "test", "package_name": "ecom", "path": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "fqn": ["ecom", "staging", "relationships_stg_order_items_product_id__product_id__ref_stg_products_"], "alias": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql", "unrendered_config": {"alias": "relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f"}, "created_at": 1775999116.015541, "relation_name": null, "raw_code": "{{ test_relationships(**_dbt_generic_test_kwargs) }}{{ config(alias=\"relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_products", "package": null, "version": null}, {"name": "stg_order_items", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_relationships", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_products", "model.ecom.stg_order_items"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select product_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where product_id is not null\n),\n\nparent as (\n select product_id as to_field\n from \"ecom\".\"main_staging\".\"stg_products\"\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\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "product_id", "file_key_name": "models.stg_order_items", "attached_node": "model.ecom.stg_order_items", "test_metadata": {"name": "relationships", "kwargs": {"to": "ref('stg_products')", "field": "product_id", "column_name": "product_id", "model": "{{ get_where_subquery(ref('stg_order_items')) }}"}, "namespace": null}}, "test.ecom.unique_stg_sessions_session_id.ce45726d03": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "unique_stg_sessions_session_id", "resource_type": "test", "package_name": "ecom", "path": "unique_stg_sessions_session_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.unique_stg_sessions_session_id.ce45726d03", "fqn": ["ecom", "staging", "unique_stg_sessions_session_id"], "alias": "unique_stg_sessions_session_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql", "unrendered_config": {}, "created_at": 1775999116.017781, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is not null\ngroup by session_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "session_id", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "unique", "kwargs": {"column_name": "session_id", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}, "test.ecom.not_null_stg_sessions_session_id.2e872a126d": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "not_null_stg_sessions_session_id", "resource_type": "test", "package_name": "ecom", "path": "not_null_stg_sessions_session_id.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.not_null_stg_sessions_session_id.2e872a126d", "fqn": ["ecom", "staging", "not_null_stg_sessions_session_id"], "alias": "not_null_stg_sessions_session_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql", "unrendered_config": {}, "created_at": 1775999116.018548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_id\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "session_id", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "session_id", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_sessions_platform__ios__android__web", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_sessions_platform__ios__android__web.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e", "fqn": ["ecom", "staging", "accepted_values_stg_sessions_platform__ios__android__web"], "alias": "accepted_values_stg_sessions_platform__ios__android__web", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql", "unrendered_config": {}, "created_at": 1775999116.019422, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n platform as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by platform\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'ios','android','web'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "platform", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["ios", "android", "web"], "column_name": "platform", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}, "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4": {"database": "ecom", "schema": "main_dbt_test__audit", "name": "accepted_values_stg_sessions_device_type__mobile__desktop__tablet", "resource_type": "test", "package_name": "ecom", "path": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql", "original_file_path": "models/staging/_schema.yml", "unique_id": "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4", "fqn": ["ecom", "staging", "accepted_values_stg_sessions_device_type__mobile__desktop__tablet"], "alias": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": "target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql", "unrendered_config": {"alias": "accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537"}, "created_at": 1775999116.021766, "relation_name": null, "raw_code": "{{ test_accepted_values(**_dbt_generic_test_kwargs) }}{{ config(alias=\"accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537\") }}", "doc_blocks": [], "language": "sql", "refs": [{"name": "stg_sessions", "package": null, "version": null}], "sources": [], "metrics": [], "functions": [], "depends_on": {"macros": ["macro.dbt.test_accepted_values", "macro.dbt.get_where_subquery", "macro.dbt.get_limit_subquery_sql", "macro.dbt.should_store_failures", "macro.dbt.statement"], "nodes": ["model.ecom.stg_sessions"]}, "compiled_path": "target/compiled/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n device_type as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by device_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'mobile','desktop','tablet'\n)\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "device_type", "file_key_name": "models.stg_sessions", "attached_node": "model.ecom.stg_sessions", "test_metadata": {"name": "accepted_values", "kwargs": {"values": ["mobile", "desktop", "tablet"], "column_name": "device_type", "model": "{{ get_where_subquery(ref('stg_sessions')) }}"}, "namespace": null}}}, "sources": {"source.ecom.raw.customers": {"database": "ecom", "schema": "raw", "name": "customers", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.customers", "fqn": ["ecom", "staging", "raw", "customers"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "customers", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw customer registrations \u2014 contains duplicates and null cities", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"customers\"", "created_at": 1775999116.0698712, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.sellers": {"database": "ecom", "schema": "raw", "name": "sellers", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.sellers", "fqn": ["ecom", "staging", "raw", "sellers"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "sellers", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw seller accounts", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"sellers\"", "created_at": 1775999116.070598, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.products": {"database": "ecom", "schema": "raw", "name": "products", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.products", "fqn": ["ecom", "staging", "raw", "products"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "products", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw product listings with cost and list price", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"products\"", "created_at": 1775999116.070837, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.orders": {"database": "ecom", "schema": "raw", "name": "orders", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.orders", "fqn": ["ecom", "staging", "raw", "orders"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "orders", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw orders \u2014 mixed date formats (ISO and dd/mm/yyyy)", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"orders\"", "created_at": 1775999116.0710552, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.order_items": {"database": "ecom", "schema": "raw", "name": "order_items", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.order_items", "fqn": ["ecom", "staging", "raw", "order_items"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "order_items", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw order line items \u2014 unit price may differ from list price", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"order_items\"", "created_at": 1775999116.0712671, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}, "source.ecom.raw.sessions": {"database": "ecom", "schema": "raw", "name": "sessions", "resource_type": "source", "package_name": "ecom", "path": "models/staging/_sources.yml", "original_file_path": "models/staging/_sources.yml", "unique_id": "source.ecom.raw.sessions", "fqn": ["ecom", "staging", "raw", "sessions"], "source_name": "raw", "source_description": "Raw CSV files loaded into DuckDB from data/raw/", "loader": "", "identifier": "sessions", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "loaded_at_query": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Raw app/web sessions \u2014 20% anonymous (null customer_id)", "columns": {}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true, "event_time": null, "freshness": {"warn_after": {"count": null, "period": 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": "\"ecom\".\"raw\".\"sessions\"", "created_at": 1775999116.071475, "unrendered_database": null, "unrendered_schema": "raw", "doc_blocks": []}}, "macros": {"macro.dbt_duckdb.duckdb__get_binding_char": {"name": "duckdb__get_binding_char", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/seed.sql", "original_file_path": "macros/seed.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_binding_char", "macro_sql": "{% macro duckdb__get_binding_char() %}\n {{ return(adapter.get_binding_char()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.414221, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_batch_size": {"name": "duckdb__get_batch_size", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/seed.sql", "original_file_path": "macros/seed.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_batch_size", "macro_sql": "{% macro duckdb__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.41435, "supported_languages": null}, "macro.dbt_duckdb.duckdb__load_csv_rows": {"name": "duckdb__load_csv_rows", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/seed.sql", "original_file_path": "macros/seed.sql", "unique_id": "macro.dbt_duckdb.duckdb__load_csv_rows", "macro_sql": "{% macro duckdb__load_csv_rows(model, agate_table) %}\n {% if config.get('fast', true) %}\n {% set seed_file_path = adapter.get_seed_file_path(model) %}\n {% set delimiter = config.get('delimiter', ',') %}\n {% set sql %}\n COPY {{ this.render() }} FROM '{{ seed_file_path }}' (FORMAT CSV, HEADER TRUE, DELIMITER '{{ delimiter }}')\n {% endset %}\n {% do adapter.add_query(sql, abridge_sql_log=True) %}\n {{ return(sql) }}\n {% endif %}\n\n {% set batch_size = get_batch_size() %}\n {% set agate_table = adapter.convert_datetimes_to_strs(agate_table) %}\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.415773, "supported_languages": null}, "macro.dbt_duckdb.duckdb__snapshot_merge_sql": {"name": "duckdb__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/snapshot_helper.sql", "original_file_path": "macros/snapshot_helper.sql", "unique_id": "macro.dbt_duckdb.duckdb__snapshot_merge_sql", "macro_sql": "{% macro duckdb__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 }} as DBT_INTERNAL_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 = DBT_INTERNAL_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 (DBT_INTERNAL_TARGET.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }} or DBT_INTERNAL_TARGET.{{ columns.dbt_valid_to }} is null);\n {% else %}\n and DBT_INTERNAL_TARGET.{{ columns.dbt_valid_to }} is null;\n {% endif %}\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\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_snapshot_table_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.416752, "supported_languages": null}, "macro.dbt_duckdb.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/snapshot_helper.sql", "original_file_path": "macros/snapshot_helper.sql", "unique_id": "macro.dbt_duckdb.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(False, 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.417105, "supported_languages": null}, "macro.dbt_duckdb.duckdb__post_snapshot": {"name": "duckdb__post_snapshot", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/snapshot_helper.sql", "original_file_path": "macros/snapshot_helper.sql", "unique_id": "macro.dbt_duckdb.duckdb__post_snapshot", "macro_sql": "{% macro duckdb__post_snapshot(staging_relation) %}\n {% do return(drop_relation(staging_relation)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.417226, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_catalog": {"name": "duckdb__get_catalog", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_catalog", "macro_sql": "{% macro duckdb__get_catalog(information_schema, schemas) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n with relations AS (\n select\n t.table_name\n , t.database_name\n , t.schema_name\n , 'BASE TABLE' as table_type\n , t.comment as table_comment\n from duckdb_tables() t\n WHERE t.database_name = '{{ database }}'\n UNION ALL\n SELECT v.view_name as table_name\n , v.database_name\n , v.schema_name\n , 'VIEW' as table_type\n , v.comment as table_comment\n from duckdb_views() v\n WHERE v.database_name = '{{ database }}'\n )\n select\n '{{ database }}' as table_database,\n r.schema_name as table_schema,\n r.table_name,\n r.table_type,\n r.table_comment,\n c.column_name,\n c.column_index as column_index,\n c.data_type as column_type,\n c.comment as column_comment,\n NULL as table_owner\n FROM relations r JOIN duckdb_columns() c ON r.schema_name = c.schema_name AND r.table_name = c.table_name\n WHERE (\n {%- for schema in schemas -%}\n upper(r.schema_name) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ORDER BY\n r.schema_name,\n r.table_name,\n c.column_index\n {%- endcall -%}\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.417753, "supported_languages": null}, "macro.dbt_duckdb.duckdb__create_schema": {"name": "duckdb__create_schema", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__create_schema", "macro_sql": "{% macro duckdb__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n {% set sql %}\n select type from duckdb_databases()\n where lower(database_name)='{{ relation.database | lower }}'\n and type='sqlite'\n {% endset %}\n {% set results = run_query(sql) %}\n {% if results|length == 0 %}\n create schema if not exists {{ relation.without_identifier() }}\n {% else %}\n {% if relation.schema!='main' %}\n {{ exceptions.raise_compiler_error(\n \"Schema must be 'main' when writing to sqlite \"\n ~ \"instead got \" ~ relation.schema\n )}}\n {% endif %}\n {% endif %}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.419508, "supported_languages": null}, "macro.dbt_duckdb.duckdb__drop_schema": {"name": "duckdb__drop_schema", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__drop_schema", "macro_sql": "{% macro duckdb__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.419652, "supported_languages": null}, "macro.dbt_duckdb.duckdb__list_schemas": {"name": "duckdb__list_schemas", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__list_schemas", "macro_sql": "{% macro duckdb__list_schemas(database) -%}\n {% set sql %}\n select schema_name\n from system.information_schema.schemata\n {% if database is not none %}\n where lower(catalog_name) = '{{ database | lower }}'\n {% endif %}\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4198568, "supported_languages": null}, "macro.dbt_duckdb.duckdb__check_schema_exists": {"name": "duckdb__check_schema_exists", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__check_schema_exists", "macro_sql": "{% macro duckdb__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from system.information_schema.schemata\n where lower(schema_name) = '{{ schema | lower }}'\n and lower(catalog_name) = '{{ information_schema.database | lower }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.420049, "supported_languages": null}, "macro.dbt_duckdb.get_column_names": {"name": "get_column_names", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.get_column_names", "macro_sql": "{% macro get_column_names() %}\n {# loop through user_provided_columns to get column names #}\n {%- set user_provided_columns = model['columns'] -%}\n (\n {% for i in user_provided_columns %}\n {% set col = user_provided_columns[i] %}\n {{ col['name'] }} {{ \",\" if not loop.last }}\n {% endfor %}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4203022, "supported_languages": null}, "macro.dbt_duckdb.duckdb__create_table_as": {"name": "duckdb__create_table_as", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__create_table_as", "macro_sql": "{% macro duckdb__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(compiled_code) }}\n {% endif %}\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 {% if contract_config.enforced and not temporary %}\n {#-- DuckDB doesnt support constraints on temp tables --#}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} {{ get_column_names() }} (\n {{ get_select_subquery(compiled_code) }}\n );\n {% else %}\n as (\n {{ compiled_code }}\n );\n {% endif %}\n {%- elif language == 'python' -%}\n {{ py_write_table(temporary=temporary, relation=relation, compiled_code=compiled_code) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"duckdb__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt_duckdb.get_column_names", "macro.dbt.get_select_subquery", "macro.dbt_duckdb.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.421046, "supported_languages": null}, "macro.dbt_duckdb.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.py_write_table", "macro_sql": "{% macro py_write_table(temporary, relation, compiled_code) -%}\n{{ compiled_code }}\n\ndef materialize(df, con):\n try:\n import pyarrow\n pyarrow_available = True\n except ImportError:\n pyarrow_available = False\n finally:\n if pyarrow_available and isinstance(df, pyarrow.Table):\n # https://github.com/duckdb/duckdb/issues/6584\n import pyarrow.dataset\n tmp_name = '__dbt_python_model_df_' + '{{ relation.identifier }}'\n con.register(tmp_name, df)\n con.execute('create table {{ relation }} as select * from ' + tmp_name)\n con.unregister(tmp_name)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.421197, "supported_languages": null}, "macro.dbt_duckdb.duckdb__create_view_as": {"name": "duckdb__create_view_as", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__create_view_as", "macro_sql": "{% macro duckdb__create_view_as(relation, sql) -%}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.421481, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_columns_in_relation": {"name": "duckdb__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_columns_in_relation", "macro_sql": "{% macro duckdb__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 system.information_schema.columns\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and lower(table_schema) = '{{ relation.schema | lower }}'\n {% endif %}\n {% if relation.database %}\n and lower(table_catalog) = '{{ relation.database | lower }}'\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.42184, "supported_languages": null}, "macro.dbt_duckdb.duckdb__list_relations_without_caching": {"name": "duckdb__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__list_relations_without_caching", "macro_sql": "{% macro duckdb__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 table_name as name,\n table_schema as schema,\n CASE table_type\n WHEN 'BASE TABLE' THEN 'table'\n WHEN 'VIEW' THEN 'view'\n WHEN 'LOCAL TEMPORARY' THEN 'table'\n END as type\n from system.information_schema.tables\n where lower(table_schema) = '{{ schema_relation.schema | lower }}'\n and lower(table_catalog) = '{{ schema_relation.database | lower }}'\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.422113, "supported_languages": null}, "macro.dbt_duckdb.duckdb__drop_relation": {"name": "duckdb__drop_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__drop_relation", "macro_sql": "{% macro duckdb__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {% if adapter.is_ducklake(relation) %}\n drop {{ relation.type }} if exists {{ relation }}\n {% else %}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {% endif %}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.422409, "supported_languages": null}, "macro.dbt_duckdb.duckdb__rename_relation": {"name": "duckdb__rename_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__rename_relation", "macro_sql": "{% macro duckdb__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 {{ to_relation.type }} {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4227881, "supported_languages": null}, "macro.dbt_duckdb.duckdb__make_temp_relation": {"name": "duckdb__make_temp_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__make_temp_relation", "macro_sql": "{% macro duckdb__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix ~ py_current_timestring() %}\n {% do return(base_relation.incorporate(\n path={\n \"identifier\": tmp_identifier,\n \"schema\": none,\n \"database\": none\n })) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.py_current_timestring"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423106, "supported_languages": null}, "macro.dbt_duckdb.duckdb__current_timestamp": {"name": "duckdb__current_timestamp", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__current_timestamp", "macro_sql": "{% macro duckdb__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423182, "supported_languages": null}, "macro.dbt_duckdb.duckdb__snapshot_string_as_time": {"name": "duckdb__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__snapshot_string_as_time", "macro_sql": "{% macro duckdb__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423331, "supported_languages": null}, "macro.dbt_duckdb.duckdb__snapshot_get_time": {"name": "duckdb__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__snapshot_get_time", "macro_sql": "{% macro duckdb__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423419, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_incremental_default_sql": {"name": "duckdb__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_incremental_default_sql", "macro_sql": "{% macro duckdb__get_incremental_default_sql(arg_dict) %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423536, "supported_languages": null}, "macro.dbt_duckdb.location_exists": {"name": "location_exists", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.location_exists", "macro_sql": "{% macro location_exists(location) -%}\n {% do return(adapter.location_exists(location)) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423771, "supported_languages": null}, "macro.dbt_duckdb.write_to_file": {"name": "write_to_file", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.write_to_file", "macro_sql": "{% macro write_to_file(relation, location, options) -%}\n {% call statement('write_to_file') -%}\n copy {{ relation }} to '{{ location }}' ({{ options }})\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.423949, "supported_languages": null}, "macro.dbt_duckdb.store_relation": {"name": "store_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.store_relation", "macro_sql": "{% macro store_relation(plugin, relation, location, format, config) -%}\n {%- set column_list = adapter.get_columns_in_relation(relation) -%}\n {% do adapter.store_relation(plugin, relation, column_list, location, format, config) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.42417, "supported_languages": null}, "macro.dbt_duckdb.render_write_options": {"name": "render_write_options", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.render_write_options", "macro_sql": "{% macro render_write_options(config) -%}\n {% set options = config.get('options', {}) %}\n {% if options is not mapping %}\n {% do exceptions.raise_compiler_error(\"The options argument must be a dictionary\") %}\n {% endif %}\n\n {% for k in options %}\n {% set _ = options.update({k: render(options[k])}) %}\n {% endfor %}\n\n {# legacy top-level write options #}\n {% if config.get('format') %}\n {% set _ = options.update({'format': render(config.get('format'))}) %}\n {% endif %}\n {% if config.get('delimiter') %}\n {% set _ = options.update({'delimiter': render(config.get('delimiter'))}) %}\n {% endif %}\n\n {% do return(options) %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.424889, "supported_languages": null}, "macro.dbt_duckdb.duckdb__apply_grants": {"name": "duckdb__apply_grants", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__apply_grants", "macro_sql": "{% macro duckdb__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 {{ adapter.warn_once('Grants for relations are not supported by DuckDB') }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.425049, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_create_index_sql": {"name": "duckdb__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_create_index_sql", "macro_sql": "{% macro duckdb__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\n \"{{ index_name }}\"\n on {{ relation }}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4253252, "supported_languages": null}, "macro.dbt_duckdb.drop_indexes_on_relation": {"name": "drop_indexes_on_relation", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_duckdb.drop_indexes_on_relation", "macro_sql": "{% macro drop_indexes_on_relation(relation) -%}\n {% call statement('get_indexes_on_relation', fetch_result=True) %}\n SELECT index_name\n FROM duckdb_indexes()\n WHERE schema_name = '{{ relation.schema }}'\n AND table_name = '{{ relation.identifier }}'\n {% endcall %}\n\n {% set results = load_result('get_indexes_on_relation').table %}\n {% for row in results %}\n {% set index_name = row[0] %}\n {% call statement('drop_index_' + loop.index|string, auto_begin=false) %}\n DROP INDEX \"{{ relation.schema }}\".\"{{ index_name }}\"\n {% endcall %}\n {% endfor %}\n\n {#-- Verify indexes were dropped --#}\n {% call statement('verify_indexes_dropped', fetch_result=True) %}\n SELECT COUNT(*) as remaining_indexes\n FROM duckdb_indexes()\n WHERE schema_name = '{{ relation.schema }}'\n AND table_name = '{{ relation.identifier }}'\n {% endcall %}\n {% set verify_results = load_result('verify_indexes_dropped').table %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4258702, "supported_languages": null}, "macro.dbt_duckdb.duckdb_escape_comment": {"name": "duckdb_escape_comment", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/persist_docs.sql", "original_file_path": "macros/persist_docs.sql", "unique_id": "macro.dbt_duckdb.duckdb_escape_comment", "macro_sql": "{% macro duckdb_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.426382, "supported_languages": null}, "macro.dbt_duckdb.duckdb__alter_relation_comment": {"name": "duckdb__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/persist_docs.sql", "original_file_path": "macros/persist_docs.sql", "unique_id": "macro.dbt_duckdb.duckdb__alter_relation_comment", "macro_sql": "{% macro duckdb__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = duckdb_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.duckdb_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4265459, "supported_languages": null}, "macro.dbt_duckdb.duckdb__alter_column_comment": {"name": "duckdb__alter_column_comment", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/persist_docs.sql", "original_file_path": "macros/persist_docs.sql", "unique_id": "macro.dbt_duckdb.duckdb__alter_column_comment", "macro_sql": "{% macro duckdb__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 = duckdb_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_duckdb.duckdb_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.426978, "supported_languages": null}, "macro.dbt_duckdb.duckdb__alter_relation_add_remove_columns": {"name": "duckdb__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/columns.sql", "original_file_path": "macros/columns.sql", "unique_id": "macro.dbt_duckdb.duckdb__alter_relation_add_remove_columns", "macro_sql": "{% macro duckdb__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns %}\n {% for column in add_columns %}\n {% set sql -%}\n alter {{ relation.type }} {{ relation }} add column\n {{ api.Relation.create(identifier=column.name) }} {{ column.data_type }}\n {%- endset -%}\n {% do run_query(sql) %}\n {% endfor %}\n {% endif %}\n\n {% if remove_columns %}\n {% for column in remove_columns %}\n {% set sql -%}\n alter {{ relation.type }} {{ relation }} drop column\n {{ api.Relation.create(identifier=column.name) }}\n {%- endset -%}\n {% do run_query(sql) %}\n {% endfor %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.427636, "supported_languages": null}, "macro.dbt_duckdb.materialization_table_function_duckdb": {"name": "materialization_table_function_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/table_function.sql", "original_file_path": "macros/materializations/table_function.sql", "unique_id": "macro.dbt_duckdb.materialization_table_function_duckdb", "macro_sql": "{% materialization table_function, adapter='duckdb' %}\n -- This materialization uses DuckDB's Table Function / Table Macro feature to provide parameterized views.\n -- Why use this?\n -- Late binding of functions means that the underlying table can change (have new columns added), and\n -- the function does not need to be recreated. (With a view, the create view statement would need to be re-run).\n -- This allows for skipping parts of the dbt DAG, even if the underlying table changed.\n -- Parameters can force filter pushdown\n -- Functions can provide advanced features like dynamic SQL (the query and query_table functions)\n\n -- For usage examples, see the tests at /dbt-duckdb/tests/functional/adapter/test_table_function.py\n -- (Don't forget parentheses when you pull from a table_function!)\n\n -- Using Redshift as an example:\n -- https://github.com/dbt-labs/dbt-adapters/blob/main/dbt-redshift/src/dbt/include/redshift/macros/materializations/table.sql\n {%- set identifier = model['alias'] -%}\n {%- set target_relation = api.Relation.create(\n identifier=identifier,\n schema=schema,\n database=database,\n type='view') -%}\n {%- set backup_relation = none -%}\n\n -- The parameters config is used to pass in the names of the parameters that will be used within the table function.\n -- parameters can be a single string value (with or without commas), or a list of strings.\n {%- set parameters=config.get('parameters') -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- Create or replace the function (macro)\n -- By using create or replace (and a transaction), we do not need an old version and new version.\n {% call statement('main') -%}\n create or replace function {{ target_relation.render() }}(\n {% if not parameters %}\n {% elif parameters is string or parameters is number %}\n {{ parameters if parameters }}\n {% else %}\n {{ parameters|join(', ') }}\n {% endif %}\n ) as table (\n {{ sql }});\n {%- endcall %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here:\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt_duckdb.run_hooks", "macro.dbt.statement", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.428726, "supported_languages": ["sql"]}, "macro.dbt_duckdb.materialization_table_duckdb": {"name": "materialization_table_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_duckdb.materialization_table_duckdb", "macro_sql": "{% materialization table, adapter=\"duckdb\", supported_languages=['sql', 'python'] %}\n\n {%- set language = model['language'] -%}\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', language=language) -%}\n {{- create_table_as(False, intermediate_relation, compiled_code, language) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {#-- Drop indexes before renaming to avoid dependency errors --#}\n {% do drop_indexes_on_relation(existing_relation) %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "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_duckdb.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_duckdb.drop_indexes_on_relation", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.430271, "supported_languages": ["sql", "python"]}, "macro.dbt_duckdb.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt_duckdb.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4307148, "supported_languages": null}, "macro.dbt_duckdb.materialization_external_duckdb": {"name": "materialization_external_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/external.sql", "original_file_path": "macros/materializations/external.sql", "unique_id": "macro.dbt_duckdb.materialization_external_duckdb", "macro_sql": "{% materialization external, adapter=\"duckdb\", supported_languages=['sql', 'python'] %}\n\n {%- set location = render(config.get('location', default=external_location(this, config))) -%})\n {%- set rendered_options = render_write_options(config) -%}\n\n {%- set format = config.get('format') -%}\n {%- set allowed_formats = ['csv', 'parquet', 'json'] -%}\n {%- if format -%}\n {%- if format not in allowed_formats -%}\n {{ exceptions.raise_compiler_error(\"Invalid format: \" ~ format ~ \". Allowed formats are: \" ~ allowed_formats | join(', ')) }}\n {%- endif -%}\n {%- else -%}\n {%- set format = location.split('.')[-1].lower() if '.' in location else 'parquet' -%}\n {%- set format = format if format in allowed_formats else 'parquet' -%}\n {%- endif -%}\n\n {%- set write_options = adapter.external_write_options(location, rendered_options) -%}\n {%- set read_location = adapter.external_read_location(location, rendered_options) -%}\n {%- set parquet_read_options = config.get('parquet_read_options', {'union_by_name': False}) -%}\n {%- set json_read_options = config.get('json_read_options', {'auto_detect': True}) -%}\n {%- set csv_read_options = config.get('csv_read_options', {'auto_detect': True}) -%}\n\n -- set language - python or sql\n {%- set language = model['language'] -%}\n\n {%- set target_relation = this.incorporate(type='view') %}\n\n -- Continue as normal materialization\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set temp_relation = make_intermediate_relation(this.incorporate(type='table'), suffix='__dbt_tmp') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation, suffix='__dbt_int') -%}\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_temp_relation = load_cached_relation(temp_relation) -%}\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_temp_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('create_table', language=language) -%}\n {{- create_table_as(False, temp_relation, compiled_code, language) }}\n {%- endcall %}\n\n -- check if relation is empty\n {%- set count_query -%}\n select count(*) as row_count from {{ temp_relation }}\n {%- endset -%}\n {%- set row_count = run_query(count_query) -%}\n\n -- if relation is empty, write a non-empty table with column names and null values\n {% call statement('main', language='sql') -%}\n {% if row_count[0][0] == 0 %}\n insert into {{ temp_relation }} values (\n {%- for col in get_columns_in_relation(temp_relation) -%}\n NULL,\n {%- endfor -%}\n )\n {% endif %}\n {%- endcall %}\n\n -- write a temp relation into file\n {{ write_to_file(temp_relation, location, write_options) }}\n\n-- create a view on top of the location\n {% call statement('main', language='sql') -%}\n {% if format == 'json' %}\n create or replace view {{ intermediate_relation }} as (\n select * from read_json('{{ read_location }}'\n {%- for key, value in json_read_options.items() -%}\n , {{ key }}=\n {%- if value is string -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- endfor -%}\n )\n -- if relation is empty, filter by all columns having null values\n {% if row_count[0][0] == 0 %}\n where 1\n {%- for col in get_columns_in_relation(temp_relation) -%}\n {{ '' }} AND \"{{ col.column }}\" is not NULL\n {%- endfor -%}\n {% endif %}\n );\n {% elif format == 'parquet' %}\n create or replace view {{ intermediate_relation }} as (\n select * from read_parquet('{{ read_location }}'\n {%- for key, value in parquet_read_options.items() -%}\n , {{ key }}=\n {%- if value is string -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- endfor -%}\n )\n -- if relation is empty, filter by all columns having null values\n {% if row_count[0][0] == 0 %}\n where 1\n {%- for col in get_columns_in_relation(temp_relation) -%}\n {{ '' }} AND \"{{ col.column }}\" is not NULL\n {%- endfor -%}\n {% endif %}\n );\n {% elif format == 'csv' %}\n create or replace view {{ intermediate_relation }} as (\n select * from read_csv('{{ read_location }}'\n {%- for key, value in csv_read_options.items() -%}\n , {{ key }}=\n {%- if value is string -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- endfor -%}\n )\n -- if relation is empty, filter by all columns having null values\n {% if row_count[0][0] == 0 %}\n where 1\n {%- for col in get_columns_in_relation(temp_relation) -%}\n {{ '' }} AND \"{{ col.column }}\" is not NULL\n {%- endfor -%}\n {% endif %}\n );\n {% endif %}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {{ 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 {{ drop_relation_if_exists(temp_relation) }}\n\n -- register table into glue\n {%- set plugin_name = config.get('plugin') -%}\n {%- set glue_register = config.get('glue_register', default=false) -%}\n {%- set partition_columns = config.get('partition_columns', []) -%}\n {% if plugin_name is not none or glue_register is true %}\n {% if glue_register %}\n {# legacy hack to set the glue database name, deprecate this #}\n {%- set plugin_name = 'glue|' ~ config.get('glue_database', 'default') -%}\n {% endif %}\n {% do store_relation(plugin_name, target_relation, location, format, config) %}\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_duckdb.external_location", "macro.dbt_duckdb.render_write_options", "macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt_duckdb.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.run_query", "macro.dbt.get_columns_in_relation", "macro.dbt_duckdb.write_to_file", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt_duckdb.store_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4358249, "supported_languages": ["sql", "python"]}, "macro.dbt_duckdb.materialization_incremental_duckdb": {"name": "materialization_incremental_duckdb", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_duckdb.materialization_incremental_duckdb", "macro_sql": "{% materialization incremental, adapter=\"duckdb\", supported_languages=['sql', 'python'] -%}\n\n {%- set language = model['language'] -%}\n -- only create temp tables if using local duckdb, as it is not currently supported for remote databases\n {%- set temporary = not adapter.is_motherduck() -%}\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 {% set to_drop = [] %}\n {% if not temporary %}\n -- if not using a temporary table we will update the temp relation to use a different temp schema (\"dbt_temp\" by default)\n -- for microbatch with concurrent batches, include batch timestamps in the identifier to avoid collisions\n {%- set batch_id = '' -%}\n {%- set batch_ctx = model.get('batch') -%}\n {%- if batch_ctx and batch_ctx.get('event_time_start') -%}\n {%- set batch_id = batch_ctx.get('event_time_start') | string | replace('-', '') | replace(':', '') | replace(' ', '_') | replace('+', '') -%}\n {%- endif -%}\n {% set temp_relation = temp_relation.incorporate(path=adapter.get_temp_relation_path(this, batch_id)) %}\n {% do run_query(create_schema(temp_relation)) %}\n {% if not adapter.disable_transactions() %}\n {% do adapter.commit() %}\n {% endif %}\n -- then drop the temp relation after we insert the incremental data into the target relation\n {% do to_drop.append(temp_relation) %}\n {% endif %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, compiled_code, language) %}\n {% elif full_refresh_mode %}\n {% set build_sql = create_table_as(False, intermediate_relation, compiled_code, language) %}\n {% set need_swap = true %}\n {% else %}\n {% if language == 'python' %}\n {% set build_python = create_table_as(temporary, temp_relation, compiled_code, language) %}\n {% call statement(\"pre\", language=language) %}\n {{- build_python }}\n {% endcall %}\n {% else %} {# SQL #}\n {% do run_query(create_table_as(temporary, temp_relation, compiled_code, language)) %}\n {% endif %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n {% set language = \"sql\" %}\n\n {% endif %}\n\n {% call statement(\"main\", language=language) %}\n {{- build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {#-- Drop indexes on target relation before renaming to backup to avoid dependency errors --#}\n {% do drop_indexes_on_relation(target_relation) %}\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 {# Align order with table materialization to avoid MotherDuck alter conflicts #}\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {% 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 {# On MotherDuck the temp relation is a real table; dropping it cascades indexes. Avoid extra ALTERs. #}\n {% if not adapter.is_motherduck() %}\n {% do drop_indexes_on_relation(rel) %}\n {% endif %}\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_query", "macro.dbt.create_schema", "macro.dbt_duckdb.run_hooks", "macro.dbt.create_table_as", "macro.dbt.statement", "macro.dbt.process_schema_changes", "macro.dbt_duckdb.drop_indexes_on_relation", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.create_indexes", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.439952, "supported_languages": ["sql", "python"]}, "macro.dbt_duckdb.duckdb__merge_join_clause": {"name": "duckdb__merge_join_clause", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_duckdb.duckdb__merge_join_clause", "macro_sql": "{% macro duckdb__merge_join_clause(unique_key, merge_on_using_columns, incremental_predicates) -%}\n {%- set incremental_filters = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set join_predicates = [] -%}\n {%- set using_clause_requested = merge_on_using_columns and merge_on_using_columns | length > 0 -%}\n\n {%- if not using_clause_requested -%}\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 {% do join_predicates.append(\"DBT_INTERNAL_SOURCE.\" ~ key ~ \" = DBT_INTERNAL_DEST.\" ~ key) %}\n {% endfor %}\n {% else %}\n {% do join_predicates.append(\"DBT_INTERNAL_SOURCE.\" ~ unique_key ~ \" = DBT_INTERNAL_DEST.\" ~ unique_key) %}\n {% endif %}\n {% else %}\n {% do join_predicates.append('FALSE') %}\n {% endif %}\n {%- endif -%}\n\n {% if using_clause_requested %}\n USING ({{ merge_on_using_columns | join(', ') }})\n {%- if incremental_filters | length > 0 %}\n ON ({{ incremental_filters | join(\") AND (\") }})\n {%- endif %}\n {% else %}\n ON ({{ (join_predicates + incremental_filters) | join(\") AND (\") }})\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.441917, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_incremental_merge_sql": {"name": "duckdb__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_incremental_merge_sql", "macro_sql": "{% macro duckdb__get_incremental_merge_sql(args_dict) %}\n {%- set target_relation = args_dict['target_relation'] -%}\n {%- set temp_relation = args_dict['temp_relation'] -%}\n {%- set unique_key = args_dict['unique_key'] -%}\n {%- set dest_columns = args_dict['dest_columns'] -%}\n {%- set incremental_predicates = normalize_incremental_predicates(args_dict.get('incremental_predicates')) -%}\n\n {%- set build_sql = duckdb__get_merge_sql(target_relation, temp_relation, unique_key, dest_columns, incremental_predicates) -%}\n\n {{ return(build_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.normalize_incremental_predicates", "macro.dbt_duckdb.duckdb__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.442284, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_merge_sql": {"name": "duckdb__get_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_merge_sql", "macro_sql": "{% macro duckdb__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = normalize_incremental_predicates(incremental_predicates) -%}\n\n {{ validate_merge_config(config, target) }}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {%- set merge_on_using_columns = config.get('merge_on_using_columns', []) -%}\n {%- set merge_update_condition = config.get('merge_update_condition', none) -%}\n {%- set merge_insert_condition = config.get('merge_insert_condition', none) -%}\n {%- set merge_update_columns = config.get('merge_update_columns', []) -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns', []) -%}\n {%- set merge_update_set_expressions = config.get('merge_update_set_expressions', {}) -%}\n {%- set merge_returning_columns = config.get('merge_returning_columns', []) -%}\n\n {%- set merge_clause_defaults = merge_clause_defaults(\n merge_update_condition,\n merge_insert_condition,\n merge_update_columns,\n merge_exclude_columns,\n merge_update_set_expressions\n ) -%}\n\n {%- set merge_clauses = config.get('merge_clauses', {}) -%}\n {%- set when_matched_clauses = merge_clauses.get('when_matched', [\n merge_clause_defaults.when_matched_update_explicit\n if (merge_update_columns|length != 0 or merge_exclude_columns|length != 0 or merge_update_set_expressions|length != 0)\n else merge_clause_defaults.when_matched_update_by_name\n ]) -%}\n\n {%- set when_not_matched_clauses = merge_clauses.get('when_not_matched', [\n merge_clause_defaults.when_not_matched_insert_by_name\n ]) -%}\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 {{ duckdb__merge_join_clause(unique_key, merge_on_using_columns, incremental_predicates) }}\n\n {%- for when_matched in when_matched_clauses %}\n WHEN MATCHED\n {%- if when_matched.get('condition') -%}\n {%- if when_matched.get('condition') is string %} AND {{ when_matched.get('condition') }}\n {%- else %} AND ({{ when_matched.get('condition') | join(') AND (') }})\n {%- endif -%}\n {%- endif %}\n THEN\n {% if when_matched.get('action') == 'update' %}\n {%- if when_matched.get('mode') == 'by_name' -%}\n UPDATE BY NAME\n {%- elif when_matched.get('mode') == 'by_position' -%}\n UPDATE BY POSITION\n {%- elif when_matched.get('mode') == 'star' -%}\n UPDATE SET *\n {%- elif when_matched.get('mode') == 'explicit' -%}\n {%- set include_columns = when_matched.get('update', {}).get('include', []) -%}\n {%- set exclude_columns = when_matched.get('update', {}).get('exclude', []) -%}\n {%- set set_expressions = when_matched.get('update', {}).get('set_expressions', {}) -%}\n\n {%- set update_columns = get_merge_update_columns(include_columns, exclude_columns, dest_columns) -%}\n\n {%- set update_columns_after_overrides = [] -%}\n {%- for column in update_columns -%}\n {%- set unquoted_column = column.replace('\"', '').replace(\"'\", \"\") -%}\n {%- if unquoted_column not in set_expressions -%}\n {%- do update_columns_after_overrides.append(column) -%}\n {%- endif -%}\n {%- endfor -%}\n\n UPDATE SET\n {% for column, expression in set_expressions.items() -%}\n {{ column }} = {{ expression }}{% if not loop.last or update_columns_after_overrides|length > 0 %}, {% endif %}\n {%- endfor %}\n {%- for column in update_columns_after_overrides -%}\n {{ column }} = DBT_INTERNAL_SOURCE.{{ column }}{% if not loop.last %}, {% endif %}\n {%- endfor %}\n {%- endif -%}\n\n {%- elif when_matched.get('action') == 'delete' %}\n DELETE\n {%- elif when_matched.get('action') == 'do_nothing' %}\n DO NOTHING\n {%- elif when_matched.get('action') == 'error' %}\n {%- set error_message = (when_matched.get('error_message', '') or '') | replace(\"'\", \"''\") -%}\n ERROR{% if when_matched.get('error_message') %} '{{ error_message }}'{% endif %}\n {%- endif %}\n {%- endfor %}\n\n {%- for when_not_matched in when_not_matched_clauses %}\n WHEN NOT MATCHED\n {% if when_not_matched.get('by') %}BY {{ when_not_matched.get('by') | upper }} {% endif %}\n {%- if when_not_matched.get('condition') -%}\n {%- if when_not_matched.get('condition') is string %} AND {{ when_not_matched.get('condition') }}\n {%- else %} AND ({{ when_not_matched.get('condition') | join(') AND (') }})\n {%- endif -%}\n {%- endif %}\n THEN\n {% if when_not_matched.get('action') == 'update' %}\n {%- set set_expressions = when_not_matched.get('set_expressions', {}) -%}\n\n UPDATE SET\n {% for column, expression in set_expressions.items() -%}\n {{ column }} = {{ expression }}{% if not loop.last %}, {% endif %}\n {%- endfor %}\n\n {%- elif when_not_matched.get('action') == 'insert' %}\n {%- if when_not_matched.get('mode') == 'by_name' -%}\n INSERT BY NAME\n {%- elif when_not_matched.get('mode') == 'by_position' -%}\n INSERT BY POSITION\n {%- elif when_not_matched.get('mode') == 'star' -%}\n INSERT *\n {%- elif when_not_matched.get('mode') == 'explicit' -%}\n {%- set insert_columns = when_not_matched.get('insert', {}).get('columns', []) -%}\n {%- set insert_values = when_not_matched.get('insert', {}).get('values', []) -%}\n\n INSERT\n ({{ insert_columns | join(', ') }})\n VALUES ({{ insert_values | join(', ') }})\n {%- endif -%}\n {%- elif when_not_matched.get('action') == 'delete' %}\n DELETE\n {%- elif when_not_matched.get('action') == 'do_nothing' %}\n DO NOTHING\n {%- elif when_not_matched.get('action') == 'error' %}\n {%- set error_message = (when_not_matched.get('error_message', '') or '') | replace(\"'\", \"''\") -%}\n ERROR{% if when_not_matched.get('error_message') %} '{{ error_message }}'{% endif %}\n {%- endif %}\n {%- endfor %}\n\n {%- if merge_returning_columns %}\n RETURNING {{ merge_returning_columns if merge_returning_columns is string else merge_returning_columns | join(', ') }}\n {%- endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.normalize_incremental_predicates", "macro.dbt_duckdb.validate_merge_config", "macro.dbt_duckdb.merge_clause_defaults", "macro.dbt_duckdb.duckdb__merge_join_clause", "macro.dbt.get_merge_update_columns", "macro.dbt.replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.446988, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_incremental_microbatch_sql": {"name": "duckdb__get_incremental_microbatch_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/microbatch.sql", "original_file_path": "macros/materializations/incremental_strategy/microbatch.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_incremental_microbatch_sql", "macro_sql": "{% macro duckdb__get_incremental_microbatch_sql(arg_dict) -%}\n {# Extract and validate required config #}\n {%- set event_time = config.get('event_time') -%}\n {%- if not event_time -%}\n {{ exceptions.raise_compiler_error(\"microbatch incremental strategy requires an 'event_time' model config\") }}\n {%- endif -%}\n\n {# microbatch is implemented as delete+insert on event_time; unique_key is ignored and misleading #}\n {%- set unique_key = config.get('unique_key') -%}\n {%- if unique_key -%}\n {{ exceptions.raise_compiler_error(\"microbatch incremental strategy does not support 'unique_key'. Microbatch runs delete+insert per batch based on 'event_time' and does not do key-based upserts. Remove 'unique_key' or use incremental_strategy='merge'.\") }}\n {%- endif -%}\n\n {# Extract batch context - dbt sets these per batch run based on lookback window #}\n {%- set batch_ctx = model.get('batch') -%}\n {%- set batch_start = batch_ctx.get('event_time_start') if batch_ctx else none -%}\n {%- set batch_end = batch_ctx.get('event_time_end') if batch_ctx else none -%}\n\n {%- if not (batch_start and batch_end) -%}\n {{ exceptions.raise_compiler_error(\"microbatch incremental strategy requires 'batch.event_time_start' and 'batch.event_time_end' to be set in the context\") }}\n {%- endif -%}\n\n {# Extract remaining arguments #}\n {%- set target = arg_dict[\"target_relation\"] -%}\n {%- set source = arg_dict[\"temp_relation\"] -%}\n {%- set dest_columns = arg_dict[\"dest_columns\"] -%}\n {%- set incremental_predicates = normalize_incremental_predicates(arg_dict.get(\"incremental_predicates\")) -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {# Build the batch time filter predicate #}\n {# batch_start and batch_end are already UTC timestamps from dbt Python code #}\n {%- set batch_predicate -%}\n {{ event_time }} >= '{{ batch_start }}'\n and {{ event_time }} < '{{ batch_end }}'\n {%- endset -%}\n\n {# Build combined WHERE clause with optional incremental predicates #}\n {%- set where_clause -%}\n {{ batch_predicate }}\n {%- for predicate in incremental_predicates %}\n and ({{ predicate }})\n {%- endfor %}\n {%- endset -%}\n\n {# Generate delete + insert SQL #}\n {%- set build_sql -%}\n delete from {{ target }}\n where {{ where_clause }};\n\n insert into {{ target }} ({{ dest_cols_csv }})\n select {{ dest_cols_csv }}\n from {{ source }}\n where {{ batch_predicate }};\n {%- endset -%}\n\n {{ return(build_sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.normalize_incremental_predicates", "macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.448496, "supported_languages": null}, "macro.dbt_duckdb.duckdb__get_delete_insert_merge_sql": {"name": "duckdb__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/delete_insert.sql", "original_file_path": "macros/materializations/incremental_strategy/delete_insert.sql", "unique_id": "macro.dbt_duckdb.duckdb__get_delete_insert_merge_sql", "macro_sql": "{% macro duckdb__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }} as DBT_INCREMENTAL_TARGET\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = DBT_INCREMENTAL_TARGET.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.449436, "supported_languages": null}, "macro.dbt_duckdb.validate_merge_config": {"name": "validate_merge_config", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_merge_config", "macro_sql": "{% macro validate_merge_config(config, target_relation=none) %}\n {%- set errors = [] -%}\n\n {%- set base_configuration_fields = {\n 'merge_update_condition': 'string',\n 'merge_insert_condition': 'string',\n 'merge_on_using_columns': 'sequence',\n 'merge_update_columns': 'sequence',\n 'merge_update_set_expressions': 'mapping',\n 'merge_exclude_columns': 'sequence',\n 'merge_returning_columns': 'sequence'\n } -%}\n\n {%- for field_name, field_type in base_configuration_fields.items() -%}\n {%- set field_value = config.get(field_name) -%}\n {%- if field_type == 'string' -%}\n {%- do validate_string_field(field_value, field_name, errors) -%}\n {%- elif field_type == 'sequence' -%}\n {%- do validate_string_list_field(field_value, field_name, errors) -%}\n {%- elif field_type == 'mapping' -%}\n {%- do validate_dict_field(field_value, field_name, errors) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- do validate_ducklake_restrictions(config, target_relation, errors) -%}\n\n {%- do validate_merge_clauses(config, base_configuration_fields, errors) -%}\n\n {%- if errors -%}\n {{ exceptions.raise_compiler_error(\"MERGE configuration errors:\\n\" ~ errors|join('\\n')) }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_duckdb.validate_string_field", "macro.dbt_duckdb.validate_string_list_field", "macro.dbt_duckdb.validate_dict_field", "macro.dbt_duckdb.validate_ducklake_restrictions", "macro.dbt_duckdb.validate_merge_clauses"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4509802, "supported_languages": null}, "macro.dbt_duckdb.validate_merge_clauses": {"name": "validate_merge_clauses", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_merge_clauses", "macro_sql": "\n\n\n{%- macro validate_merge_clauses(config, base_configuration_fields, errors) -%}\n {%- if config.get('merge_clauses') is not none -%}\n {%- if config.get('merge_clauses') is not mapping -%}\n {%- do errors.append(\"merge_clauses must be a dictionary, found: \" ~ config.get('merge_clauses')) -%}\n {%- else -%}\n {%- set merge_clauses = config.get('merge_clauses') -%}\n {%- set clause_types = ['when_matched', 'when_not_matched'] -%}\n\n {%- set has_when_matched = 'when_matched' in merge_clauses -%}\n {%- set has_when_not_matched = 'when_not_matched' in merge_clauses -%}\n\n {%- if not has_when_matched and not has_when_not_matched -%}\n {%- do errors.append(\"merge_clauses must contain at least one of 'when_matched' or 'when_not_matched' keys\") -%}\n {%- endif -%}\n\n {%- for clause_type in clause_types -%}\n {%- if clause_type in merge_clauses -%}\n {%- do validate_merge_clause_list(merge_clauses, clause_type, errors) -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- set conflicting_configs = [] -%}\n {%- for config_name, config_type in base_configuration_fields.items() -%}\n {%- if config_name not in ['merge_on_using_columns', 'merge_returning_columns'] -%}\n {%- set config_value = config.get(config_name) -%}\n {%- if config_value is not none -%}\n {%- if config_type == 'sequence' -%}\n {%- if config_value|length > 0 -%}\n {%- do conflicting_configs.append(config_name) -%}\n {%- endif -%}\n {%- elif config_type == 'mapping' -%}\n {%- if config_value.keys()|length > 0 -%}\n {%- do conflicting_configs.append(config_name) -%}\n {%- endif -%}\n {%- else -%}\n {%- do conflicting_configs.append(config_name) -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if conflicting_configs|length > 0 -%}\n {%- do errors.append(\"When merge_clauses is specified, the following basic merge configurations will be ignored and should be removed: \" ~ conflicting_configs|join(', ') ~ \". Define your merge behavior within merge_clauses instead.\") -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_duckdb.validate_merge_clause_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4521978, "supported_languages": null}, "macro.dbt_duckdb.validate_merge_clause_list": {"name": "validate_merge_clause_list", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_merge_clause_list", "macro_sql": "{%- macro validate_merge_clause_list(merge_clauses, clause_type, errors) -%}\n {%- if merge_clauses.get(clause_type) is not sequence or merge_clauses.get(clause_type) is mapping or merge_clauses.get(clause_type) is string -%}\n {%- do errors.append(\"merge_clauses.\" ~ clause_type ~ \" must be a list\") -%}\n {%- elif merge_clauses.get(clause_type)|length == 0 -%}\n {%- do errors.append(\"merge_clauses.\" ~ clause_type ~ \" must contain at least one element\") -%}\n {%- else -%}\n {%- for clause in merge_clauses.get(clause_type) -%}\n {%- if clause is not mapping -%}\n {%- do errors.append(\"merge_clauses.\" ~ clause_type ~ \" elements must be dictionaries, found: \" ~ clause) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4527209, "supported_languages": null}, "macro.dbt_duckdb.validate_ducklake_restrictions": {"name": "validate_ducklake_restrictions", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_config_validation.sql", "unique_id": "macro.dbt_duckdb.validate_ducklake_restrictions", "macro_sql": "{%- macro validate_ducklake_restrictions(config, target_relation, errors) -%}\n {%- if target_relation and adapter.is_ducklake(target_relation) -%}\n {%- set merge_clauses = config.get('merge_clauses', {}) -%}\n {%- if merge_clauses and 'when_matched' in merge_clauses -%}\n {%- set when_matched_clauses = merge_clauses.get('when_matched', []) -%}\n {%- set update_delete_count = 0 -%}\n\n {%- for clause in when_matched_clauses -%}\n {%- if clause is mapping and clause.get('action') in ['update', 'delete'] -%}\n {%- set update_delete_count = update_delete_count + 1 -%}\n {%- endif -%}\n {%- endfor -%}\n\n {%- if update_delete_count > 1 -%}\n {%- do errors.append(\"DuckLake MERGE restrictions: when_matched clauses can contain only a single UPDATE or DELETE action. Found \" ~ update_delete_count ~ \" UPDATE/DELETE actions. DuckLake currently supports only one UPDATE or DELETE operation per MERGE statement.\") -%}\n {%- endif -%}\n {%- endif -%}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.453283, "supported_languages": null}, "macro.dbt_duckdb.validate_string_field": {"name": "validate_string_field", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.validate_string_field", "macro_sql": "{%- macro validate_string_field(field_value, field_name, errors) -%}\n {%- if field_value is not none and field_value is not string -%}\n {%- do errors.append(field_name ~ \" must be a string, found: \" ~ field_value) -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.453723, "supported_languages": null}, "macro.dbt_duckdb.validate_string_list_field": {"name": "validate_string_list_field", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.validate_string_list_field", "macro_sql": "{%- macro validate_string_list_field(field_value, field_name, errors) -%}\n {%- if field_value is not none -%}\n {%- if field_value is not sequence or field_value is mapping or field_value is string -%}\n {%- do errors.append(field_name ~ \" must be a list\") -%}\n {%- else -%}\n {%- for item in field_value -%}\n {%- if item is not string -%}\n {%- do errors.append(field_name ~ \" must contain only string values, found: \" ~ item) -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.454077, "supported_languages": null}, "macro.dbt_duckdb.validate_dict_field": {"name": "validate_dict_field", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.validate_dict_field", "macro_sql": "{%- macro validate_dict_field(field_value, field_name, errors) -%}\n {%- if field_value is not none and field_value is not mapping -%}\n {%- do errors.append(field_name ~ \" must be a dictionary, found: \" ~ field_value) -%}\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.454262, "supported_languages": null}, "macro.dbt_duckdb.normalize_incremental_predicates": {"name": "normalize_incremental_predicates", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/validation_helper.sql", "original_file_path": "macros/materializations/incremental_strategy/validation_helper.sql", "unique_id": "macro.dbt_duckdb.normalize_incremental_predicates", "macro_sql": "{%- macro normalize_incremental_predicates(incremental_predicates) -%}\n {%- if incremental_predicates is none -%}\n {%- set incremental_predicates = [] -%}\n {%- elif incremental_predicates is mapping -%}\n {{ exceptions.raise_compiler_error(\"incremental_predicates must be a list of strings or a string\") }}\n {%- elif incremental_predicates is string -%}\n {%- set incremental_predicates = [incremental_predicates] -%}\n {%- elif incremental_predicates is sequence -%}\n {%- set incremental_predicates = incremental_predicates | list -%}\n {%- else -%}\n {{ exceptions.raise_compiler_error(\"incremental_predicates must be a list of strings or a string\") }}\n {%- endif -%}\n {{ return(incremental_predicates) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.454616, "supported_languages": null}, "macro.dbt_duckdb.merge_clause_defaults": {"name": "merge_clause_defaults", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/materializations/incremental_strategy/merge_defaults.sql", "original_file_path": "macros/materializations/incremental_strategy/merge_defaults.sql", "unique_id": "macro.dbt_duckdb.merge_clause_defaults", "macro_sql": "{% macro merge_clause_defaults(\n merge_update_condition,\n merge_insert_condition,\n merge_update_columns=[],\n merge_exclude_columns=[],\n merge_update_set_expressions={}\n) -%}\n\n {{ return({\n 'when_matched_update_by_name': {\n 'action': 'update',\n 'condition': merge_update_condition,\n 'mode': 'by_name'\n },\n 'when_not_matched_insert_by_name': {\n 'action': 'insert',\n 'condition': merge_insert_condition,\n 'mode': 'by_name'\n },\n 'when_matched_update_explicit': {\n 'action': 'update',\n 'condition': merge_update_condition,\n 'mode': 'explicit',\n 'update': {\n 'include': merge_update_columns,\n 'exclude': merge_exclude_columns,\n 'set_expressions': merge_update_set_expressions\n }\n }\n }) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.45521, "supported_languages": null}, "macro.dbt_duckdb.duckdb__generate_series": {"name": "duckdb__generate_series", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt_duckdb.duckdb__generate_series", "macro_sql": "{% macro duckdb__generate_series(upper_bound) %}\n select\n generate_series as generated_number\n from generate_series(1, {{ upper_bound }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.455327, "supported_languages": null}, "macro.dbt_duckdb.duckdb__dateadd": {"name": "duckdb__dateadd", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_duckdb.duckdb__dateadd", "macro_sql": "{% macro duckdb__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {#\n Support both literal and expression intervals (e.g., column references)\n by multiplying an INTERVAL by the value. This avoids DuckDB parser issues\n with \"interval () \" and works across versions.\n\n Also map unsupported units:\n - quarter => 3 months\n - week => 7 days (DuckDB supports WEEK as a literal, but keep it explicit)\n #}\n\n {%- set unit = datepart | lower -%}\n {%- if unit == 'quarter' -%}\n ({{ from_date_or_timestamp }} + (cast({{ interval }} as bigint) * 3) * interval 1 month)\n {%- elif unit == 'week' -%}\n ({{ from_date_or_timestamp }} + (cast({{ interval }} as bigint) * 7) * interval 1 day)\n {%- else -%}\n ({{ from_date_or_timestamp }} + cast({{ interval }} as bigint) * interval 1 {{ unit }})\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.455744, "supported_languages": null}, "macro.dbt_duckdb.duckdb__listagg": {"name": "duckdb__listagg", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_duckdb.duckdb__listagg", "macro_sql": "{% macro duckdb__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n {% if limit_num -%}\n list_aggr(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n 'string_agg',\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{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.456127, "supported_languages": null}, "macro.dbt_duckdb.duckdb__datediff": {"name": "duckdb__datediff", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_duckdb.duckdb__datediff", "macro_sql": "{% macro duckdb__datediff(first_date, second_date, datepart) -%}\n {% if 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 {% else %}\n (date_diff('{{ datepart }}', {{ first_date }}::timestamp, {{ second_date}}::timestamp ))\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.456522, "supported_languages": null}, "macro.dbt_duckdb.duckdb__any_value": {"name": "duckdb__any_value", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_duckdb.duckdb__any_value", "macro_sql": "{% macro duckdb__any_value(expression) -%}\n\n arbitrary({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.456628, "supported_languages": null}, "macro.dbt_duckdb.register_upstream_external_models": {"name": "register_upstream_external_models", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/upstream.sql", "original_file_path": "macros/utils/upstream.sql", "unique_id": "macro.dbt_duckdb.register_upstream_external_models", "macro_sql": "{%- macro register_upstream_external_models() -%}\n{% if execute %}\n{% set upstream_nodes = {} %}\n{% set upstream_schemas = {} %}\n{% for node in selected_resources %}\n {% if node not in graph['nodes'] %}{% continue %}{% endif %}\n {% for upstream_node in graph['nodes'][node]['depends_on']['nodes'] %}\n {% if upstream_node not in upstream_nodes and upstream_node not in selected_resources %}\n {% do upstream_nodes.update({upstream_node: None}) %}\n {% set upstream = graph['nodes'].get(upstream_node) %}\n {% if upstream\n and upstream.resource_type in ('model', 'seed')\n and upstream.config.materialized=='external'\n %}\n {%- set upstream_rel = api.Relation.create(\n database=upstream['database'],\n schema=upstream['schema'],\n identifier=upstream['alias']\n ) -%}\n {%- set location = upstream.config.get('location', external_location(upstream_rel, upstream.config)) -%}\n {%- set rendered_options = render_write_options(upstream.config) -%}\n {%- set upstream_location = adapter.external_read_location(location, rendered_options) -%}\n {% if upstream_rel.schema not in upstream_schemas %}\n {% call statement('main', language='sql') -%}\n create schema if not exists {{ upstream_rel.without_identifier() }}\n {%- endcall %}\n {% do upstream_schemas.update({upstream_rel.schema: None}) %}\n {% endif %}\n {% call statement('main', language='sql') -%}\n create or replace view {{ upstream_rel }} as (\n select * from '{{ upstream_location }}'\n );\n {%- endcall %}\n {%- endif %}\n {% endif %}\n {% endfor %}\n{% endfor %}\n{% if upstream_schemas %}\n {% do adapter.commit() %}\n{% endif %}\n{% endif %}\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_duckdb.external_location", "macro.dbt_duckdb.render_write_options", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4582431, "supported_languages": null}, "macro.dbt_duckdb.duckdb__split_part": {"name": "duckdb__split_part", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/splitpart.sql", "original_file_path": "macros/utils/splitpart.sql", "unique_id": "macro.dbt_duckdb.duckdb__split_part", "macro_sql": "{% macro duckdb__split_part(string_text, delimiter_text, part_number) %}\n string_split({{ string_text }}, {{ delimiter_text }})[ {{ part_number }} ]\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.458411, "supported_languages": null}, "macro.dbt_duckdb.duckdb__last_day": {"name": "duckdb__last_day", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/lastday.sql", "original_file_path": "macros/utils/lastday.sql", "unique_id": "macro.dbt_duckdb.duckdb__last_day", "macro_sql": "{% macro duckdb__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- duckdb 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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.458761, "supported_languages": null}, "macro.dbt_duckdb.external_location": {"name": "external_location", "resource_type": "macro", "package_name": "dbt_duckdb", "path": "macros/utils/external_location.sql", "original_file_path": "macros/utils/external_location.sql", "unique_id": "macro.dbt_duckdb.external_location", "macro_sql": "{%- macro external_location(relation, config) -%}\n {%- if config.get('options', {}).get('partition_by') is none -%}\n {%- set format = config.get('format', 'parquet') -%}\n {{- adapter.external_root() }}/{{ relation.identifier }}.{{ format }}\n {%- else -%}\n {{- adapter.external_root() }}/{{ relation.identifier }}\n {%- endif -%}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.459152, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4597702, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.459905, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4600031, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4601018, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.460196, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.460415, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.460619, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4608269, "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_duckdb.duckdb__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4611452, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4617128, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.463281, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.463401, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4635599, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.464235, "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_duckdb.duckdb__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.464349, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.464468, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.465516, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.46654, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468365, "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.expanded_data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468595, "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_duckdb.duckdb__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468711, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4687748, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.468878, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4689631, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4691122, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.469283, "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\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\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\n {% if config.get('dbt_valid_to_current') -%}\n snapshotted_data.{{ columns.dbt_valid_to }} = {{ config.get('dbt_valid_to_current') }}\n {%- else -%}\n snapshotted_data.{{ columns.dbt_valid_to }} is null\n {%- endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4724321, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.472584, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.472938, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4732301, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.473634, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.473933, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.474124, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4743612, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.474762, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.47491, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4750578, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.477921, "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 {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4797308, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.480154, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4803681, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.480509, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.480934, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.481169, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.481428, "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 {% set sql_header = config.get('sql_header') if flags.REQUIRE_SQL_HEADER_IN_TEST_CONFIGS else none %}\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 {% if sql_header %}{{ sql_header }}{% endif %}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.482848, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4840379, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4843059, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.48448, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4853692, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4855318, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.48597, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.487505, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.488982, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.48962, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.489999, "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 {{ return(adapter.dispatch('diff_column_data_types', 'dbt')(source_columns, target_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4901419, "supported_languages": null}, "macro.dbt.default__diff_column_data_types": {"name": "default__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.default__diff_column_data_types", "macro_sql": "{% macro default__diff_column_data_types(source_columns, target_columns) %}\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.expanded_data_type != tc.expanded_data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.expanded_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.490658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4908218, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.491316, "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_duckdb.duckdb__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.492157, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.493346, "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_duckdb.duckdb__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.493529, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.494024, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.49421, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4946592, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.495082, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4955788, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4957418, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.495869, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496068, "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_duckdb.duckdb__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496193, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4963908, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.49652, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4966972, "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_duckdb.duckdb__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496824, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.496929, "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_duckdb.duckdb__get_incremental_microbatch_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.497056, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.4971678, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.497361, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5004601, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.501468, "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 {{ return(adapter.dispatch('check_for_schema_changes', 'dbt')(source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__check_for_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.501614, "supported_languages": null}, "macro.dbt.default__check_for_schema_changes": {"name": "default__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.default__check_for_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.502429, "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 {{ return(adapter.dispatch('sync_column_schemas', 'dbt')(on_schema_change, target_relation, schema_changes_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.502594, "supported_languages": null}, "macro.dbt.default__sync_column_schemas": {"name": "default__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.default__sync_column_schemas", "macro_sql": "{% macro default__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 {%- 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 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\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5033941, "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 {{ return(adapter.dispatch('process_schema_changes', 'dbt')(on_schema_change, source_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__process_schema_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.503558, "supported_languages": null}, "macro.dbt.default__process_schema_changes": {"name": "default__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.default__process_schema_changes", "macro_sql": "{% macro default__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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504127, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504301, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504384, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.50459, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.504707, "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 {%- set grant_config = config.get('grants') -%}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.506517, "supported_languages": ["sql"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5082922, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.509071, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.509679, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.509841, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5101728, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510303, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510394, "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_duckdb.duckdb__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5105689, "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_duckdb.duckdb__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510676, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.510828, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.511153, "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_duckdb.duckdb__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5112782, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.512105, "supported_languages": null}, "macro.dbt.scalar_function_sql": {"name": "scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_sql", "macro_sql": "{% macro scalar_function_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.512626, "supported_languages": null}, "macro.dbt.default__scalar_function_sql": {"name": "default__scalar_function_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_sql", "macro_sql": "{% macro default__scalar_function_sql(target_relation) %}\n {{ scalar_function_create_replace_signature_sql(target_relation) }}\n {{ scalar_function_body_sql() }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_create_replace_signature_sql", "macro.dbt.scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5127318, "supported_languages": null}, "macro.dbt.scalar_function_create_replace_signature_sql": {"name": "scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_create_replace_signature_sql", "macro_sql": "{% macro scalar_function_create_replace_signature_sql(target_relation) %}\n {{ return(adapter.dispatch('scalar_function_create_replace_signature_sql', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_create_replace_signature_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.512854, "supported_languages": null}, "macro.dbt.default__scalar_function_create_replace_signature_sql": {"name": "default__scalar_function_create_replace_signature_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_create_replace_signature_sql", "macro_sql": "{% macro default__scalar_function_create_replace_signature_sql(target_relation) %}\n CREATE OR REPLACE FUNCTION {{ target_relation.render() }} ({{ formatted_scalar_function_args_sql()}})\n RETURNS {{ model.returns.data_type }}\n {{ scalar_function_volatility_sql() }}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql", "macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513006, "supported_languages": null}, "macro.dbt.formatted_scalar_function_args_sql": {"name": "formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.formatted_scalar_function_args_sql", "macro_sql": "{% macro formatted_scalar_function_args_sql() %}\n {{ return(adapter.dispatch('formatted_scalar_function_args_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.51312, "supported_languages": null}, "macro.dbt.default__formatted_scalar_function_args_sql": {"name": "default__formatted_scalar_function_args_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__formatted_scalar_function_args_sql", "macro_sql": "{% macro default__formatted_scalar_function_args_sql() %}\n {% set args = [] %}\n {% for arg in model.arguments -%}\n {%- do args.append(arg.name ~ ' ' ~ arg.data_type) -%}\n {%- endfor %}\n {{ args | join(', ') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513344, "supported_languages": null}, "macro.dbt.scalar_function_body_sql": {"name": "scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_body_sql", "macro_sql": "{% macro scalar_function_body_sql() %}\n {{ return(adapter.dispatch('scalar_function_body_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_body_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513456, "supported_languages": null}, "macro.dbt.default__scalar_function_body_sql": {"name": "default__scalar_function_body_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_body_sql", "macro_sql": "{% macro default__scalar_function_body_sql() %}\n $$\n {{ model.compiled_code }}\n $$ LANGUAGE SQL\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.513528, "supported_languages": null}, "macro.dbt.scalar_function_volatility_sql": {"name": "scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.scalar_function_volatility_sql", "macro_sql": "{% macro scalar_function_volatility_sql() %}\n {{ return(adapter.dispatch('scalar_function_volatility_sql', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5136378, "supported_languages": null}, "macro.dbt.default__scalar_function_volatility_sql": {"name": "default__scalar_function_volatility_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__scalar_function_volatility_sql", "macro_sql": "{% macro default__scalar_function_volatility_sql() %}\n {% set volatility = model.config.get('volatility') %}\n {% if volatility == 'deterministic' %}\n IMMUTABLE\n {% elif volatility == 'stable' %}\n STABLE\n {% elif volatility == 'non-deterministic' %}\n VOLATILE\n {% elif volatility != none %}\n {# This shouldn't happen unless a new volatility is invented #}\n {% do unsupported_volatility_warning(volatility) %}\n {% endif %}\n {# If no volatility is set, don't add anything and let the data warehouse default it #}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5139232, "supported_languages": null}, "macro.dbt.unsupported_volatility_warning": {"name": "unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.unsupported_volatility_warning", "macro_sql": "{% macro unsupported_volatility_warning(volatility) %}\n {{ return(adapter.dispatch('unsupported_volatility_warning', 'dbt')(volatility)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__unsupported_volatility_warning"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5140522, "supported_languages": null}, "macro.dbt.default__unsupported_volatility_warning": {"name": "default__unsupported_volatility_warning", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/scalar.sql", "original_file_path": "macros/materializations/functions/scalar.sql", "unique_id": "macro.dbt.default__unsupported_volatility_warning", "macro_sql": "{% macro default__unsupported_volatility_warning(volatility) %}\n {% set msg = \"Found `\" ~ volatility ~ \"` volatility specified on function `\" ~ model.name ~ \"`. This volatility is not supported by \" ~ adapter.type() ~ \", and will be ignored\" %}\n {% do exceptions.warn(msg) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5142379, "supported_languages": null}, "macro.dbt.function_execute_build_sql": {"name": "function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.function_execute_build_sql", "macro_sql": "{% macro function_execute_build_sql(build_sql, existing_relation, target_relation) %}\n {{ return(adapter.dispatch('function_execute_build_sql', 'dbt')(build_sql, existing_relation, target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5144992, "supported_languages": null}, "macro.dbt.default__function_execute_build_sql": {"name": "default__function_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/helpers.sql", "original_file_path": "macros/materializations/functions/helpers.sql", "unique_id": "macro.dbt.default__function_execute_build_sql", "macro_sql": "{% macro default__function_execute_build_sql(build_sql, existing_relation, target_relation) %}\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 {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5148559, "supported_languages": null}, "macro.dbt.get_aggregate_function_create_replace_signature": {"name": "get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_create_replace_signature", "macro_sql": "{% macro get_aggregate_function_create_replace_signature(target_relation) %}\n {{ return(adapter.dispatch('get_aggregate_function_create_replace_signature', 'dbt')(target_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_create_replace_signature"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.515344, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_create_replace_signature": {"name": "default__get_aggregate_function_create_replace_signature", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_create_replace_signature", "macro_sql": "{% macro default__get_aggregate_function_create_replace_signature(target_relation) %}\n CREATE OR REPLACE AGGREGATE FUNCTION {{ target_relation.render() }} ({{ get_formatted_aggregate_function_args()}})\n RETURNS {{ model.returns.data_type }}\n {{ get_function_language_specifier() }}\n {{ get_aggregate_function_volatility_specifier() }}\n {% if model.get('language') == 'python' %}\n {{ get_function_python_options() }}\n {% endif %}\n AS\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_formatted_aggregate_function_args", "macro.dbt.get_function_language_specifier", "macro.dbt.get_aggregate_function_volatility_specifier", "macro.dbt.get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5156639, "supported_languages": null}, "macro.dbt.get_formatted_aggregate_function_args": {"name": "get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_formatted_aggregate_function_args", "macro_sql": "{% macro get_formatted_aggregate_function_args() %}\n {{ return(adapter.dispatch('get_formatted_aggregate_function_args', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_formatted_aggregate_function_args"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.515788, "supported_languages": null}, "macro.dbt.default__get_formatted_aggregate_function_args": {"name": "default__get_formatted_aggregate_function_args", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_formatted_aggregate_function_args", "macro_sql": "{% macro default__get_formatted_aggregate_function_args() %}\n {# conveniently we can reuse the sql scalar function args #}\n {{ formatted_scalar_function_args_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.formatted_scalar_function_args_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.515878, "supported_languages": null}, "macro.dbt.get_function_language_specifier": {"name": "get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_language_specifier", "macro_sql": "{% macro get_function_language_specifier() %}\n {{ return(adapter.dispatch('get_function_language_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_language_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516002, "supported_languages": null}, "macro.dbt.default__get_function_language_specifier": {"name": "default__get_function_language_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_language_specifier", "macro_sql": "{% macro default__get_function_language_specifier() %}\n {% set language = model.get('language') %}\n {% if language == 'sql' %}\n {# generally you dont need to specify the language for sql functions #}\n {% elif language == 'python' %}\n LANGUAGE PYTHON\n {% else %}\n {{ 'LANGUAGE ' ~ language.upper() }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.51632, "supported_languages": null}, "macro.dbt.get_aggregate_function_volatility_specifier": {"name": "get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_aggregate_function_volatility_specifier", "macro_sql": "{% macro get_aggregate_function_volatility_specifier() %}\n {{ return(adapter.dispatch('get_aggregate_function_volatility_specifier', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_aggregate_function_volatility_specifier"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516439, "supported_languages": null}, "macro.dbt.default__get_aggregate_function_volatility_specifier": {"name": "default__get_aggregate_function_volatility_specifier", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_aggregate_function_volatility_specifier", "macro_sql": "{% macro default__get_aggregate_function_volatility_specifier() %}\n {{ scalar_function_volatility_sql() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.scalar_function_volatility_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516513, "supported_languages": null}, "macro.dbt.get_function_python_options": {"name": "get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.get_function_python_options", "macro_sql": "{% macro get_function_python_options() %}\n {{ return(adapter.dispatch('get_function_python_options', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_function_python_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516621, "supported_languages": null}, "macro.dbt.default__get_function_python_options": {"name": "default__get_function_python_options", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/aggregate.sql", "original_file_path": "macros/materializations/functions/aggregate.sql", "unique_id": "macro.dbt.default__get_function_python_options", "macro_sql": "{% macro default__get_function_python_options() %}\n RUNTIME_VERSION = '{{ model.config.get('runtime_version') }}'\n HANDLER = '{{ model.config.get('entry_point') }}'\n {% set packages = model.config.get('packages', []) %}\n {% if packages %}\n PACKAGES = ('{{ packages | join(\"','\") }}')\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.516875, "supported_languages": null}, "macro.dbt.materialization_function_default": {"name": "materialization_function_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/functions/function.sql", "original_file_path": "macros/materializations/functions/function.sql", "unique_id": "macro.dbt.materialization_function_default", "macro_sql": "{% materialization function, default, supported_languages=['sql', 'python'] %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.Function) %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% set function_config = this.get_function_config(model) %}\n {% set macro_name = this.get_function_macro_name(function_config) %}\n\n {# Doing this aliasing of adapter.dispatch is a hacky way to disable the static analysis of actually calling adapter.dispatch #}\n {# This is necessary because the static analysis breaks being able to dynamically pass a macro_name #}\n {% set _dispatch = adapter.dispatch %}\n\n {% set build_sql = _dispatch(macro_name, 'dbt')(target_relation) %}\n {{ function_execute_build_sql(build_sql, existing_relation, target_relation) }}\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.run_hooks", "macro.dbt.function_execute_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5175629, "supported_languages": ["sql", "python"]}, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5178602, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518125, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518466, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518653, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.518864, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5191329, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5193129, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.519648, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.51992, "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_duckdb.duckdb__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5200489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.520194, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.52033, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.520753, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.521687, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.521976, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5221791, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.522367, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.522534, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.522769, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.52294, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5232892, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.523626, "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_duckdb.duckdb__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.523777, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.524006, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5242612, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.524457, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.524746, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525106, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525367, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525523, "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.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525734, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.525833, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526046, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526164, "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.default__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5264, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5265028, "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.default__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526707, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.526884, "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.default__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.527284, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5274189, "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.default__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.527615, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.52772, "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.default__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.527911, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.528011, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.528595, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5286772, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5290508, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.529175, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.529269, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530124, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530387, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530616, "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.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5307992, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.530884, "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.default__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.531073, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5311759, "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.default__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5313668, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.531468, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.531942, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.532139, "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_duckdb.duckdb__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.532437, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.532911, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.533234, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5333602, "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_duckdb.get_column_names", "macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.53348, "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.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.533658, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5337431, "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.default__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.534136, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.534237, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.534994, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535127, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535289, "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.default__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535478, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535583, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5358489, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.535979, "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_duckdb.duckdb__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536099, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536405, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536621, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5368278, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.536999, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5373702, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.538485, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.538877, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.539073, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.539627, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.540444, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.540951, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5411131, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.541271, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5413241, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5417101, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542111, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542269, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542523, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.542756, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54295, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5431712, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543285, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543458, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543547, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.543871, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.544158, "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_duckdb.duckdb__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.544289, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5446458, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.544825, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5449002, "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_duckdb.duckdb__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.545192, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54531, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54547, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5455291, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.545723, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.545818, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546012, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546112, "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_duckdb.duckdb__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546436, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546722, "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_duckdb.duckdb__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.546944, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5470579, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5472598, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5473568, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5475829, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.547797, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5479748, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548086, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548257, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548369, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5485609, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54865, "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_duckdb.duckdb__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.54882, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.548893, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549151, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549249, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549421, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.549493, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550101, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550206, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550315, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550418, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550529, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550633, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550742, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.550863, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5509708, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551073, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5511801, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551278, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551392, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5514932, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551698, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5517938, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.551973, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.552046, "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_duckdb.duckdb__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5522728, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.552526, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.55263, "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_duckdb.duckdb__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.552898, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553015, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553175, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553374, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553469, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553739, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.553916, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5541298, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5542321, "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_duckdb.duckdb__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.554471, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5545979, "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_duckdb.duckdb__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.554705, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.554828, "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_duckdb.duckdb__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555181, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555286, "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_duckdb.duckdb__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555388, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5554612, "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_duckdb.duckdb__snapshot_get_time", "macro.dbt.get_column_schema_from_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5557451, "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.default__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555867, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.555922, "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.default__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5560389, "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.default__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.556222, "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_duckdb.duckdb__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.556585, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.55668, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5567858, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557059, "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.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557187, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557282, "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.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557386, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5574698, "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.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.557997, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.558109, "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_duckdb.duckdb__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5583758, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5585861, "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.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.558749, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5589702, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559094, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559218, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559387, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559766, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.559927, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560023, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560365, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560713, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.560857, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.561074, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.561273, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5614238, "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.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562311, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562392, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562506, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562583, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5628211, "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.default__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.562946, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563036, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563187, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563329, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563484, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563623, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.563776, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.564244, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.564373, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.564547, "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_duckdb.duckdb__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5647008, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5655491, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.565835, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.565961, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566092, "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_duckdb.duckdb__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566603, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566726, "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_duckdb.duckdb__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5668638, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.566984, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.567168, "supported_languages": null}, "macro.dbt.validate_doc_columns": {"name": "validate_doc_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.validate_doc_columns", "macro_sql": "{% macro validate_doc_columns(relation, column_dict, existing_column_names) %}\n {% set existing_lower = existing_column_names | map(\"lower\") | list %}\n {% set missing = [] %}\n {% for col_name in column_dict %}\n {% if col_name | lower not in existing_lower %}\n {% do missing.append(col_name) %}\n {% endif %}\n {% endfor %}\n {% if missing | length > 0 %}\n {{ exceptions.warn(\"In relation \" ~ relation.render() ~ \": The following columns are specified in the schema but are not present in the database: \" ~ missing | join(\", \")) }}\n {% endif %}\n {% set filtered = {} %}\n {% for col_name in column_dict if col_name | lower in existing_lower %}\n {% do filtered.update({col_name: column_dict[col_name]}) %}\n {% endfor %}\n {{ return(filtered) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.567786, "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 {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% set filtered_columns = validate_doc_columns(relation, model.columns, existing_columns) %}\n {% set alter_comment_sql = alter_column_comment(relation, filtered_columns) %}\n {% if alter_comment_sql and alter_comment_sql | trim | length > 0 %}\n {% do run_query(alter_comment_sql) %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.validate_doc_columns", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.568349, "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.default__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569004, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5691829, "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_duckdb.duckdb__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569323, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569501, "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.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569628, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5697432, "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_duckdb.duckdb__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.569868, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5700412, "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_duckdb.duckdb__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570186, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5704021, "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_duckdb.duckdb__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570527, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570642, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570837, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.570952, "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.default__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571062, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571168, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571306, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.571429, "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_duckdb.duckdb__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.572341, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.572451, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.572663, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.57286, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.573007, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.573153, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.573277, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.574062, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5742998, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.574425, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.574662, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5748181, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.575262, "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_duckdb.duckdb__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.575437, "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.expanded_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.575988, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.578048, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.57846, "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 {#-- For string fixture values, strip varchar length to prevent silent truncation (GH-11974) --#}\n {%- if column_value is string and 'varying' in column_type -%}\n {%- set column_type = column_type.split('(')[0] -%}\n {%- endif -%}\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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.579351, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.579499, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5795681, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.580228, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5803342, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.580995, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.581279, "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 -%}\n {# Handle dbt.config.meta_get() calls - use separate dict to avoid overwriting native configs #}\n {%- set meta_dict = {} -%}\n {%- if model.config.meta_keys_used -%}\n {% set meta_dbt_used = zip(model.config.meta_keys_used, model.config.meta_keys_defaults) | list %}\n {%- for key, default in meta_dbt_used -%}\n {%- if model.config.meta and key in model.config.meta -%}\n {%- set value = model.config.meta[key] -%}\n {%- else -%}\n {%- set value = default -%}\n {%- endif -%}\n {%- do meta_dict.update({key: value}) -%}\n {%- endfor -%}\n {%- endif -%}\nconfig_dict = {{ config_dict }}\nmeta_dict = {{ meta_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5820658, "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\n @staticmethod\n def meta_get(key, default=None):\n return meta_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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.582408, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.5824609, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.582796, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.582994, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.583225, "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}, "config": {"meta": {}, "docs": {"show": true, "node_color": null}}, "patch_path": null, "arguments": [], "created_at": 1775999115.583426, "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"}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.ecom.stg_products": ["source.ecom.raw.products"], "model.ecom.stg_sellers": ["source.ecom.raw.sellers"], "model.ecom.stg_customers": ["source.ecom.raw.customers"], "model.ecom.stg_orders": ["model.ecom.stg_customers", "source.ecom.raw.orders"], "model.ecom.stg_order_items": ["model.ecom.stg_orders", "source.ecom.raw.order_items"], "model.ecom.stg_sessions": ["source.ecom.raw.sessions"], "test.ecom.unique_stg_customers_customer_id.c7614daada": ["model.ecom.stg_customers"], "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa": ["model.ecom.stg_customers"], "test.ecom.unique_stg_customers_email.1ebcb2333e": ["model.ecom.stg_customers"], "test.ecom.not_null_stg_customers_email.d7cf761533": ["model.ecom.stg_customers"], "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40": ["model.ecom.stg_customers"], "test.ecom.not_null_stg_customers_signup_date.ef12d9c335": ["model.ecom.stg_customers"], "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8": ["model.ecom.stg_sellers"], "test.ecom.not_null_stg_sellers_seller_id.35d0bce315": ["model.ecom.stg_sellers"], "test.ecom.not_null_stg_sellers_rating.973b52995f": ["model.ecom.stg_sellers"], "test.ecom.unique_stg_products_product_id.7d950a1467": ["model.ecom.stg_products"], "test.ecom.not_null_stg_products_product_id.6373b0acf3": ["model.ecom.stg_products"], "test.ecom.not_null_stg_products_seller_id.0ba77d68d6": ["model.ecom.stg_products"], "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360": ["model.ecom.stg_products", "model.ecom.stg_sellers"], "test.ecom.unique_stg_orders_order_id.e3b841c71a": ["model.ecom.stg_orders"], "test.ecom.not_null_stg_orders_order_id.81cfe2fe64": ["model.ecom.stg_orders"], "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5": ["model.ecom.stg_orders"], "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500": ["model.ecom.stg_customers", "model.ecom.stg_orders"], "test.ecom.not_null_stg_orders_order_date.2177a3e8bb": ["model.ecom.stg_orders"], "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9": ["model.ecom.stg_orders"], "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2": ["model.ecom.stg_orders"], "test.ecom.unique_stg_order_items_order_item_id.90e333a108": ["model.ecom.stg_order_items"], "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35": ["model.ecom.stg_order_items"], "test.ecom.not_null_stg_order_items_order_id.2063801f96": ["model.ecom.stg_order_items"], "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54": ["model.ecom.stg_order_items", "model.ecom.stg_orders"], "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6": ["model.ecom.stg_order_items"], "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c": ["model.ecom.stg_order_items", "model.ecom.stg_products"], "test.ecom.unique_stg_sessions_session_id.ce45726d03": ["model.ecom.stg_sessions"], "test.ecom.not_null_stg_sessions_session_id.2e872a126d": ["model.ecom.stg_sessions"], "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e": ["model.ecom.stg_sessions"], "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4": ["model.ecom.stg_sessions"], "source.ecom.raw.customers": [], "source.ecom.raw.sellers": [], "source.ecom.raw.products": [], "source.ecom.raw.orders": [], "source.ecom.raw.order_items": [], "source.ecom.raw.sessions": []}, "child_map": {"model.ecom.stg_products": ["test.ecom.not_null_stg_products_product_id.6373b0acf3", "test.ecom.not_null_stg_products_seller_id.0ba77d68d6", "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "test.ecom.unique_stg_products_product_id.7d950a1467"], "model.ecom.stg_sellers": ["test.ecom.not_null_stg_sellers_rating.973b52995f", "test.ecom.not_null_stg_sellers_seller_id.35d0bce315", "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8"], "model.ecom.stg_customers": ["model.ecom.stg_orders", "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40", "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa", "test.ecom.not_null_stg_customers_email.d7cf761533", "test.ecom.not_null_stg_customers_signup_date.ef12d9c335", "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "test.ecom.unique_stg_customers_customer_id.c7614daada", "test.ecom.unique_stg_customers_email.1ebcb2333e"], "model.ecom.stg_orders": ["model.ecom.stg_order_items", "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9", "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2", "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5", "test.ecom.not_null_stg_orders_order_date.2177a3e8bb", "test.ecom.not_null_stg_orders_order_id.81cfe2fe64", "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "test.ecom.unique_stg_orders_order_id.e3b841c71a"], "model.ecom.stg_order_items": ["test.ecom.not_null_stg_order_items_order_id.2063801f96", "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35", "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6", "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "test.ecom.unique_stg_order_items_order_item_id.90e333a108"], "model.ecom.stg_sessions": ["test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4", "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e", "test.ecom.not_null_stg_sessions_session_id.2e872a126d", "test.ecom.unique_stg_sessions_session_id.ce45726d03"], "test.ecom.unique_stg_customers_customer_id.c7614daada": [], "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa": [], "test.ecom.unique_stg_customers_email.1ebcb2333e": [], "test.ecom.not_null_stg_customers_email.d7cf761533": [], "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40": [], "test.ecom.not_null_stg_customers_signup_date.ef12d9c335": [], "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8": [], "test.ecom.not_null_stg_sellers_seller_id.35d0bce315": [], "test.ecom.not_null_stg_sellers_rating.973b52995f": [], "test.ecom.unique_stg_products_product_id.7d950a1467": [], "test.ecom.not_null_stg_products_product_id.6373b0acf3": [], "test.ecom.not_null_stg_products_seller_id.0ba77d68d6": [], "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360": [], "test.ecom.unique_stg_orders_order_id.e3b841c71a": [], "test.ecom.not_null_stg_orders_order_id.81cfe2fe64": [], "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5": [], "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500": [], "test.ecom.not_null_stg_orders_order_date.2177a3e8bb": [], "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9": [], "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2": [], "test.ecom.unique_stg_order_items_order_item_id.90e333a108": [], "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35": [], "test.ecom.not_null_stg_order_items_order_id.2063801f96": [], "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54": [], "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6": [], "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c": [], "test.ecom.unique_stg_sessions_session_id.ce45726d03": [], "test.ecom.not_null_stg_sessions_session_id.2e872a126d": [], "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e": [], "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4": [], "source.ecom.raw.customers": ["model.ecom.stg_customers"], "source.ecom.raw.sellers": ["model.ecom.stg_sellers"], "source.ecom.raw.products": ["model.ecom.stg_products"], "source.ecom.raw.orders": ["model.ecom.stg_orders"], "source.ecom.raw.order_items": ["model.ecom.stg_order_items"], "source.ecom.raw.sessions": ["model.ecom.stg_sessions"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}, "unit_tests": {}, "functions": {}} \ No newline at end of file diff --git a/ecom/target/partial_parse.msgpack b/ecom/target/partial_parse.msgpack deleted file mode 100644 index 8b96f7459ed9a5e0144d11146270e386149c1136..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 595159 zcmeFadyr(;c^^iAlx(A1v7(YHPGTpQ1FohA*zI}0797$G?2v@D*kyJXWM~L(-R{0U z)7+l!LEr9O3>T|{Ny@U7R1A=m9m|R>nZN>A5PZK$ky~Q&ms6EWQg$+=#7e0YRVDv8 zNhMBPt}^rczVAHmJ-1&oyR%EpR*{%K_dLJzz0Y^P^W(Qoz1r^7lk~@Ld)GI1@JFkh z)H*xmw6|5+?RM(@S`VL2zFv=eaWzhp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={p$GbpXBrWk+)x3HOIMpyR6-}Uo}2BQTZe6IdA`8bp;ti diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql deleted file mode 100644 index ebd148d..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_customers_cb6541bdfe84b095a285bc588250ad14.sql +++ /dev/null @@ -1,36 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - customer_tier as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_customers" - group by customer_tier - -) - -select * -from all_values -where value_field not in ( - 'bronze','silver','gold' -) - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql deleted file mode 100644 index fd00e0f..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_438d464f50d5ac4083558b138f2a2e48.sql +++ /dev/null @@ -1,36 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - order_status as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_orders" - group by order_status - -) - -select * -from all_values -where value_field not in ( - 'pending','processing','shipped','delivered','cancelled','returned' -) - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql deleted file mode 100644 index e07b965..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_orders_8aab560aa5989dcef0692b4b063c0cfa.sql +++ /dev/null @@ -1,36 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - payment_method as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_orders" - group by payment_method - -) - -select * -from all_values -where value_field not in ( - 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet' -) - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql deleted file mode 100644 index 1f0f685..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_5e2893171212959110c437f6a1c9f537.sql +++ /dev/null @@ -1,36 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - device_type as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_sessions" - group by device_type - -) - -select * -from all_values -where value_field not in ( - 'mobile','desktop','tablet' -) - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql b/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql deleted file mode 100644 index 9349346..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/accepted_values_stg_sessions_platform__ios__android__web.sql +++ /dev/null @@ -1,36 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with all_values as ( - - select - platform as value_field, - count(*) as n_records - - from "ecom"."main_staging"."stg_sessions" - group by platform - -) - -select * -from all_values -where value_field not in ( - 'ios','android','web' -) - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql deleted file mode 100644 index ee46d49..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_customer_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select customer_id -from "ecom"."main_staging"."stg_customers" -where customer_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql deleted file mode 100644 index c912619..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_email.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select email -from "ecom"."main_staging"."stg_customers" -where email is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql deleted file mode 100644 index 74c9bd8..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_customers_signup_date.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select signup_date -from "ecom"."main_staging"."stg_customers" -where signup_date is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql deleted file mode 100644 index 15218ab..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_id -from "ecom"."main_staging"."stg_order_items" -where order_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql deleted file mode 100644 index 0dd85d0..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_order_item_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_item_id -from "ecom"."main_staging"."stg_order_items" -where order_item_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql deleted file mode 100644 index cb77eeb..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_order_items_product_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select product_id -from "ecom"."main_staging"."stg_order_items" -where product_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql deleted file mode 100644 index f71151e..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_customer_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select customer_id -from "ecom"."main_staging"."stg_orders" -where customer_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql deleted file mode 100644 index d32c01b..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_date.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_date -from "ecom"."main_staging"."stg_orders" -where order_date is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql deleted file mode 100644 index 77c67a0..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_orders_order_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select order_id -from "ecom"."main_staging"."stg_orders" -where order_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql deleted file mode 100644 index 57b2812..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_product_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select product_id -from "ecom"."main_staging"."stg_products" -where product_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql deleted file mode 100644 index 88aaec8..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_products_seller_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select seller_id -from "ecom"."main_staging"."stg_products" -where seller_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql deleted file mode 100644 index f379916..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_rating.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select rating -from "ecom"."main_staging"."stg_sellers" -where rating is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql deleted file mode 100644 index 1a37ebc..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sellers_seller_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select seller_id -from "ecom"."main_staging"."stg_sellers" -where seller_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql deleted file mode 100644 index b8c6706..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/not_null_stg_sessions_session_id.sql +++ /dev/null @@ -1,25 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - - - -select session_id -from "ecom"."main_staging"."stg_sessions" -where session_id is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql deleted file mode 100644 index 0d9dcd9..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_85fcc371bcae46211ede4a7fca07283f.sql +++ /dev/null @@ -1,39 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select product_id as from_field - from "ecom"."main_staging"."stg_order_items" - where product_id is not null -), - -parent as ( - select product_id as to_field - from "ecom"."main_staging"."stg_products" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql deleted file mode 100644 index 845ffea..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_order_items_b3d7cdbd08ebfad01e3226c01c10bba0.sql +++ /dev/null @@ -1,39 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select order_id as from_field - from "ecom"."main_staging"."stg_order_items" - where order_id is not null -), - -parent as ( - select order_id as to_field - from "ecom"."main_staging"."stg_orders" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql deleted file mode 100644 index 81fe34c..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_orders_96411fe0c89b49c3f4da955dfd358ba0.sql +++ /dev/null @@ -1,39 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select customer_id as from_field - from "ecom"."main_staging"."stg_orders" - where customer_id is not null -), - -parent as ( - select customer_id as to_field - from "ecom"."main_staging"."stg_customers" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql b/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql deleted file mode 100644 index a5365ea..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/relationships_stg_products_150cf84beadbe29e9fadd6ea69c29620.sql +++ /dev/null @@ -1,39 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -with child as ( - select seller_id as from_field - from "ecom"."main_staging"."stg_products" - where seller_id is not null -), - -parent as ( - select seller_id as to_field - from "ecom"."main_staging"."stg_sellers" -) - -select - from_field - -from child -left join parent - on child.from_field = parent.to_field - -where parent.to_field is null - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql deleted file mode 100644 index 1216ba5..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_customer_id.sql +++ /dev/null @@ -1,28 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - customer_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_customers" -where customer_id is not null -group by customer_id -having count(*) > 1 - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql deleted file mode 100644 index 20c4105..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_customers_email.sql +++ /dev/null @@ -1,28 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - email as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_customers" -where email is not null -group by email -having count(*) > 1 - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql deleted file mode 100644 index 0e31779..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_order_items_order_item_id.sql +++ /dev/null @@ -1,28 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - order_item_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_order_items" -where order_item_id is not null -group by order_item_id -having count(*) > 1 - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql deleted file mode 100644 index 03df3b1..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_orders_order_id.sql +++ /dev/null @@ -1,28 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - order_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_orders" -where order_id is not null -group by order_id -having count(*) > 1 - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql deleted file mode 100644 index 109ca8d..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_products_product_id.sql +++ /dev/null @@ -1,28 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - product_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_products" -where product_id is not null -group by product_id -having count(*) > 1 - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql deleted file mode 100644 index 8e26a26..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sellers_seller_id.sql +++ /dev/null @@ -1,28 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - seller_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_sellers" -where seller_id is not null -group by seller_id -having count(*) > 1 - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql b/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql deleted file mode 100644 index 7ec292f..0000000 --- a/ecom/target/run/ecom/models/staging/_schema.yml/unique_stg_sessions_session_id.sql +++ /dev/null @@ -1,28 +0,0 @@ - - - select - count(*) as failures, - count(*) != 0 as should_warn, - count(*) != 0 as should_error - from ( - - - - - - -select - session_id as unique_field, - count(*) as n_records - -from "ecom"."main_staging"."stg_sessions" -where session_id is not null -group by session_id -having count(*) > 1 - - - - - - - ) dbt_internal_test \ No newline at end of file diff --git a/ecom/target/run/ecom/models/staging/stg_customers.sql b/ecom/target/run/ecom/models/staging/stg_customers.sql deleted file mode 100644 index 957b81f..0000000 --- a/ecom/target/run/ecom/models/staging/stg_customers.sql +++ /dev/null @@ -1,61 +0,0 @@ - - - create view "ecom"."main_staging"."stg_customers__dbt_tmp" as ( - /* - stg_customers - ------------- - - Renames columns to project convention - - Casts signup_date to DATE - - Deduplicates re-registered customers (keeps the earliest signup per email) - - Replaces empty city strings with NULL - - Excludes soft-deleted records -*/ - -with source as ( - select * from "ecom"."raw"."customers" -), - -renamed as ( - select - customer_id, - first_name, - last_name, - lower(trim(email)) as email, - phone, - nullif(trim(city), '') as city, - country, - lower(customer_tier) as customer_tier, - cast(signup_date as date) as signup_date, - cast(is_deleted as boolean) as is_deleted - from source -), - -deduped as ( - -- Keep earliest signup per email (first registration wins) - select *, - row_number() over ( - partition by email - order by signup_date asc - ) as rn - from renamed -), - -final as ( - select - customer_id, - first_name, - last_name, - email, - phone, - city, - country, - customer_tier, - signup_date, - is_deleted - from deduped - where rn = 1 - and is_deleted = false -) - -select * from final - ); diff --git a/ecom/target/run/ecom/models/staging/stg_order_items.sql b/ecom/target/run/ecom/models/staging/stg_order_items.sql deleted file mode 100644 index cfaab13..0000000 --- a/ecom/target/run/ecom/models/staging/stg_order_items.sql +++ /dev/null @@ -1,51 +0,0 @@ - - - create view "ecom"."main_staging"."stg_order_items__dbt_tmp" as ( - /* - stg_order_items - --------------- - - Casts numeric columns - - Adds derived column: is_flash_sale flag when unit_price < list_price - - Filters items whose order_id no longer exists after stg_orders cleanup -*/ - -with source as ( - select * from "ecom"."raw"."order_items" -), - -valid_orders as ( - select order_id from "ecom"."main_staging"."stg_orders" -), - -casted as ( - -- cast first in a separate CTE so arithmetic below works on typed values - select - order_item_id, - order_id, - product_id, - seller_id, - cast(quantity as integer) as quantity, - cast(unit_price as decimal(10,2)) as unit_price, - cast(list_price as decimal(10,2)) as list_price, - cast(discount_pct as decimal(6,4)) as discount_pct - from source - where order_id in (select order_id from valid_orders) -), - -renamed as ( - select - order_item_id, - order_id, - product_id, - seller_id, - quantity, - unit_price, - list_price, - discount_pct, - unit_price < list_price as is_flash_sale, - round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue - from casted -) - -select * from renamed - ); diff --git a/ecom/target/run/ecom/models/staging/stg_orders.sql b/ecom/target/run/ecom/models/staging/stg_orders.sql deleted file mode 100644 index c0ca07c..0000000 --- a/ecom/target/run/ecom/models/staging/stg_orders.sql +++ /dev/null @@ -1,59 +0,0 @@ - - - create view "ecom"."main_staging"."stg_orders__dbt_tmp" as ( - /* - stg_orders - ---------- - - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy). - We COALESCE two TRY_STRPTIME calls to handle both safely. - - Filters rows where the date cannot be parsed (data quality guard) - - Filters orphaned orders (customer_id not in stg_customers) - - Casts and standardises order_status and payment_method -*/ - -with source as ( - select * from "ecom"."raw"."orders" -), - -date_parsed as ( - select - order_id, - customer_id, - -- Try ISO first, then dd/mm/yyyy — whichever parses wins - coalesce( - try_strptime(order_date, '%Y-%m-%d'), - try_strptime(order_date, '%d/%m/%Y') - ) as order_date, - order_status, - payment_method, - shipping_city, - cast(discount_amount as decimal(10,2)) as discount_amount, - nullif(trim(coupon_code), '') as coupon_code, - lower(platform) as platform - from source -), - -valid_customers as ( - select customer_id from "ecom"."main_staging"."stg_customers" -), - -final as ( - select - o.order_id, - o.customer_id, - o.order_date, - o.order_status, - o.payment_method, - o.shipping_city, - o.discount_amount, - o.coupon_code, - o.platform - from date_parsed o - -- Drop unparseable dates - where o.order_date is not null - -- Drop orphaned customer_ids (referential integrity fix) - and o.customer_id in (select customer_id from valid_customers) -) - -select * from final - ); diff --git a/ecom/target/run/ecom/models/staging/stg_products.sql b/ecom/target/run/ecom/models/staging/stg_products.sql deleted file mode 100644 index e35ce4a..0000000 --- a/ecom/target/run/ecom/models/staging/stg_products.sql +++ /dev/null @@ -1,37 +0,0 @@ - - - create view "ecom"."main_staging"."stg_products__dbt_tmp" as ( - /* - stg_products - ------------ - - Casts price columns and boolean - - Derives gross_margin_pct for later mart use - - Filters inactive products are kept (marts can filter by is_active) -*/ - -with source as ( - select * from "ecom"."raw"."products" -), - -final as ( - select - product_id, - trim(product_name) as product_name, - trim(category) as category, - trim(subcategory) as subcategory, - seller_id, - cast(list_price as decimal(10,2)) as list_price, - cast(cost_price as decimal(10,2)) as cost_price, - round( - (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2))) - / nullif(cast(list_price as decimal(10,2)), 0), - 4 - ) as gross_margin_pct, - cast(is_active as boolean) as is_active, - cast(stock_qty as integer) as stock_qty, - cast(created_at as date) as created_at - from source -) - -select * from final - ); diff --git a/ecom/target/run/ecom/models/staging/stg_sellers.sql b/ecom/target/run/ecom/models/staging/stg_sellers.sql deleted file mode 100644 index ac27056..0000000 --- a/ecom/target/run/ecom/models/staging/stg_sellers.sql +++ /dev/null @@ -1,30 +0,0 @@ - - - create view "ecom"."main_staging"."stg_sellers__dbt_tmp" as ( - /* - stg_sellers - ----------- - - Casts joined_date to DATE - - Casts is_verified to boolean - - Standardises category casing -*/ - -with source as ( - select * from "ecom"."raw"."sellers" -), - -final as ( - select - seller_id, - trim(seller_name) as seller_name, - trim(category) as category, - city, - cast(is_verified as boolean) as is_verified, - cast(joined_date as date) as joined_date, - cast(rating as decimal(3,1)) as rating, - cast(total_reviews as integer) as total_reviews - from source -) - -select * from final - ); diff --git a/ecom/target/run/ecom/models/staging/stg_sessions.sql b/ecom/target/run/ecom/models/staging/stg_sessions.sql deleted file mode 100644 index 501c716..0000000 --- a/ecom/target/run/ecom/models/staging/stg_sessions.sql +++ /dev/null @@ -1,32 +0,0 @@ - - - create view "ecom"."main_staging"."stg_sessions__dbt_tmp" as ( - /* - stg_sessions - ------------ - - Null customer_id = anonymous session (kept, not filtered) - - Derives session_duration_mins for readability - - Casts is_converted to boolean -*/ - -with source as ( - select * from "ecom"."raw"."sessions" -), - -final as ( - select - session_id, - nullif(trim(customer_id), '') as customer_id, -- preserve anonymous - cast(session_date as date) as session_date, - lower(platform) as platform, - lower(device_type) as device_type, - cast(page_views as integer) as page_views, - cast(duration_seconds as integer) as duration_seconds, - round(cast(duration_seconds as decimal) / 60, 2) as duration_mins, - cast(is_converted as boolean) as is_converted, - nullif(trim(utm_source), '') as utm_source - from source -) - -select * from final - ); diff --git a/ecom/target/run_results.json b/ecom/target/run_results.json deleted file mode 100644 index 473e954..0000000 --- a/ecom/target/run_results.json +++ /dev/null @@ -1 +0,0 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v6.json", "dbt_version": "1.11.8", "generated_at": "2026-04-12T13:05:16.692128Z", "invocation_id": "c1e051fe-2da2-4723-894a-d9f18a60ef10", "invocation_started_at": "2026-04-12T13:05:15.154863Z", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.302425Z", "completed_at": "2026-04-12T13:05:16.304512Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.305263Z", "completed_at": "2026-04-12T13:05:16.361034Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.06878376007080078, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_sessions", "compiled": true, "compiled_code": "/*\n stg_sessions\n ------------\n - Null customer_id = anonymous session (kept, not filtered)\n - Derives session_duration_mins for readability\n - Casts is_converted to boolean\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"sessions\"\n),\n\nfinal as (\n select\n session_id,\n nullif(trim(customer_id), '') as customer_id, -- preserve anonymous\n cast(session_date as date) as session_date,\n lower(platform) as platform,\n lower(device_type) as device_type,\n cast(page_views as integer) as page_views,\n cast(duration_seconds as integer) as duration_seconds,\n round(cast(duration_seconds as decimal) / 60, 2) as duration_mins,\n cast(is_converted as boolean) as is_converted,\n nullif(trim(utm_source), '') as utm_source\n from source\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_sessions\"", "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.300772Z", "completed_at": "2026-04-12T13:05:16.305102Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.325175Z", "completed_at": "2026-04-12T13:05:16.364412Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.07092690467834473, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_sellers", "compiled": true, "compiled_code": "/*\n stg_sellers\n -----------\n - Casts joined_date to DATE\n - Casts is_verified to boolean\n - Standardises category casing\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"sellers\"\n),\n\nfinal as (\n select\n seller_id,\n trim(seller_name) as seller_name,\n trim(category) as category,\n city,\n cast(is_verified as boolean) as is_verified,\n cast(joined_date as date) as joined_date,\n cast(rating as decimal(3,1)) as rating,\n cast(total_reviews as integer) as total_reviews\n from source\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_sellers\"", "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.294968Z", "completed_at": "2026-04-12T13:05:16.304920Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.323605Z", "completed_at": "2026-04-12T13:05:16.365507Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07328391075134277, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_customers", "compiled": true, "compiled_code": "/*\n stg_customers\n -------------\n - Renames columns to project convention\n - Casts signup_date to DATE\n - Deduplicates re-registered customers (keeps the earliest signup per email)\n - Replaces empty city strings with NULL\n - Excludes soft-deleted records\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"customers\"\n),\n\nrenamed as (\n select\n customer_id,\n first_name,\n last_name,\n lower(trim(email)) as email,\n phone,\n nullif(trim(city), '') as city,\n country,\n lower(customer_tier) as customer_tier,\n cast(signup_date as date) as signup_date,\n cast(is_deleted as boolean) as is_deleted\n from source\n),\n\ndeduped as (\n -- Keep earliest signup per email (first registration wins)\n select *,\n row_number() over (\n partition by email\n order by signup_date asc\n ) as rn\n from renamed\n),\n\nfinal as (\n select\n customer_id,\n first_name,\n last_name,\n email,\n phone,\n city,\n country,\n customer_tier,\n signup_date,\n is_deleted\n from deduped\n where rn = 1\n and is_deleted = false\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_customers\"", "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.299049Z", "completed_at": "2026-04-12T13:05:16.304727Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.317793Z", "completed_at": "2026-04-12T13:05:16.366152Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07330107688903809, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_products", "compiled": true, "compiled_code": "/*\n stg_products\n ------------\n - Casts price columns and boolean\n - Derives gross_margin_pct for later mart use\n - Filters inactive products are kept (marts can filter by is_active)\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"products\"\n),\n\nfinal as (\n select\n product_id,\n trim(product_name) as product_name,\n trim(category) as category,\n trim(subcategory) as subcategory,\n seller_id,\n cast(list_price as decimal(10,2)) as list_price,\n cast(cost_price as decimal(10,2)) as cost_price,\n round(\n (cast(list_price as decimal(10,2)) - cast(cost_price as decimal(10,2)))\n / nullif(cast(list_price as decimal(10,2)), 0),\n 4\n ) as gross_margin_pct,\n cast(is_active as boolean) as is_active,\n cast(stock_qty as integer) as stock_qty,\n cast(created_at as date) as created_at\n from source\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_products\"", "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.377773Z", "completed_at": "2026-04-12T13:05:16.385919Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.386124Z", "completed_at": "2026-04-12T13:05:16.407130Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.039494991302490234, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_sessions_session_id.2e872a126d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect session_id\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.382184Z", "completed_at": "2026-04-12T13:05:16.392114Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.395545Z", "completed_at": "2026-04-12T13:05:16.409332Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0408940315246582, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_sessions_session_id.ce45726d03", "compiled": true, "compiled_code": "\n \n \n\nselect\n session_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sessions\"\nwhere session_id is not null\ngroup by session_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.375469Z", "completed_at": "2026-04-12T13:05:16.395187Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.398021Z", "completed_at": "2026-04-12T13:05:16.410292Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04242515563964844, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_sessions_platform__ios__android__web.eeae14ec9e", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n platform as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by platform\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'ios','android','web'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.372625Z", "completed_at": "2026-04-12T13:05:16.395369Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.399244Z", "completed_at": "2026-04-12T13:05:16.413338Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.044567108154296875, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_sessions_device_type__mobile__desktop__tablet.bd497599d4", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n device_type as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_sessions\"\n group by device_type\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'mobile','desktop','tablet'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.421128Z", "completed_at": "2026-04-12T13:05:16.428068Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.430434Z", "completed_at": "2026-04-12T13:05:16.441229Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.026391983032226562, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_sellers_seller_id.35d0bce315", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.417095Z", "completed_at": "2026-04-12T13:05:16.423957Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.426480Z", "completed_at": "2026-04-12T13:05:16.442180Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.030900239944458008, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_sellers_rating.973b52995f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect rating\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere rating is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.424447Z", "completed_at": "2026-04-12T13:05:16.431741Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.432208Z", "completed_at": "2026-04-12T13:05:16.444533Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.028191089630126953, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_sellers_seller_id.cb2e34d4b8", "compiled": true, "compiled_code": "\n \n \n\nselect\n seller_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_sellers\"\nwhere seller_id is not null\ngroup by seller_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.428279Z", "completed_at": "2026-04-12T13:05:16.433874Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.434500Z", "completed_at": "2026-04-12T13:05:16.447918Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.027422189712524414, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_customers_customer_tier__bronze__silver__gold.414fa1ad40", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n customer_tier as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_customers\"\n group by customer_tier\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'bronze','silver','gold'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.452247Z", "completed_at": "2026-04-12T13:05:16.463493Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.463954Z", "completed_at": "2026-04-12T13:05:16.477556Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.029826641082763672, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_customers_customer_id.e2cfb1f9aa", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere customer_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.459071Z", "completed_at": "2026-04-12T13:05:16.465641Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.468449Z", "completed_at": "2026-04-12T13:05:16.479307Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03195381164550781, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_customers_signup_date.ef12d9c335", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect signup_date\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere signup_date is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.455862Z", "completed_at": "2026-04-12T13:05:16.461727Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.462221Z", "completed_at": "2026-04-12T13:05:16.480066Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.033331871032714844, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_customers_email.d7cf761533", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect email\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.465845Z", "completed_at": "2026-04-12T13:05:16.470777Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.471494Z", "completed_at": "2026-04-12T13:05:16.482542Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.023607730865478516, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_customers_customer_id.c7614daada", "compiled": true, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.492922Z", "completed_at": "2026-04-12T13:05:16.500702Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.501580Z", "completed_at": "2026-04-12T13:05:16.513037Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.027446746826171875, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_products_seller_id.0ba77d68d6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect seller_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere seller_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.490935Z", "completed_at": "2026-04-12T13:05:16.503451Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.503700Z", "completed_at": "2026-04-12T13:05:16.513778Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.028434038162231445, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_products_product_id.6373b0acf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere product_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.487235Z", "completed_at": "2026-04-12T13:05:16.495178Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.499156Z", "completed_at": "2026-04-12T13:05:16.516095Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0341949462890625, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_customers_email.1ebcb2333e", "compiled": true, "compiled_code": "\n \n \n\nselect\n email as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_customers\"\nwhere email is not null\ngroup by email\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.495450Z", "completed_at": "2026-04-12T13:05:16.505670Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.506388Z", "completed_at": "2026-04-12T13:05:16.517048Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.029481887817382812, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_products_seller_id__seller_id__ref_stg_sellers_.b133815360", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select seller_id as from_field\n from \"ecom\".\"main_staging\".\"stg_products\"\n where seller_id is not null\n),\n\nparent as (\n select seller_id as to_field\n from \"ecom\".\"main_staging\".\"stg_sellers\"\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\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.522001Z", "completed_at": "2026-04-12T13:05:16.526529Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.526727Z", "completed_at": "2026-04-12T13:05:16.533885Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015896081924438477, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_products_product_id.7d950a1467", "compiled": true, "compiled_code": "\n \n \n\nselect\n product_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_products\"\nwhere product_id is not null\ngroup by product_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.524835Z", "completed_at": "2026-04-12T13:05:16.528090Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.528310Z", "completed_at": "2026-04-12T13:05:16.542409Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01819896697998047, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_orders", "compiled": true, "compiled_code": "/*\n stg_orders\n ----------\n - Key challenge: order_date arrives in two formats (ISO and dd/mm/yyyy).\n We COALESCE two TRY_STRPTIME calls to handle both safely.\n - Filters rows where the date cannot be parsed (data quality guard)\n - Filters orphaned orders (customer_id not in stg_customers)\n - Casts and standardises order_status and payment_method\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"orders\"\n),\n\ndate_parsed as (\n select\n order_id,\n customer_id,\n -- Try ISO first, then dd/mm/yyyy \u2014 whichever parses wins\n coalesce(\n try_strptime(order_date, '%Y-%m-%d'),\n try_strptime(order_date, '%d/%m/%Y')\n ) as order_date,\n order_status,\n payment_method,\n shipping_city,\n cast(discount_amount as decimal(10,2)) as discount_amount,\n nullif(trim(coupon_code), '') as coupon_code,\n lower(platform) as platform\n from source\n),\n\nvalid_customers as (\n select customer_id from \"ecom\".\"main_staging\".\"stg_customers\"\n),\n\nfinal as (\n select\n o.order_id,\n o.customer_id,\n o.order_date,\n o.order_status,\n o.payment_method,\n o.shipping_city,\n o.discount_amount,\n o.coupon_code,\n o.platform\n from date_parsed o\n -- Drop unparseable dates\n where o.order_date is not null\n -- Drop orphaned customer_ids (referential integrity fix)\n and o.customer_id in (select customer_id from valid_customers)\n)\n\nselect * from final", "relation_name": "\"ecom\".\"main_staging\".\"stg_orders\"", "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.551353Z", "completed_at": "2026-04-12T13:05:16.560614Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.560835Z", "completed_at": "2026-04-12T13:05:16.573189Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.031877994537353516, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_orders_customer_id.af79d5e4b5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere customer_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.546642Z", "completed_at": "2026-04-12T13:05:16.558814Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.559088Z", "completed_at": "2026-04-12T13:05:16.575177Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03430819511413574, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_orders_order_status__pending__processing__shipped__delivered__cancelled__returned.66d44b6ae9", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n order_status as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by order_status\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'pending','processing','shipped','delivered','cancelled','returned'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.548875Z", "completed_at": "2026-04-12T13:05:16.557143Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.557346Z", "completed_at": "2026-04-12T13:05:16.576043Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03466606140136719, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.accepted_values_stg_orders_payment_method__credit_card__debit_card__bank_transfer__cash_on_delivery__wallet.c6b0756aa2", "compiled": true, "compiled_code": "\n \n \n\nwith all_values as (\n\n select\n payment_method as value_field,\n count(*) as n_records\n\n from \"ecom\".\"main_staging\".\"stg_orders\"\n group by payment_method\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n 'credit_card','debit_card','bank_transfer','cash_on_delivery','wallet'\n)\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.553447Z", "completed_at": "2026-04-12T13:05:16.555640Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.555836Z", "completed_at": "2026-04-12T13:05:16.577242Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.034574031829833984, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_orders_order_date.2177a3e8bb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_date\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_date is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.582901Z", "completed_at": "2026-04-12T13:05:16.592213Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.592410Z", "completed_at": "2026-04-12T13:05:16.605049Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.026224136352539062, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_orders_order_id.81cfe2fe64", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.589138Z", "completed_at": "2026-04-12T13:05:16.595214Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.595411Z", "completed_at": "2026-04-12T13:05:16.607005Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.023907184600830078, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_orders_order_id.e3b841c71a", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_orders\"\nwhere order_id is not null\ngroup by order_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.586221Z", "completed_at": "2026-04-12T13:05:16.593765Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.594006Z", "completed_at": "2026-04-12T13:05:16.607648Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02739691734313965, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_orders_customer_id__customer_id__ref_stg_customers_.430bf21500", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select customer_id as from_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\n where customer_id is not null\n),\n\nparent as (\n select customer_id as to_field\n from \"ecom\".\"main_staging\".\"stg_customers\"\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\n", "relation_name": null, "batch_results": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.611903Z", "completed_at": "2026-04-12T13:05:16.613870Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.614053Z", "completed_at": "2026-04-12T13:05:16.624574Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01331472396850586, "adapter_response": {"_message": "OK"}, "message": "OK", "failures": null, "unique_id": "model.ecom.stg_order_items", "compiled": true, "compiled_code": "/*\n stg_order_items\n ---------------\n - Casts numeric columns\n - Adds derived column: is_flash_sale flag when unit_price < list_price\n - Filters items whose order_id no longer exists after stg_orders cleanup\n*/\n\nwith source as (\n select * from \"ecom\".\"raw\".\"order_items\"\n),\n\nvalid_orders as (\n select order_id from \"ecom\".\"main_staging\".\"stg_orders\"\n),\n\ncasted as (\n -- cast first in a separate CTE so arithmetic below works on typed values\n select\n order_item_id,\n order_id,\n product_id,\n seller_id,\n cast(quantity as integer) as quantity,\n cast(unit_price as decimal(10,2)) as unit_price,\n cast(list_price as decimal(10,2)) as list_price,\n cast(discount_pct as decimal(6,4)) as discount_pct\n from source\n where order_id in (select order_id from valid_orders)\n),\n\nrenamed as (\n select\n order_item_id,\n order_id,\n product_id,\n seller_id,\n quantity,\n unit_price,\n list_price,\n discount_pct,\n unit_price < list_price as is_flash_sale,\n round(unit_price * quantity * (1 - coalesce(discount_pct, 0)), 2) as line_revenue\n from casted\n)\n\nselect * from renamed", "relation_name": "\"ecom\".\"main_staging\".\"stg_order_items\"", "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.633021Z", "completed_at": "2026-04-12T13:05:16.639920Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.642576Z", "completed_at": "2026-04-12T13:05:16.658841Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03332400321960449, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_order_items_product_id.5154a8a6f6", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect product_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere product_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.628718Z", "completed_at": "2026-04-12T13:05:16.639504Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.640132Z", "completed_at": "2026-04-12T13:05:16.659577Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03493809700012207, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_order_items_order_id.2063801f96", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.630843Z", "completed_at": "2026-04-12T13:05:16.639726Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.641396Z", "completed_at": "2026-04-12T13:05:16.658083Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04074215888977051, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.not_null_stg_order_items_order_item_id.26a7e2bc35", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect order_item_id\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is null\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.636748Z", "completed_at": "2026-04-12T13:05:16.643828Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.644091Z", "completed_at": "2026-04-12T13:05:16.664890Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04212188720703125, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_order_items_order_id__order_id__ref_stg_orders_.dbe9930c54", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select order_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where order_id is not null\n),\n\nparent as (\n select order_id as to_field\n from \"ecom\".\"main_staging\".\"stg_orders\"\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\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.670720Z", "completed_at": "2026-04-12T13:05:16.674931Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.675306Z", "completed_at": "2026-04-12T13:05:16.685754Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01833176612854004, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.unique_stg_order_items_order_item_id.90e333a108", "compiled": true, "compiled_code": "\n \n \n\nselect\n order_item_id as unique_field,\n count(*) as n_records\n\nfrom \"ecom\".\"main_staging\".\"stg_order_items\"\nwhere order_item_id is not null\ngroup by order_item_id\nhaving count(*) > 1\n\n\n", "relation_name": null, "batch_results": null}, {"status": "pass", "timing": [{"name": "compile", "started_at": "2026-04-12T13:05:16.665099Z", "completed_at": "2026-04-12T13:05:16.670255Z"}, {"name": "execute", "started_at": "2026-04-12T13:05:16.672730Z", "completed_at": "2026-04-12T13:05:16.686489Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02628493309020996, "adapter_response": {"_message": "OK"}, "message": null, "failures": 0, "unique_id": "test.ecom.relationships_stg_order_items_product_id__product_id__ref_stg_products_.886a82c26c", "compiled": true, "compiled_code": "\n \n \n\nwith child as (\n select product_id as from_field\n from \"ecom\".\"main_staging\".\"stg_order_items\"\n where product_id is not null\n),\n\nparent as (\n select product_id as to_field\n from \"ecom\".\"main_staging\".\"stg_products\"\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\n", "relation_name": null, "batch_results": null}], "elapsed_time": 0.49898815155029297, "args": {"exclude": [], "export_saved_queries": false, "defer": false, "upload_to_artifacts_ingest_api": false, "resource_types": [], "favor_state": false, "warn_error_options": {"error": [], "warn": [], "silence": []}, "require_unique_project_resource_names": false, "exclude_resource_types": [], "show_all_deprecations": false, "strict_mode": false, "log_format": "default", "partial_parse": true, "log_level": "info", "state_modified_compare_vars": false, "show": false, "which": "build", "require_yaml_configuration_for_mf_time_spines": false, "require_nested_cumulative_type_params": false, "sqlparse": {"MAX_GROUPING_DEPTH": null, "MAX_GROUPING_TOKENS": null}, "show_resource_report": false, "static_parser": true, "log_path": "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom/logs", "printer_width": 80, "source_freshness_run_project_hooks": true, "write_json": true, "populate_cache": true, "vars": {}, "state_modified_compare_more_unrendered_values": false, "use_fast_test_edges": false, "project_dir": "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/ecom", "use_colors": true, "empty": false, "partial_parse_file_diff": true, "require_all_warnings_handled_by_warn_error": false, "introspect": true, "validate_macro_args": false, "log_file_max_bytes": 10485760, "quiet": false, "indirect_selection": "eager", "cache_selected_only": false, "require_explicit_package_overrides_for_builtin_materializations": true, "require_generic_test_arguments_property": true, "include_saved_query": false, "select": [], "version_check": true, "require_resource_names_without_spaces": true, "print": true, "send_anonymous_usage_stats": true, "require_ref_searches_node_package_before_root": false, "profiles_dir": ".", "use_colors_file": true, "log_format_file": "debug", "log_level_file": "debug", "require_batched_execution_for_custom_microbatch_strategy": false, "skip_nodes_if_on_run_start_fails": false, "invocation_command": "dbt build --profiles-dir .", "macro_debugging": false}} \ No newline at end of file diff --git a/ecom/target/semantic_manifest.json b/ecom/target/semantic_manifest.json deleted file mode 100644 index 8893f9e..0000000 --- a/ecom/target/semantic_manifest.json +++ /dev/null @@ -1 +0,0 @@ -{"semantic_models": [], "metrics": [], "project_configuration": {"time_spine_table_configurations": [], "metadata": null, "dsi_package_version": {"major_version": "0", "minor_version": "9", "patch_version": "0"}, "time_spines": []}, "saved_queries": []} \ No newline at end of file From bee72e0a8b402ca6cb4d1aaf1aa70bb3073bd2b1 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 16:39:26 +0300 Subject: [PATCH 07/13] chore: untrack root logs directory --- .gitignore | 2 +- logs/dbt.log | 99 ---------------------------------------------------- 2 files changed, 1 insertion(+), 100 deletions(-) delete mode 100644 logs/dbt.log diff --git a/.gitignore b/.gitignore index b35202d..7973723 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ __pycache__/ ecom/target/ ecom/dbt_packages/ ecom/logs/ -ecom/.user.yml \ No newline at end of file +ecom/.user.ymllogs/ diff --git a/logs/dbt.log b/logs/dbt.log deleted file mode 100644 index fa16201..0000000 --- a/logs/dbt.log +++ /dev/null @@ -1,99 +0,0 @@ -15:53:41.761275 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} - - -============================== 15:53:41.764006 | 8992d520-3f40-4fe1-b9e8-629c37027ccf ============================== -15:53:41.764006 [info ] [MainThread]: Running with dbt=1.11.8 -15:53:41.764349 [debug] [MainThread]: running dbt with arguments {'profiles_dir': '/Users/burakkurt/.dbt', 'debug': 'False', 'no_print': 'None', 'introspect': 'True', 'fail_fast': 'False', 'static_parser': 'True', 'warn_error': 'None', 'version_check': 'True', 'target_path': 'None', 'use_experimental_parser': 'False', 'cache_selected_only': 'False', 'indirect_selection': 'eager', 'empty': 'None', 'log_cache_events': 'False', 'log_path': 'logs', 'use_colors': 'True', 'invocation_command': 'dbt init ecom', 'quiet': 'False', 'printer_width': '80', 'partial_parse': 'True', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'send_anonymous_usage_stats': 'True', 'write_json': 'True', 'log_format': 'default'} -15:53:41.769114 [info ] [MainThread]: Creating dbt configuration folder at /Users/burakkurt/.dbt -15:53:41.770078 [debug] [MainThread]: Starter project path: /Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/include/starter_project -15:53:41.773084 [info ] [MainThread]: -Your new dbt project "ecom" was created! - -For more information on how to configure the profiles.yml file, -please consult the dbt documentation here: - - https://docs.getdbt.com/docs/configure-your-profile - -One more thing: - -Need help? Don't hesitate to reach out to us via GitHub issues or on Slack: - - https://community.getdbt.com/ - -Happy modeling! - -15:53:41.773518 [info ] [MainThread]: Setting up your profile. -15:54:31.183182 [error] [MainThread]: Encountered an error: - -15:54:31.188817 [error] [MainThread]: Traceback (most recent call last): - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/cli/requires.py", line 182, in wrapper - result, success = func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^ - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/cli/requires.py", line 128, in wrapper - return func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^ - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/cli/main.py", line 488, in init - results = task.run() - ^^^^^^^^^^ - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/task/init.py", line 346, in run - self.setup_profile(profile_name) - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/task/init.py", line 261, in setup_profile - adapter = self.ask_for_adapter_choice() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/task/init.py", line 242, in ask_for_adapter_choice - numeric_choice = click.prompt(prompt_msg, type=click.INT) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/click/termui.py", line 171, in prompt - value = prompt_func(prompt) - ^^^^^^^^^^^^^^^^^^^ - File "/Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/click/termui.py", line 154, in prompt_func - raise Abort() from None -click.exceptions.Abort - -15:54:31.206706 [debug] [MainThread]: Resource report: {"command_name": "init", "command_success": false, "command_wall_clock_time": 49.48307, "process_in_blocks": "0", "process_kernel_time": 0.183808, "process_mem_max_rss": "109461504", "process_out_blocks": "0", "process_user_time": 1.031185} -15:54:31.207812 [debug] [MainThread]: Command `dbt init` failed at 15:54:31.207653 after 49.48 seconds -15:54:31.208415 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} -15:54:31.208967 [debug] [MainThread]: Flushing usage events -15:54:33.635946 [debug] [MainThread]: An error was encountered while trying to flush usage events -15:55:00.471539 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} - - -============================== 15:55:00.474047 | b8e102a5-c54f-4dae-a2e0-bf72f0ca52d4 ============================== -15:55:00.474047 [info ] [MainThread]: Running with dbt=1.11.8 -15:55:00.474381 [debug] [MainThread]: running dbt with arguments {'static_parser': 'True', 'introspect': 'True', 'target_path': 'None', 'quiet': 'False', 'partial_parse': 'True', 'printer_width': '80', 'use_experimental_parser': 'False', 'fail_fast': 'False', 'indirect_selection': 'eager', 'log_path': 'logs', 'log_cache_events': 'False', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'use_colors': 'True', 'profiles_dir': '/Users/burakkurt/.dbt', 'send_anonymous_usage_stats': 'True', 'cache_selected_only': 'False', 'write_json': 'True', 'no_print': 'None', 'warn_error': 'None', 'version_check': 'True', 'log_format': 'default', 'invocation_command': 'dbt init ecom', 'debug': 'False', 'empty': 'None'} -15:55:00.479486 [info ] [MainThread]: A project called ecom already exists here. -15:55:00.481033 [debug] [MainThread]: Resource report: {"command_name": "init", "command_success": true, "command_wall_clock_time": 0.045052126, "process_in_blocks": "0", "process_kernel_time": 0.103239, "process_mem_max_rss": "109510656", "process_out_blocks": "0", "process_user_time": 0.737951} -15:55:00.481421 [debug] [MainThread]: Command `dbt init` succeeded at 15:55:00.481361 after 0.05 seconds -15:55:00.481638 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} -15:55:00.481835 [debug] [MainThread]: Flushing usage events -15:55:01.587175 [debug] [MainThread]: An error was encountered while trying to flush usage events -15:55:16.043391 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'start', 'context': [, , ]} - - -============================== 15:55:16.045756 | a4d6830b-3701-458b-82cd-5cfc064e15ac ============================== -15:55:16.045756 [info ] [MainThread]: Running with dbt=1.11.8 -15:55:16.046089 [debug] [MainThread]: running dbt with arguments {'quiet': 'False', 'introspect': 'True', 'no_print': 'None', 'static_parser': 'True', 'use_experimental_parser': 'False', 'printer_width': '80', 'profiles_dir': '/Users/burakkurt/.dbt', 'warn_error_options': 'WarnErrorOptionsV2(error=[], warn=[], silence=[])', 'write_json': 'True', 'target_path': 'None', 'invocation_command': 'dbt init ecom', 'empty': 'None', 'fail_fast': 'False', 'indirect_selection': 'eager', 'cache_selected_only': 'False', 'debug': 'False', 'log_path': 'logs', 'warn_error': 'None', 'version_check': 'True', 'send_anonymous_usage_stats': 'True', 'use_colors': 'True', 'log_format': 'default', 'partial_parse': 'True', 'log_cache_events': 'False'} -15:55:16.053517 [debug] [MainThread]: Starter project path: /Users/burakkurt/data_engineering_projects/e-commerce-analytics/.venv/lib/python3.12/site-packages/dbt/include/starter_project -15:55:16.057025 [info ] [MainThread]: -Your new dbt project "ecom" was created! - -For more information on how to configure the profiles.yml file, -please consult the dbt documentation here: - - https://docs.getdbt.com/docs/configure-your-profile - -One more thing: - -Need help? Don't hesitate to reach out to us via GitHub issues or on Slack: - - https://community.getdbt.com/ - -Happy modeling! - -15:55:16.057278 [info ] [MainThread]: Setting up your profile. -15:55:19.096736 [info ] [MainThread]: Profile ecom written to /Users/burakkurt/.dbt/profiles.yml using target's sample configuration. Once updated, you'll be able to start developing with dbt. -15:55:19.098974 [debug] [MainThread]: Resource report: {"command_name": "init", "command_success": true, "command_wall_clock_time": 3.0911944, "process_in_blocks": "0", "process_kernel_time": 0.125557, "process_mem_max_rss": "125534208", "process_out_blocks": "0", "process_user_time": 0.782515} -15:55:19.099359 [debug] [MainThread]: Command `dbt init` succeeded at 15:55:19.099284 after 3.09 seconds -15:55:19.099636 [debug] [MainThread]: Sending event: {'category': 'dbt', 'action': 'invocation', 'label': 'end', 'context': [, , ]} -15:55:19.099923 [debug] [MainThread]: Flushing usage events -15:55:20.321234 [debug] [MainThread]: An error was encountered while trying to flush usage events From e629af1d0c0958870bc2312f92590abe79f661ad Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 22:16:47 +0300 Subject: [PATCH 08/13] =?UTF-8?q?feat:=20add=20dbt=20marts=20layer=20?= =?UTF-8?q?=E2=80=94=20star=20schema=20with=20fact=5Forders=20and=204=20di?= =?UTF-8?q?ms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + ecom/models/marts/_schema.yml | 82 +++++++++++++++++++++++++++++ ecom/models/marts/dim_customer.sql | 31 +++++++++++ ecom/models/marts/dim_date.sql | 39 ++++++++++++++ ecom/models/marts/dim_product.sql | 30 +++++++++++ ecom/models/marts/dim_seller.sql | 27 ++++++++++ ecom/models/marts/fact_orders.sql | 83 ++++++++++++++++++++++++++++++ 7 files changed, 293 insertions(+) create mode 100644 ecom/models/marts/_schema.yml create mode 100644 ecom/models/marts/dim_customer.sql create mode 100644 ecom/models/marts/dim_date.sql create mode 100644 ecom/models/marts/dim_product.sql create mode 100644 ecom/models/marts/dim_seller.sql create mode 100644 ecom/models/marts/fact_orders.sql diff --git a/.gitignore b/.gitignore index 7973723..e515a19 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ ecom/target/ ecom/dbt_packages/ ecom/logs/ ecom/.user.ymllogs/ +logs/ \ No newline at end of file diff --git a/ecom/models/marts/_schema.yml b/ecom/models/marts/_schema.yml new file mode 100644 index 0000000..0ee25e5 --- /dev/null +++ b/ecom/models/marts/_schema.yml @@ -0,0 +1,82 @@ +version: 2 + +models: + - name: dim_date + description: "Generated date dimension. date_key (YYYYMMDD integer) is the FK used in fact_orders." + columns: + - name: date_key + data_tests: + - unique + - not_null + - name: date + data_tests: + - unique + - not_null + + - name: dim_seller + description: "One row per seller with surrogate key." + columns: + - name: seller_key + data_tests: + - unique + - not_null + - name: seller_id + data_tests: + - unique + - not_null + + - name: dim_product + description: "One row per product with surrogate key and gross margin." + columns: + - name: product_key + data_tests: + - unique + - not_null + - name: product_id + data_tests: + - unique + - not_null + + - name: dim_customer + description: "Type 1 customer dimension (current values only). Type 2 SCD added Day 4." + columns: + - name: customer_key + data_tests: + - unique + - not_null + - name: customer_id + data_tests: + - unique + - not_null + + - name: fact_orders + description: "Fact table at order line-item grain. Join to dim_* tables via *_key columns." + columns: + - name: order_item_id + data_tests: + - unique + - not_null + - name: date_key + data_tests: + - not_null + - relationships: + to: ref('dim_date') + field: date_key + - name: customer_key + data_tests: + - not_null + - relationships: + to: ref('dim_customer') + field: customer_key + - name: product_key + data_tests: + - not_null + - relationships: + to: ref('dim_product') + field: product_key + - name: seller_key + data_tests: + - not_null + - relationships: + to: ref('dim_seller') + field: seller_key diff --git a/ecom/models/marts/dim_customer.sql b/ecom/models/marts/dim_customer.sql new file mode 100644 index 0000000..ef2342b --- /dev/null +++ b/ecom/models/marts/dim_customer.sql @@ -0,0 +1,31 @@ +/* + dim_customer + ------------ + One row per customer — this is the Type 1 (overwrite) version. + Day 4 will replace this with a Type 2 (history-tracking) snapshot + that records changes to city and customer_tier over time. + + Type 1 = always shows the current/latest value, no history. + Type 2 = keeps every historical version with valid_from / valid_to dates. +*/ + +with source as ( + select * from {{ ref('stg_customers') }} +), + +final as ( + select + row_number() over (order by customer_id) as customer_key, -- surrogate key + customer_id, -- natural key + first_name, + last_name, + first_name || ' ' || last_name as full_name, + email, + city, + country, + customer_tier, + signup_date + from source +) + +select * from final diff --git a/ecom/models/marts/dim_date.sql b/ecom/models/marts/dim_date.sql new file mode 100644 index 0000000..2d6b636 --- /dev/null +++ b/ecom/models/marts/dim_date.sql @@ -0,0 +1,39 @@ +/* + dim_date + -------- + A generated date dimension covering the full data range (Oct 2024 – Mar 2025). + No source table needed — built purely from DuckDB's generate_series(). + + date_key is an integer in YYYYMMDD format (e.g. 20241015). + This is the foreign key pattern used in fact_orders. + + Why a date dimension? + - Lets analysts filter/group by year, month, quarter, weekday without + writing date functions in every query. + - A single tested source of date logic = single source of truth. +*/ + +with date_spine as ( + select + unnest( + generate_series(date '2024-10-01', date '2025-03-31', interval '1 day') + )::date as date +), + +final as ( + select + cast(strftime(date, '%Y%m%d') as integer) as date_key, + date, + year(date) as year, + month(date) as month_number, + strftime(date, '%B') as month_name, + quarter(date) as quarter, + 'Q' || quarter(date) as quarter_label, + weekday(date) + 1 as day_of_week, + strftime(date, '%A') as day_name, + weekday(date) >= 5 as is_weekend, + week(date) as week_of_year + from date_spine +) + +select * from final diff --git a/ecom/models/marts/dim_product.sql b/ecom/models/marts/dim_product.sql new file mode 100644 index 0000000..692478e --- /dev/null +++ b/ecom/models/marts/dim_product.sql @@ -0,0 +1,30 @@ +/* + dim_product + ----------- + One row per product with surrogate key. + Includes gross_margin_pct derived in staging — ready for margin analysis. + is_active flag preserved so analysts can filter to current catalogue. +*/ + +with source as ( + select * from {{ ref('stg_products') }} +), + +final as ( + select + row_number() over (order by product_id) as product_key, -- surrogate key + product_id, -- natural key + product_name, + category, + subcategory, + seller_id, + list_price, + cost_price, + gross_margin_pct, + is_active, + stock_qty, + created_at + from source +) + +select * from final diff --git a/ecom/models/marts/dim_seller.sql b/ecom/models/marts/dim_seller.sql new file mode 100644 index 0000000..21c706f --- /dev/null +++ b/ecom/models/marts/dim_seller.sql @@ -0,0 +1,27 @@ +/* + dim_seller + ---------- + One row per seller. Surrogate key (seller_key) added as best practice — + in production you never use natural keys as FK in fact tables because + source systems can recycle or change them. +*/ + +with source as ( + select * from {{ ref('stg_sellers') }} +), + +final as ( + select + row_number() over (order by seller_id) as seller_key, -- surrogate key + seller_id, -- natural key + seller_name, + category, + city, + is_verified, + joined_date, + rating, + total_reviews + from source +) + +select * from final diff --git a/ecom/models/marts/fact_orders.sql b/ecom/models/marts/fact_orders.sql new file mode 100644 index 0000000..de1cfe3 --- /dev/null +++ b/ecom/models/marts/fact_orders.sql @@ -0,0 +1,83 @@ +/* + fact_orders + ----------- + Grain: one row per order LINE ITEM (most granular fact table). + + Why line-item grain and not order grain? + - An order can have multiple products — line-item grain lets you analyse + revenue, margin, and flash-sale rates per product, category, and seller. + - You can always roll up to order level with COUNT(DISTINCT order_id). + + Measures (the numbers): + quantity, unit_price, list_price, line_revenue, discount_pct + + Foreign keys (the context — join to dims for labels): + date_key → dim_date + customer_key → dim_customer + product_key → dim_product + seller_key → dim_seller + + Degenerate dimensions (IDs with no dim table): + order_id, order_item_id — kept directly in the fact table +*/ + +with orders as ( + select * from {{ ref('stg_orders') }} +), + +order_items as ( + select * from {{ ref('stg_order_items') }} +), + +dim_customer as ( + select customer_key, customer_id from {{ ref('dim_customer') }} +), + +dim_product as ( + select product_key, product_id from {{ ref('dim_product') }} +), + +dim_seller as ( + select seller_key, seller_id from {{ ref('dim_seller') }} +), + +joined as ( + select + -- degenerate dimensions (natural keys kept in fact) + oi.order_item_id, + o.order_id, + + -- foreign keys to dimensions + cast(strftime(o.order_date::date, '%Y%m%d') as integer) as date_key, + dc.customer_key, + dp.product_key, + ds.seller_key, + + -- measures + oi.quantity, + oi.unit_price, + oi.list_price, + oi.discount_pct, + oi.line_revenue, + oi.is_flash_sale, + + -- order-level attributes (non-additive context) + o.order_status, + o.payment_method, + o.shipping_city, + o.platform, + o.discount_amount as order_discount_amount, + o.coupon_code + + from order_items oi + inner join orders o + on oi.order_id = o.order_id + left join dim_customer dc + on o.customer_id = dc.customer_id + left join dim_product dp + on oi.product_id = dp.product_id + left join dim_seller ds + on oi.seller_id = ds.seller_id +) + +select * from joined From 4bfdcb65d3fcfe9c1bbd9d0f7ffe1d019638ae32 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 22:33:33 +0300 Subject: [PATCH 09/13] add SCD files & file updates --- ecom/models/marts/_schema.yml | 20 +++ ecom/models/marts/dim_customer_scd2.sql | 149 +++++++++++++++++++ ecom/models/staging/_schema.yml | 14 ++ ecom/models/staging/_sources.yml | 2 + ecom/models/staging/stg_customer_changes.sql | 31 ++++ scripts/generate_changes.py | 114 ++++++++++++++ 6 files changed, 330 insertions(+) create mode 100644 ecom/models/marts/dim_customer_scd2.sql create mode 100644 ecom/models/staging/stg_customer_changes.sql create mode 100644 scripts/generate_changes.py diff --git a/ecom/models/marts/_schema.yml b/ecom/models/marts/_schema.yml index 0ee25e5..2067c45 100644 --- a/ecom/models/marts/_schema.yml +++ b/ecom/models/marts/_schema.yml @@ -80,3 +80,23 @@ models: - relationships: to: ref('dim_seller') field: seller_key + + - name: dim_customer_scd2 + description: > + SCD Type 2 customer dimension. One row per customer per time period. + Use valid_from/valid_to to join to fact_orders at the correct point in time. + is_current = TRUE for the version active today. + columns: + - name: customer_scd_key + data_tests: + - unique + - not_null + - name: customer_id + data_tests: + - not_null + - name: valid_from + data_tests: + - not_null + - name: version_number + data_tests: + - not_null diff --git a/ecom/models/marts/dim_customer_scd2.sql b/ecom/models/marts/dim_customer_scd2.sql new file mode 100644 index 0000000..bf01c61 --- /dev/null +++ b/ecom/models/marts/dim_customer_scd2.sql @@ -0,0 +1,149 @@ +/* + dim_customer_scd2 — Slowly Changing Dimension Type 2 + ------------------------------------------------------- + + WHY SCD TYPE 2? + --------------- + A customer's city and tier change over time. If we just overwrite the + current value (Type 1), we lose history. That means a report asking + "what was this customer's tier when they placed this order?" becomes + unanswerable — we only know what they are *now*. + + Type 2 solves this by keeping every historical version of a customer + as a separate row, each stamped with valid_from and valid_to dates. + + GRAIN: one row per customer per time period (version). + + KEY COLUMNS: + customer_scd_key surrogate key — unique per VERSION (not per customer) + customer_id natural key — same across all versions of one customer + valid_from date this version became active + valid_to date this version was superseded (NULL = still active) + is_current TRUE for the version active right now + version_number 1 = original record, 2 = first change, etc. + + HOW IT WORKS (step by step): + 1. Take the original signup record for every customer. + 2. Union with all change events from stg_customer_changes. + 3. Use LEAD() window function to look ahead to the next event date + for the same customer — that becomes the current row's valid_to. + 4. The last version per customer has no next event, so valid_to = NULL + and is_current = TRUE. + + FACT TABLE USAGE: + To get the customer dimension that was active when an order was placed: + JOIN dim_customer_scd2 scd + ON fact.customer_id = scd.customer_id + AND fact.order_date >= scd.valid_from + AND (fact.order_date < scd.valid_to OR scd.valid_to IS NULL) +*/ + +with customers as ( + select + customer_id, + city, + customer_tier, + signup_date as effective_date, + first_name, + last_name, + email + from {{ ref('stg_customers') }} +), + +changes as ( + select + customer_id, + city, + customer_tier, + effective_date, + null as first_name, + null as last_name, + null as email + from {{ ref('stg_customer_changes') }} +), + +-- combine original records and change events into one timeline +all_versions as ( + select * from customers + union all + select * from changes +), + +-- carry forward name/email from the original record +-- (change events don't re-supply these) +with_context as ( + select + customer_id, + effective_date, + -- coalesce fills nulls in change rows with the original values + coalesce( + city, + first_value(city) over ( + partition by customer_id + order by effective_date + rows between unbounded preceding and current row + ) + ) as city, + coalesce( + customer_tier, + first_value(customer_tier) over ( + partition by customer_id + order by effective_date + rows between unbounded preceding and current row + ) + ) as customer_tier, + first_value(first_name) over ( + partition by customer_id order by effective_date + ) as first_name, + first_value(last_name) over ( + partition by customer_id order by effective_date + ) as last_name, + first_value(email) over ( + partition by customer_id order by effective_date + ) as email, + row_number() over ( + partition by customer_id + order by effective_date + ) as version_number + from all_versions +), + +-- apply LEAD() to compute valid_to from the next version's start date +with_validity as ( + select + customer_id, + first_name, + last_name, + email, + city, + customer_tier, + effective_date as valid_from, + lead(effective_date) over ( + partition by customer_id + order by effective_date + ) as valid_to, -- NULL on the current version + version_number + from with_context +), + +final as ( + select + -- surrogate key: unique per customer VERSION + row_number() over ( + order by customer_id, valid_from + ) as customer_scd_key, + customer_id, + first_name, + last_name, + first_name || ' ' || last_name as full_name, + email, + city, + customer_tier, + valid_from, + valid_to, + valid_to is null as is_current, + version_number + from with_validity +) + +select * from final diff --git a/ecom/models/staging/_schema.yml b/ecom/models/staging/_schema.yml index be0a667..071a347 100644 --- a/ecom/models/staging/_schema.yml +++ b/ecom/models/staging/_schema.yml @@ -108,3 +108,17 @@ models: data_tests: - accepted_values: values: ['mobile', 'desktop', 'tablet'] + + - name: stg_customer_changes + description: "Cleaned customer attribute change events." + columns: + - name: change_id + data_tests: + - unique + - not_null + - name: customer_id + data_tests: + - not_null + - name: effective_date + data_tests: + - not_null diff --git a/ecom/models/staging/_sources.yml b/ecom/models/staging/_sources.yml index f48b15b..bfd2ed9 100644 --- a/ecom/models/staging/_sources.yml +++ b/ecom/models/staging/_sources.yml @@ -17,3 +17,5 @@ sources: description: "Raw order line items — unit price may differ from list price" - name: sessions description: "Raw app/web sessions — 20% anonymous (null customer_id)" + - name: customer_changes + description: "Customer attribute change events — city moves and tier upgrades" diff --git a/ecom/models/staging/stg_customer_changes.sql b/ecom/models/staging/stg_customer_changes.sql new file mode 100644 index 0000000..191d99f --- /dev/null +++ b/ecom/models/staging/stg_customer_changes.sql @@ -0,0 +1,31 @@ +/* + stg_customer_changes + -------------------- + Cleans the raw customer attribute change events. + Each row = one point in time when a customer's city or tier changed. + + Only keeps changes for customer_ids that exist in stg_customers + (orphaned change events for unknown customers are dropped). +*/ + +with source as ( + select * from {{ source('raw', 'customer_changes') }} +), + +valid_customers as ( + select customer_id from {{ ref('stg_customers') }} +), + +final as ( + select + change_id, + customer_id, + cast(effective_date as date) as effective_date, + nullif(trim(city), '') as city, + lower(trim(customer_tier)) as customer_tier, + lower(trim(change_reason)) as change_reason + from source + where customer_id in (select customer_id from valid_customers) +) + +select * from final diff --git a/scripts/generate_changes.py b/scripts/generate_changes.py new file mode 100644 index 0000000..6302005 --- /dev/null +++ b/scripts/generate_changes.py @@ -0,0 +1,114 @@ +""" +Generates customer_changes.csv — simulated attribute change events. + +These represent customers who changed city (e.g. moved) or were +upgraded/downgraded in tier (e.g. reached gold status) during the +Oct 2024 – Mar 2025 period. + +This is the source data that drives the SCD Type 2 dim_customer_scd2 model. +Run this once from the repo root before `dbt build`. + +Usage: + python scripts/generate_changes.py +""" + +import csv +import random +import os +from datetime import datetime, timedelta + +random.seed(99) + +RAW_DIR = os.path.join(os.path.dirname(__file__), "..", "data", "raw") +CUSTOMERS_CSV = os.path.join(RAW_DIR, "customers.csv") +OUTPUT_CSV = os.path.join(RAW_DIR, "customer_changes.csv") + +START_DATE = datetime(2024, 10, 1) +END_DATE = datetime(2025, 3, 31) + +TURKISH_CITIES = [ + "Istanbul", "Ankara", "Izmir", "Bursa", "Antalya", + "Adana", "Konya", "Gaziantep", "Mersin", "Kayseri", + "Eskisehir", "Trabzon", "Diyarbakir", "Samsun", "Denizli", +] + +TIER_UPGRADES = { + "bronze": "silver", + "silver": "gold", + "gold": "gold", # already at top +} + +def rand_date(start=START_DATE, end=END_DATE): + delta = (end - start).days + return start + timedelta(days=random.randint(1, delta)) + +def main(): + # read existing customers + with open(CUSTOMERS_CSV, newline="", encoding="utf-8") as f: + customers = list(csv.DictReader(f)) + + # pick ~18% to have at least one change + changers = random.sample(customers, k=int(len(customers) * 0.18)) + + changes = [] + change_id = 1 + + for customer in changers: + cid = customer["customer_id"] + city = customer["city"] or "Istanbul" + tier = customer["customer_tier"] + + # decide what changes: city, tier, or both + change_type = random.choice(["city", "tier", "city", "both"]) + + # first change event + date1 = rand_date() + new_city1 = city + new_tier1 = tier + + if change_type in ("city", "both"): + candidates = [c for c in TURKISH_CITIES if c != city] + new_city1 = random.choice(candidates) + if change_type in ("tier", "both"): + new_tier1 = TIER_UPGRADES[tier] + + changes.append({ + "change_id": f"CHG{change_id:05d}", + "customer_id": cid, + "effective_date": date1.strftime("%Y-%m-%d"), + "city": new_city1, + "customer_tier": new_tier1, + "change_reason": change_type, + }) + change_id += 1 + + # ~30% get a second change later in the period + second_start = date1 + timedelta(days=14) + if random.random() < 0.30 and second_start < END_DATE: + date2 = rand_date(start=second_start, end=END_DATE) + if date2 > date1: + candidates = [c for c in TURKISH_CITIES if c != new_city1] + changes.append({ + "change_id": f"CHG{change_id:05d}", + "customer_id": cid, + "effective_date": date2.strftime("%Y-%m-%d"), + "city": random.choice(candidates), + "customer_tier": TIER_UPGRADES[new_tier1], + "change_reason": "city", + }) + change_id += 1 + + # write output + with open(OUTPUT_CSV, "w", newline="", encoding="utf-8") as f: + writer = csv.DictWriter(f, fieldnames=[ + "change_id", "customer_id", "effective_date", + "city", "customer_tier", "change_reason" + ]) + writer.writeheader() + writer.writerows(changes) + + print(f" OK customer_changes.csv {len(changes):,} change events " + f"across {len(changers)} customers") + +if __name__ == "__main__": + main() From 9e13ffca72e9c72f30459b8f3349de0b9c29a0cf Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 22:47:11 +0300 Subject: [PATCH 10/13] feat: add Streamlit analytics dashboard over dbt marts --- dashboard/app.py | 286 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 286 insertions(+) create mode 100644 dashboard/app.py diff --git a/dashboard/app.py b/dashboard/app.py new file mode 100644 index 0000000..3551064 --- /dev/null +++ b/dashboard/app.py @@ -0,0 +1,286 @@ +""" +E-Commerce Analytics Dashboard +------------------------------- +Runs on top of the dbt marts layer in ecom.duckdb. +Every chart is a direct SQL query against main_marts — no pandas wrangling. + +Usage (from repo root): + streamlit run dashboard/app.py +""" + +import os +import duckdb +import streamlit as st +import plotly.express as px + +# ── connection ─────────────────────────────────────────────────────────────── +DB_PATH = os.path.join(os.path.dirname(__file__), "..", "data", "ecom.duckdb") + +@st.cache_resource +def get_con(): + return duckdb.connect(DB_PATH, read_only=True) + +con = get_con() + +def q(sql): + """Run a SQL query and return a pandas DataFrame.""" + return con.execute(sql).df() + + +# ── page config ────────────────────────────────────────────────────────────── +st.set_page_config( + page_title="E-Commerce Analytics", + layout="wide", + initial_sidebar_state="collapsed", +) + +st.title("E-Commerce Analytics") +st.caption("dbt · DuckDB · Star schema — Oct 2024 → Mar 2025") + +# ── sidebar filters ────────────────────────────────────────────────────────── +with st.sidebar: + st.header("Filters") + status_filter = st.multiselect( + "Order status", + options=["delivered", "shipped", "processing", "pending", "cancelled", "returned"], + default=["delivered"], + ) + platform_filter = st.multiselect( + "Platform", + options=["ios", "android", "web"], + default=["ios", "android", "web"], + ) + +status_in = "(" + ",".join(f"'{s}'" for s in status_filter) + ")" if status_filter else "('delivered')" +platform_in = "(" + ",".join(f"'{p}'" for p in platform_filter) + ")" if platform_filter else "('ios','android','web')" + + +# ── KPI row ────────────────────────────────────────────────────────────────── +kpis = q(f""" + SELECT + ROUND(SUM(line_revenue), 0) AS gmv, + COUNT(DISTINCT order_id) AS orders, + ROUND(SUM(line_revenue) / COUNT(DISTINCT order_id), 2) AS aov, + COUNT(DISTINCT customer_key) AS customers, + ROUND(AVG(CASE WHEN is_flash_sale THEN 1.0 ELSE 0.0 END) * 100, 1) AS flash_pct + FROM main_marts.fact_orders + WHERE order_status IN {status_in} + AND platform IN {platform_in} +""") + +c1, c2, c3, c4, c5 = st.columns(5) +c1.metric("GMV", f"₺{int(kpis['gmv'][0]):,}") +c2.metric("Orders", f"{int(kpis['orders'][0]):,}") +c3.metric("AOV", f"₺{kpis['aov'][0]:,.0f}") +c4.metric("Customers", f"{int(kpis['customers'][0]):,}") +c5.metric("Flash sale rate", f"{kpis['flash_pct'][0]}%") + +st.divider() + +# ── row 1: monthly GMV ──────────────────────────────────────────────────────── +st.subheader("Monthly GMV") +monthly = q(f""" + SELECT + d.year, + d.month_number, + d.month_name, + ROUND(SUM(f.line_revenue), 0) AS gmv, + COUNT(DISTINCT f.order_id) AS orders + FROM main_marts.fact_orders f + JOIN main_marts.dim_date d ON f.date_key = d.date_key + WHERE f.order_status IN {status_in} + AND f.platform IN {platform_in} + GROUP BY d.year, d.month_number, d.month_name + ORDER BY d.year, d.month_number +""") +monthly["label"] = monthly["month_name"] + " " + monthly["year"].astype(str) + +fig = px.bar( + monthly, x="label", y="gmv", + labels={"label": "", "gmv": "GMV (₺)"}, + color_discrete_sequence=["#1D9E75"], + text_auto=".3s", +) +fig.update_traces(textposition="outside") +fig.update_layout(plot_bgcolor="rgba(0,0,0,0)", yaxis_gridcolor="rgba(0,0,0,0.06)") +st.plotly_chart(fig, use_container_width=True) + +st.divider() + +# ── row 2: category + order status ─────────────────────────────────────────── +col1, col2 = st.columns(2) + +with col1: + st.subheader("Revenue by category") + cat = q(f""" + SELECT p.category, ROUND(SUM(f.line_revenue), 0) AS revenue + FROM main_marts.fact_orders f + JOIN main_marts.dim_product p ON f.product_key = p.product_key + WHERE f.order_status IN {status_in} + AND f.platform IN {platform_in} + GROUP BY p.category + ORDER BY revenue DESC + """) + fig = px.bar( + cat, x="revenue", y="category", orientation="h", + labels={"revenue": "Revenue (₺)", "category": ""}, + color_discrete_sequence=["#534AB7"], + ) + fig.update_layout( + yaxis={"categoryorder": "total ascending"}, + plot_bgcolor="rgba(0,0,0,0)", + ) + st.plotly_chart(fig, use_container_width=True) + +with col2: + st.subheader("Orders by status") + status_df = q(""" + SELECT order_status, COUNT(DISTINCT order_id) AS orders + FROM main_marts.fact_orders + GROUP BY order_status ORDER BY orders DESC + """) + fig = px.pie( + status_df, values="orders", names="order_status", hole=0.45, + color_discrete_sequence=px.colors.qualitative.Set2, + ) + fig.update_traces(textposition="inside", textinfo="percent+label") + st.plotly_chart(fig, use_container_width=True) + +st.divider() + +# ── row 3: platform + customer tier ────────────────────────────────────────── +col1, col2 = st.columns(2) + +with col1: + st.subheader("Revenue by platform") + plat = q(f""" + SELECT platform, ROUND(SUM(line_revenue), 0) AS revenue + FROM main_marts.fact_orders + WHERE order_status IN {status_in} + GROUP BY platform ORDER BY revenue DESC + """) + fig = px.bar( + plat, x="platform", y="revenue", + labels={"platform": "", "revenue": "Revenue (₺)"}, + color_discrete_sequence=["#D85A30"], + text_auto=".3s", + ) + fig.update_layout(plot_bgcolor="rgba(0,0,0,0)") + st.plotly_chart(fig, use_container_width=True) + +with col2: + st.subheader("Customer tier distribution") + tier = q(f""" + SELECT c.customer_tier, COUNT(DISTINCT f.customer_key) AS customers + FROM main_marts.fact_orders f + JOIN main_marts.dim_customer c ON f.customer_key = c.customer_key + WHERE f.order_status IN {status_in} + GROUP BY c.customer_tier + """) + fig = px.pie( + tier, values="customers", names="customer_tier", hole=0.45, + color_discrete_sequence=["#EF9F27", "#1D9E75", "#7F77DD"], + ) + fig.update_traces(textposition="inside", textinfo="percent+label") + st.plotly_chart(fig, use_container_width=True) + +st.divider() + +# ── row 4: flash sale vs regular ───────────────────────────────────────────── +col1, col2 = st.columns(2) + +with col1: + st.subheader("Flash sale vs regular revenue") + flash = q(f""" + SELECT + CASE WHEN is_flash_sale THEN 'Flash sale' ELSE 'Regular price' END AS type, + ROUND(SUM(line_revenue), 0) AS revenue, + COUNT(*) AS items + FROM main_marts.fact_orders + WHERE order_status IN {status_in} + GROUP BY is_flash_sale + """) + fig = px.bar( + flash, x="type", y="revenue", color="type", + labels={"type": "", "revenue": "Revenue (₺)"}, + color_discrete_sequence=["#D85A30", "#1D9E75"], + text_auto=".3s", + ) + fig.update_layout(showlegend=False, plot_bgcolor="rgba(0,0,0,0)") + st.plotly_chart(fig, use_container_width=True) + +with col2: + st.subheader("Gross margin by category") + margin = q(""" + SELECT p.category, + ROUND(AVG(p.gross_margin_pct) * 100, 1) AS avg_margin_pct + FROM main_marts.dim_product p + WHERE p.is_active = true + GROUP BY p.category + ORDER BY avg_margin_pct DESC + """) + fig = px.bar( + margin, x="avg_margin_pct", y="category", orientation="h", + labels={"avg_margin_pct": "Avg gross margin %", "category": ""}, + color_discrete_sequence=["#0F6E56"], + ) + fig.update_layout( + yaxis={"categoryorder": "total ascending"}, + plot_bgcolor="rgba(0,0,0,0)", + ) + st.plotly_chart(fig, use_container_width=True) + +st.divider() + +# ── SCD2 spotlight ──────────────────────────────────────────────────────────── +st.subheader("SCD Type 2 — customer history") +st.caption("Customers with more than one version (city or tier change during the period)") + +scd = q(""" + SELECT + customer_id, + full_name, + version_number AS version, + city, + customer_tier AS tier, + valid_from, + valid_to, + is_current + FROM main_marts.dim_customer_scd2 + WHERE customer_id IN ( + SELECT customer_id FROM main_marts.dim_customer_scd2 + GROUP BY customer_id HAVING COUNT(*) > 1 + LIMIT 8 + ) + ORDER BY customer_id, version_number +""") +scd["valid_to"] = scd["valid_to"].fillna("active") +st.dataframe( + scd, + use_container_width=True, + column_config={ + "is_current": st.column_config.CheckboxColumn("current?"), + "valid_from": "valid from", + "valid_to": "valid to", + }, + hide_index=True, +) + +st.divider() + +# ── top 10 sellers ──────────────────────────────────────────────────────────── +st.subheader("Top 10 sellers by revenue") +sellers = q(f""" + SELECT + s.seller_name, + s.category, + ROUND(SUM(f.line_revenue), 0) AS revenue, + COUNT(DISTINCT f.order_id) AS orders, + ROUND(AVG(s.rating), 1) AS rating + FROM main_marts.fact_orders f + JOIN main_marts.dim_seller s ON f.seller_key = s.seller_key + WHERE f.order_status IN {status_in} + GROUP BY s.seller_name, s.category, s.rating + ORDER BY revenue DESC LIMIT 10 +""") +st.dataframe(sellers, use_container_width=True, hide_index=True) From 2a69c036cda2d04ea19b145e1ef6ba9bd9b01aa7 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 22:51:36 +0300 Subject: [PATCH 11/13] =?UTF-8?q?ci:=20add=20GitHub=20Actions=20workflow?= =?UTF-8?q?=20=E2=80=94=20dbt=20build=20on=20push=20and=20PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dbt_ci.yml | 45 ++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/dbt_ci.yml diff --git a/.github/workflows/dbt_ci.yml b/.github/workflows/dbt_ci.yml new file mode 100644 index 0000000..6f5abf4 --- /dev/null +++ b/.github/workflows/dbt_ci.yml @@ -0,0 +1,45 @@ +name: dbt CI + +on: + push: + branches: [dev] + pull_request: + branches: [main] + +jobs: + dbt-build: + name: Generate data → load → dbt build + runs-on: ubuntu-latest + + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: "pip" + + - name: Install dependencies + run: pip install dbt-duckdb faker plotly streamlit + + - name: Generate source CSVs + run: | + python generator/generate.py + python scripts/generate_changes.py + + - name: Load raw tables into DuckDB + run: python scripts/load_raw.py + + - name: Run dbt build (models + tests) + working-directory: ecom + run: dbt build --profiles-dir . + + - name: Upload DuckDB artifact + uses: actions/upload-artifact@v4 + if: always() + with: + name: ecom-duckdb + path: data/ecom.duckdb + retention-days: 3 From fcf2314a3a9842b3edfad78515705e2deaadefa7 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 22:55:07 +0300 Subject: [PATCH 12/13] chore: add requirements.txt for CI pip cache --- requirements.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bbf10be --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +dbt-duckdb +faker +plotly +streamlit \ No newline at end of file From a2634621ba357a83f55665d6e6bd90ff2e929044 Mon Sep 17 00:00:00 2001 From: b10000-coder <247021257+b10000-coder@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:00:21 +0300 Subject: [PATCH 13/13] docs: add comprehensive project README --- README.md | 228 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 226 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 71ffca3..a62f838 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,227 @@ -# e-commerce-analytics +# E-Commerce Analytics Engineering Project -![alt text](ecommerce_analytics_project_architecture.svg) \ No newline at end of file +![dbt CI](https://github.com/b10000-coder/e-commerce-analytics/actions/workflows/dbt_ci.yml/badge.svg?branch=dev) +![Python](https://img.shields.io/badge/python-3.12-blue) +![dbt](https://img.shields.io/badge/dbt-1.11-orange) +![DuckDB](https://img.shields.io/badge/DuckDB-1.10-yellow) + +A end-to-end analytics engineering project built on a **Trendyol-style e-commerce domain** — from raw synthetic data through a fully tested dbt star schema to a live Streamlit dashboard. Demonstrates modern data warehousing practices including SCD Type 2, CI/CD, and metric-layer design. + +--- + +## Architecture + +``` +generate.py generate_changes.py + │ │ + ▼ ▼ +data/raw/ ──load_raw.py──▶ DuckDB (raw schema) + │ + dbt build + │ + ┌─────────────┼─────────────┐ + ▼ ▼ ▼ + stg_* views dim_* tables fact_orders + (staging) (marts) (marts) + │ + Streamlit + dashboard +``` + +--- + +## Tech Stack + +| Layer | Tool | +|---|---| +| Data generation | Python · Faker | +| Database | DuckDB | +| Transformation | dbt-duckdb | +| Testing | dbt schema tests | +| Dashboard | Streamlit · Plotly | +| CI/CD | GitHub Actions | + +--- + +## Data Model + +### Star schema (`main_marts`) + +``` + dim_date + (182 rows) + │ + ┌───────────────┼───────────────┐ + │ │ │ + dim_customer fact_orders dim_product + dim_customer (4,531 rows) (400 rows) + _scd2 │ + (SCD Type 2) │ + dim_seller + (80 rows) +``` + +**Fact table grain:** one row per order line item — the most granular level, allowing roll-up to order, customer, product, category, or day. + +### Staging layer (`main_staging`) + +| Model | Source | Key transformations | +|---|---|---| +| `stg_customers` | `raw.customers` | Deduplicates re-registrations, removes soft-deletes | +| `stg_orders` | `raw.orders` | Parses two date formats (`ISO` + `dd/mm/yyyy`) via `TRY_STRPTIME` | +| `stg_order_items` | `raw.order_items` | Casts types, derives `line_revenue` and `is_flash_sale` | +| `stg_products` | `raw.products` | Derives `gross_margin_pct` | +| `stg_sellers` | `raw.sellers` | Type casting | +| `stg_sessions` | `raw.sessions` | Preserves anonymous sessions (null `customer_id`) | +| `stg_customer_changes` | `raw.customer_changes` | Cleans change events for SCD2 | + +### SCD Type 2 — `dim_customer_scd2` + +Tracks historical changes to customer `city` and `customer_tier`. Each version of a customer gets a separate row stamped with `valid_from` / `valid_to` dates, enabling point-in-time joins to the fact table. + +```sql +-- Get the customer's attributes at the time of their order +JOIN dim_customer_scd2 scd + ON fact.customer_id = scd.customer_id + AND fact.order_date >= scd.valid_from + AND (fact.order_date < scd.valid_to OR scd.valid_to IS NULL) +``` + +--- + +## Project Structure + +``` +e-commerce-analytics/ +├── .github/ +│ └── workflows/ +│ └── dbt_ci.yml CI: full pipeline on every push + PR +├── generator/ +│ └── generate.py Synthetic e-commerce data (Faker, seed=42) +├── scripts/ +│ ├── load_raw.py Loads CSVs into DuckDB raw schema +│ └── generate_changes.py Customer attribute change events (SCD2 source) +├── ecom/ dbt project +│ ├── dbt_project.yml +│ ├── profiles.yml +│ └── models/ +│ ├── staging/ 7 stg_* views — clean, typed, tested +│ └── marts/ Star schema — 5 tables (4 dims + 1 fact) +│ ├── dim_date.sql +│ ├── dim_customer.sql +│ ├── dim_customer_scd2.sql +│ ├── dim_product.sql +│ ├── dim_seller.sql +│ └── fact_orders.sql +├── dashboard/ +│ └── app.py Streamlit BI dashboard +├── data/ +│ └── raw/ Generated CSVs (git-ignored) +├── requirements.txt +└── .gitignore +``` + +--- + +## Quick Start + +### 1. Clone and install + +```bash +git clone https://github.com/b10000-coder/e-commerce-analytics.git +cd e-commerce-analytics +python -m venv .venv && source .venv/bin/activate +pip install -r requirements.txt +``` + +### 2. Generate data + +```bash +python generator/generate.py # creates 6 CSVs in data/raw/ +python scripts/generate_changes.py # creates customer_changes.csv +``` + +### 3. Load into DuckDB + +```bash +python scripts/load_raw.py +``` + +Output: +``` +OK raw.customers 618 rows +OK raw.sellers 80 rows +OK raw.products 400 rows +OK raw.orders 2,500 rows +OK raw.order_items 4,881 rows +OK raw.sessions 4,000 rows +OK raw.customer_changes 142 rows +``` + +### 4. Run dbt (models + tests) + +```bash +cd ecom +dbt build --profiles-dir . +``` + +Expected output: +``` +Done. PASS=78 WARN=0 ERROR=0 SKIP=0 NO-OP=0 TOTAL=78 +``` + +### 5. Launch the dashboard + +```bash +cd .. +streamlit run dashboard/app.py +``` + +Opens at `http://localhost:8501` + +--- + +## dbt Test Coverage + +78 tests across all models covering: + +- `unique` and `not_null` on all primary and surrogate keys +- `accepted_values` on status, tier, platform, and device_type columns +- `relationships` tests enforcing referential integrity across all foreign keys +- Point-in-time join integrity for SCD Type 2 + +--- + +## CI/CD + +Every push to `dev` and every PR to `main` triggers the full pipeline on a clean GitHub Actions runner: + +``` +checkout → install deps → generate data → load DuckDB → dbt build (78 tests) +``` + +Total runtime: ~46 seconds. The compiled `ecom.duckdb` is uploaded as a workflow artifact. + +--- + +## Domain + +Trendyol-style Turkish e-commerce — 6 months of data (Oct 2024 → Mar 2025): + +- **8 product categories** — Electronics, Fashion, Home & Life, Beauty, Sports, Books, Toys +- **80 sellers** across major Turkish cities +- **~600 customers** with bronze / silver / gold tiers +- **2,500 orders** / **4,881 line items** across iOS, Android, and web +- **4,000 sessions** including 20% anonymous (null customer_id) +- **Intentional data quality issues** — mixed date formats, duplicate customers, orphaned foreign keys — resolved in the staging layer + +--- + +## Key Concepts Demonstrated + +- **Layered architecture** — raw → staging → marts with clear separation of concerns +- **Star schema** — fact + dimension tables with surrogate keys +- **SCD Type 2** — full customer attribute history via `LEAD()` window function +- **dbt best practices** — sources, refs, schema tests, documented models +- **CI/CD for data** — reproducible pipeline from raw data to tested marts in one command +- **Metric layer** — GMV, AOV, gross margin, flash sale rate defined once in SQL