[{"data":1,"prerenderedAt":33492},["ShallowReactive",2],{"tutorial-ecommerce-pipeline\u002Fai-analyst":3,"content-query-HIdwRGxnkw":2081,"content-query-CfBqQbZcXI":3860},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"readingTime":11,"category":12,"tags":13,"variants":24,"difficulty":25,"module":5,"subSteps":26,"step":27,"journeys":28,"learnMore":31,"author":44,"body":48,"_type":266,"_id":2076,"_source":2077,"_file":2078,"_stem":2079,"_extension":2080},"\u002Ftutorials\u002Fecommerce-pipeline\u002Fai-analyst","ecommerce-pipeline",false,"","Set Up Your AI Data Analyst","Enhance your pipeline with AI-generated metadata, create an ecommerce-specific AGENTS.md, and deploy an AI analyst your team can use locally or in Slack.","2026-04-09",10,"Tutorial",[14,15,16,17,18,19,20,21,22,23],"Bruin CLI","Claude Code","Bruin AI","Bruin Cloud","MCP","ClickHouse","BigQuery","Snowflake","Slack","E-commerce",[19,20,21],"Intermediate",true,5,[29,30],"Data Analyst","Data Engineer",[32,35,38,41],{"label":33,"url":34},"Bruin MCP best practices","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fgetting-started\u002Fbruin-mcp.html#best-practices-for-ai-agents",{"label":36,"url":37},"AI enhance command reference","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fcommands\u002Fai-enhance.html",{"label":39,"url":40},"AI Data Analyst module","\u002Flearn\u002Fai-data-analyst",{"label":42,"url":43},"Cloud + Slack AI analyst tutorial","\u002Flearn\u002Fcloud-slack",{"name":45,"role":46,"image":47},"Bruin Team","Bruin Data","\u002Fbruin-logo-2025.svg",{"type":49,"children":50,"toc":2064},"root",[51,60,100,106,112,124,130,137,149,187,200,206,233,238,247,252,1527,1533,1545,1553,1561,1569,1577,1614,1622,1634,1640,1652,1683,1695,1701,1706,1714,1749,1859,1867,1918,1926,1964,1972,1977,1985,1997,2003,2053,2058],{"type":52,"tag":53,"props":54,"children":56},"element","h2",{"id":55},"what-youll-do",[57],{"type":58,"value":59},"text","What you'll do",{"type":52,"tag":61,"props":62,"children":63},"ol",{},[64,77,90,95],{"type":52,"tag":65,"props":66,"children":67},"li",{},[68,70],{"type":58,"value":69},"Auto-generate metadata for every asset using ",{"type":52,"tag":71,"props":72,"children":74},"code",{"className":73},[],[75],{"type":58,"value":76},"bruin ai enhance",{"type":52,"tag":65,"props":78,"children":79},{},[80,82,88],{"type":58,"value":81},"Create an ",{"type":52,"tag":71,"props":83,"children":85},{"className":84},[],[86],{"type":58,"value":87},"AGENTS.md",{"type":58,"value":89}," with ecommerce-specific context",{"type":52,"tag":65,"props":91,"children":92},{},[93],{"type":58,"value":94},"Ask your local AI analyst real business questions",{"type":52,"tag":65,"props":96,"children":97},{},[98],{"type":58,"value":99},"Deploy the analyst to Bruin Cloud so your team can use it in Slack or Teams",{"type":52,"tag":53,"props":101,"children":103},{"id":102},"why-this-step-matters",[104],{"type":58,"value":105},"Why this step matters",{"type":52,"tag":107,"props":108,"children":109},"p",{},[110],{"type":58,"value":111},"Your pipeline produces clean data and reports, but right now the only way to get answers is to write SQL. The AI analyst lets anyone on your team ask questions in plain language and get answers backed by real data.",{"type":52,"tag":107,"props":113,"children":114},{},[115,117,122],{"type":58,"value":116},"The missing piece is context. A general-purpose AI doesn't know that \"ROAS\" means return on ad spend, that Stripe amounts are in cents, or that guest checkouts have a NULL customer email. The ",{"type":52,"tag":71,"props":118,"children":120},{"className":119},[],[121],{"type":58,"value":87},{"type":58,"value":123}," file fills that gap.",{"type":52,"tag":53,"props":125,"children":127},{"id":126},"instructions",[128],{"type":58,"value":129},"Instructions",{"type":52,"tag":131,"props":132,"children":134},"h3",{"id":133},"_1-enhance-all-assets-with-ai-metadata",[135],{"type":58,"value":136},"1) Enhance all assets with AI metadata",{"type":52,"tag":107,"props":138,"children":139},{},[140,142,147],{"type":58,"value":141},"Run ",{"type":52,"tag":71,"props":143,"children":145},{"className":144},[],[146],{"type":58,"value":76},{"type":58,"value":148}," to auto-generate descriptions, column metadata, and quality check suggestions for every asset:",{"type":52,"tag":150,"props":151,"children":155},"pre",{"className":152,"code":153,"language":154,"meta":7,"style":7},"language-bash shiki shiki-themes github-dark","bruin ai enhance ecommerce\u002F\n","bash",[156],{"type":52,"tag":71,"props":157,"children":158},{"__ignoreMap":7},[159],{"type":52,"tag":160,"props":161,"children":164},"span",{"class":162,"line":163},"line",1,[165,171,177,182],{"type":52,"tag":160,"props":166,"children":168},{"style":167},"--shiki-default:#B392F0",[169],{"type":58,"value":170},"bruin",{"type":52,"tag":160,"props":172,"children":174},{"style":173},"--shiki-default:#9ECBFF",[175],{"type":58,"value":176}," ai",{"type":52,"tag":160,"props":178,"children":179},{"style":173},[180],{"type":58,"value":181}," enhance",{"type":52,"tag":160,"props":183,"children":184},{"style":173},[185],{"type":58,"value":186}," ecommerce\u002F\n",{"type":52,"tag":107,"props":188,"children":189},{},[190,192,198],{"type":58,"value":191},"This reads your SQL, figures out what each asset does, and writes descriptions into the asset files. Review the output - it's usually accurate but sometimes suggests ",{"type":52,"tag":71,"props":193,"children":195},{"className":194},[],[196],{"type":58,"value":197},"unique",{"type":58,"value":199}," checks on columns that aren't actually unique.",{"type":52,"tag":131,"props":201,"children":203},{"id":202},"_2-create-your-agentsmd",[204],{"type":58,"value":205},"2) Create your AGENTS.md",{"type":52,"tag":107,"props":207,"children":208},{},[209,210,215,217,223,225,231],{"type":58,"value":81},{"type":52,"tag":71,"props":211,"children":213},{"className":212},[],[214],{"type":58,"value":87},{"type":58,"value":216}," file at the ",{"type":52,"tag":218,"props":219,"children":220},"strong",{},[221],{"type":58,"value":222},"root of your Bruin project",{"type":58,"value":224}," - the directory where ",{"type":52,"tag":71,"props":226,"children":228},{"className":227},[],[229],{"type":58,"value":230},".bruin.yml",{"type":58,"value":232}," lives. Claude Code reads this file automatically when it starts a session in your project directory.",{"type":52,"tag":107,"props":234,"children":235},{},[236],{"type":58,"value":237},"You can ask Claude Code to help draft it:",{"type":52,"tag":239,"props":240,"children":241},"blockquote",{},[242],{"type":52,"tag":107,"props":243,"children":244},{},[245],{"type":58,"value":246},"Create an AGENTS.md file for this ecommerce analytics project. Include data access rules using bruin query with the warehouse connection name from our pipeline, a glossary of ecommerce terms (AOV, ROAS, LTV, etc.), and data caveats like Stripe amounts being in cents and guest checkouts having null customer_email.",{"type":52,"tag":107,"props":248,"children":249},{},[250],{"type":58,"value":251},"Here's what the file should look like. Replace the connection name with the one you set up in Step 1:",{"type":52,"tag":253,"props":254,"children":257},"variant-tabs",{":variants":255,"group":256},"[{\"id\":\"clickhouse\",\"label\":\"ClickHouse\"},{\"id\":\"bigquery\",\"label\":\"BigQuery\"},{\"id\":\"snowflake\",\"label\":\"Snowflake\"}]","warehouse",[258,749,1138],{"type":52,"tag":259,"props":260,"children":261},"template",{"v-slot:clickhouse":7},[262],{"type":52,"tag":150,"props":263,"children":267},{"className":264,"code":265,"language":266,"meta":7,"style":7},"language-markdown shiki shiki-themes github-dark","# AGENTS.md\n\n## Data access\n- Use `bruin query --connection clickhouse-default --query \"\u003CSQL>\"` for all data access\n- Always show the SQL query and explain your reasoning before executing it\n- Add `LIMIT 10` to your SQL when exploring unfamiliar tables or testing complex queries\n- Read the `assets\u002F` directory to understand available tables and their schemas before querying\n- This is a **read-only** environment - never run INSERT, UPDATE, DELETE, or DROP statements\n\n\u003C!-- Customize this list to match the sources you actually connected in Step 1.\n     The example below includes Shopify, Stripe, Klaviyo, Facebook Ads, and GA4.\n     Remove any you don't use and add any additional sources (e.g., TikTok Ads, Pinterest, Zendesk). -->\n## Project overview\nThis is an ecommerce analytics pipeline ingesting data from Shopify (orders,\ncustomers, products, inventory), Stripe (payments, refunds, payouts),\nKlaviyo (email campaigns, flows), Facebook Ads (campaigns, ad insights),\nand GA4 (sessions, events) into your data warehouse.\n\nThe pipeline has three layers:\n- **raw.*** - ingested data from SaaS sources (do not query directly for reporting)\n- **staging.*** - cleaned, deduplicated, joined tables\n- **reports.*** - aggregated business metrics and KPIs\n\n## Domain glossary\n- **AOV** - Average Order Value: net revenue divided by number of paid orders\n- **GMV** - Gross Merchandise Value: total order value before returns and discounts\n- **NMV** - Net Merchandise Value: GMV minus returns, cancellations, and discounts\n- **ROAS** - Return on Ad Spend: attributed revenue divided by ad spend\n- **CAC** - Customer Acquisition Cost: total marketing spend divided by new customers\n- **LTV** - Lifetime Value: total revenue from a customer across all orders\n- **Conversion Rate** - percentage of website sessions resulting in a completed purchase\n- **Cart Abandonment** - percentage of sessions with add-to-cart but no purchase\n- **Repeat Purchase Rate** - percentage of customers with more than one order\n- **Churn** - customers with no order in the past 90 days\n- **SKU** - Stock Keeping Unit: unique identifier for a product variant\n- **Basket Size** - number of items in a single order\n\n## Data caveats\n- All timestamps are in **UTC**\n- Stripe amounts are in **cents** - divide by 100 for dollar values\n- `customer_email` is `NULL` for guest checkouts (~15-20% of orders)\n- Refund window is **30 days** - recent revenue figures may be revised downward\n- Inventory data syncs every **4 hours** - not real-time\n- Shopify `order_total` includes tax and shipping; use `subtotal` for product revenue only\n- Facebook Ads data has a **24-48 hour attribution delay**\n- Klaviyo campaigns have no direct spend - they appear with $0 spend in marketing reports\n\n## Query guidelines\n- For revenue, always use **NMV** (net of returns) unless explicitly asked for GMV\n- Exclude test orders: `WHERE customer_email NOT LIKE '%@test.%'`\n- Use a **12-month lookback window** for LTV calculations by default\n- For marketing attribution, use `reports.rpt_marketing_roi` - do not attempt to join raw ad data with orders directly\n- For daily KPIs, use `reports.rpt_daily_kpis` as the single source of truth\n- Prefer `staging.*` tables over `raw.*` for any analysis\n","markdown",[268],{"type":52,"tag":71,"props":269,"children":270},{"__ignoreMap":7},[271,279,288,297,306,314,323,332,341,349,357,366,375,384,393,402,411,420,428,437,446,455,464,472,481,490,499,508,517,526,535,544,553,562,571,580,589,597,606,615,624,633,642,651,660,669,678,686,695,704,713,722,731,740],{"type":52,"tag":160,"props":272,"children":273},{"class":162,"line":163},[274],{"type":52,"tag":160,"props":275,"children":276},{},[277],{"type":58,"value":278},"# AGENTS.md\n",{"type":52,"tag":160,"props":280,"children":282},{"class":162,"line":281},2,[283],{"type":52,"tag":160,"props":284,"children":285},{"emptyLinePlaceholder":26},[286],{"type":58,"value":287},"\n",{"type":52,"tag":160,"props":289,"children":291},{"class":162,"line":290},3,[292],{"type":52,"tag":160,"props":293,"children":294},{},[295],{"type":58,"value":296},"## Data access\n",{"type":52,"tag":160,"props":298,"children":300},{"class":162,"line":299},4,[301],{"type":52,"tag":160,"props":302,"children":303},{},[304],{"type":58,"value":305},"- Use `bruin query --connection clickhouse-default --query \"\u003CSQL>\"` for all data access\n",{"type":52,"tag":160,"props":307,"children":308},{"class":162,"line":27},[309],{"type":52,"tag":160,"props":310,"children":311},{},[312],{"type":58,"value":313},"- Always show the SQL query and explain your reasoning before executing it\n",{"type":52,"tag":160,"props":315,"children":317},{"class":162,"line":316},6,[318],{"type":52,"tag":160,"props":319,"children":320},{},[321],{"type":58,"value":322},"- Add `LIMIT 10` to your SQL when exploring unfamiliar tables or testing complex queries\n",{"type":52,"tag":160,"props":324,"children":326},{"class":162,"line":325},7,[327],{"type":52,"tag":160,"props":328,"children":329},{},[330],{"type":58,"value":331},"- Read the `assets\u002F` directory to understand available tables and their schemas before querying\n",{"type":52,"tag":160,"props":333,"children":335},{"class":162,"line":334},8,[336],{"type":52,"tag":160,"props":337,"children":338},{},[339],{"type":58,"value":340},"- This is a **read-only** environment - never run INSERT, UPDATE, DELETE, or DROP statements\n",{"type":52,"tag":160,"props":342,"children":344},{"class":162,"line":343},9,[345],{"type":52,"tag":160,"props":346,"children":347},{"emptyLinePlaceholder":26},[348],{"type":58,"value":287},{"type":52,"tag":160,"props":350,"children":351},{"class":162,"line":11},[352],{"type":52,"tag":160,"props":353,"children":354},{},[355],{"type":58,"value":356},"\u003C!-- Customize this list to match the sources you actually connected in Step 1.\n",{"type":52,"tag":160,"props":358,"children":360},{"class":162,"line":359},11,[361],{"type":52,"tag":160,"props":362,"children":363},{},[364],{"type":58,"value":365},"     The example below includes Shopify, Stripe, Klaviyo, Facebook Ads, and GA4.\n",{"type":52,"tag":160,"props":367,"children":369},{"class":162,"line":368},12,[370],{"type":52,"tag":160,"props":371,"children":372},{},[373],{"type":58,"value":374},"     Remove any you don't use and add any additional sources (e.g., TikTok Ads, Pinterest, Zendesk). -->\n",{"type":52,"tag":160,"props":376,"children":378},{"class":162,"line":377},13,[379],{"type":52,"tag":160,"props":380,"children":381},{},[382],{"type":58,"value":383},"## Project overview\n",{"type":52,"tag":160,"props":385,"children":387},{"class":162,"line":386},14,[388],{"type":52,"tag":160,"props":389,"children":390},{},[391],{"type":58,"value":392},"This is an ecommerce analytics pipeline ingesting data from Shopify (orders,\n",{"type":52,"tag":160,"props":394,"children":396},{"class":162,"line":395},15,[397],{"type":52,"tag":160,"props":398,"children":399},{},[400],{"type":58,"value":401},"customers, products, inventory), Stripe (payments, refunds, payouts),\n",{"type":52,"tag":160,"props":403,"children":405},{"class":162,"line":404},16,[406],{"type":52,"tag":160,"props":407,"children":408},{},[409],{"type":58,"value":410},"Klaviyo (email campaigns, flows), Facebook Ads (campaigns, ad insights),\n",{"type":52,"tag":160,"props":412,"children":414},{"class":162,"line":413},17,[415],{"type":52,"tag":160,"props":416,"children":417},{},[418],{"type":58,"value":419},"and GA4 (sessions, events) into your data warehouse.\n",{"type":52,"tag":160,"props":421,"children":423},{"class":162,"line":422},18,[424],{"type":52,"tag":160,"props":425,"children":426},{"emptyLinePlaceholder":26},[427],{"type":58,"value":287},{"type":52,"tag":160,"props":429,"children":431},{"class":162,"line":430},19,[432],{"type":52,"tag":160,"props":433,"children":434},{},[435],{"type":58,"value":436},"The pipeline has three layers:\n",{"type":52,"tag":160,"props":438,"children":440},{"class":162,"line":439},20,[441],{"type":52,"tag":160,"props":442,"children":443},{},[444],{"type":58,"value":445},"- **raw.*** - ingested data from SaaS sources (do not query directly for reporting)\n",{"type":52,"tag":160,"props":447,"children":449},{"class":162,"line":448},21,[450],{"type":52,"tag":160,"props":451,"children":452},{},[453],{"type":58,"value":454},"- **staging.*** - cleaned, deduplicated, joined tables\n",{"type":52,"tag":160,"props":456,"children":458},{"class":162,"line":457},22,[459],{"type":52,"tag":160,"props":460,"children":461},{},[462],{"type":58,"value":463},"- **reports.*** - aggregated business metrics and KPIs\n",{"type":52,"tag":160,"props":465,"children":467},{"class":162,"line":466},23,[468],{"type":52,"tag":160,"props":469,"children":470},{"emptyLinePlaceholder":26},[471],{"type":58,"value":287},{"type":52,"tag":160,"props":473,"children":475},{"class":162,"line":474},24,[476],{"type":52,"tag":160,"props":477,"children":478},{},[479],{"type":58,"value":480},"## Domain glossary\n",{"type":52,"tag":160,"props":482,"children":484},{"class":162,"line":483},25,[485],{"type":52,"tag":160,"props":486,"children":487},{},[488],{"type":58,"value":489},"- **AOV** - Average Order Value: net revenue divided by number of paid orders\n",{"type":52,"tag":160,"props":491,"children":493},{"class":162,"line":492},26,[494],{"type":52,"tag":160,"props":495,"children":496},{},[497],{"type":58,"value":498},"- **GMV** - Gross Merchandise Value: total order value before returns and discounts\n",{"type":52,"tag":160,"props":500,"children":502},{"class":162,"line":501},27,[503],{"type":52,"tag":160,"props":504,"children":505},{},[506],{"type":58,"value":507},"- **NMV** - Net Merchandise Value: GMV minus returns, cancellations, and discounts\n",{"type":52,"tag":160,"props":509,"children":511},{"class":162,"line":510},28,[512],{"type":52,"tag":160,"props":513,"children":514},{},[515],{"type":58,"value":516},"- **ROAS** - Return on Ad Spend: attributed revenue divided by ad spend\n",{"type":52,"tag":160,"props":518,"children":520},{"class":162,"line":519},29,[521],{"type":52,"tag":160,"props":522,"children":523},{},[524],{"type":58,"value":525},"- **CAC** - Customer Acquisition Cost: total marketing spend divided by new customers\n",{"type":52,"tag":160,"props":527,"children":529},{"class":162,"line":528},30,[530],{"type":52,"tag":160,"props":531,"children":532},{},[533],{"type":58,"value":534},"- **LTV** - Lifetime Value: total revenue from a customer across all orders\n",{"type":52,"tag":160,"props":536,"children":538},{"class":162,"line":537},31,[539],{"type":52,"tag":160,"props":540,"children":541},{},[542],{"type":58,"value":543},"- **Conversion Rate** - percentage of website sessions resulting in a completed purchase\n",{"type":52,"tag":160,"props":545,"children":547},{"class":162,"line":546},32,[548],{"type":52,"tag":160,"props":549,"children":550},{},[551],{"type":58,"value":552},"- **Cart Abandonment** - percentage of sessions with add-to-cart but no purchase\n",{"type":52,"tag":160,"props":554,"children":556},{"class":162,"line":555},33,[557],{"type":52,"tag":160,"props":558,"children":559},{},[560],{"type":58,"value":561},"- **Repeat Purchase Rate** - percentage of customers with more than one order\n",{"type":52,"tag":160,"props":563,"children":565},{"class":162,"line":564},34,[566],{"type":52,"tag":160,"props":567,"children":568},{},[569],{"type":58,"value":570},"- **Churn** - customers with no order in the past 90 days\n",{"type":52,"tag":160,"props":572,"children":574},{"class":162,"line":573},35,[575],{"type":52,"tag":160,"props":576,"children":577},{},[578],{"type":58,"value":579},"- **SKU** - Stock Keeping Unit: unique identifier for a product variant\n",{"type":52,"tag":160,"props":581,"children":583},{"class":162,"line":582},36,[584],{"type":52,"tag":160,"props":585,"children":586},{},[587],{"type":58,"value":588},"- **Basket Size** - number of items in a single order\n",{"type":52,"tag":160,"props":590,"children":592},{"class":162,"line":591},37,[593],{"type":52,"tag":160,"props":594,"children":595},{"emptyLinePlaceholder":26},[596],{"type":58,"value":287},{"type":52,"tag":160,"props":598,"children":600},{"class":162,"line":599},38,[601],{"type":52,"tag":160,"props":602,"children":603},{},[604],{"type":58,"value":605},"## Data caveats\n",{"type":52,"tag":160,"props":607,"children":609},{"class":162,"line":608},39,[610],{"type":52,"tag":160,"props":611,"children":612},{},[613],{"type":58,"value":614},"- All timestamps are in **UTC**\n",{"type":52,"tag":160,"props":616,"children":618},{"class":162,"line":617},40,[619],{"type":52,"tag":160,"props":620,"children":621},{},[622],{"type":58,"value":623},"- Stripe amounts are in **cents** - divide by 100 for dollar values\n",{"type":52,"tag":160,"props":625,"children":627},{"class":162,"line":626},41,[628],{"type":52,"tag":160,"props":629,"children":630},{},[631],{"type":58,"value":632},"- `customer_email` is `NULL` for guest checkouts (~15-20% of orders)\n",{"type":52,"tag":160,"props":634,"children":636},{"class":162,"line":635},42,[637],{"type":52,"tag":160,"props":638,"children":639},{},[640],{"type":58,"value":641},"- Refund window is **30 days** - recent revenue figures may be revised downward\n",{"type":52,"tag":160,"props":643,"children":645},{"class":162,"line":644},43,[646],{"type":52,"tag":160,"props":647,"children":648},{},[649],{"type":58,"value":650},"- Inventory data syncs every **4 hours** - not real-time\n",{"type":52,"tag":160,"props":652,"children":654},{"class":162,"line":653},44,[655],{"type":52,"tag":160,"props":656,"children":657},{},[658],{"type":58,"value":659},"- Shopify `order_total` includes tax and shipping; use `subtotal` for product revenue only\n",{"type":52,"tag":160,"props":661,"children":663},{"class":162,"line":662},45,[664],{"type":52,"tag":160,"props":665,"children":666},{},[667],{"type":58,"value":668},"- Facebook Ads data has a **24-48 hour attribution delay**\n",{"type":52,"tag":160,"props":670,"children":672},{"class":162,"line":671},46,[673],{"type":52,"tag":160,"props":674,"children":675},{},[676],{"type":58,"value":677},"- Klaviyo campaigns have no direct spend - they appear with $0 spend in marketing reports\n",{"type":52,"tag":160,"props":679,"children":681},{"class":162,"line":680},47,[682],{"type":52,"tag":160,"props":683,"children":684},{"emptyLinePlaceholder":26},[685],{"type":58,"value":287},{"type":52,"tag":160,"props":687,"children":689},{"class":162,"line":688},48,[690],{"type":52,"tag":160,"props":691,"children":692},{},[693],{"type":58,"value":694},"## Query guidelines\n",{"type":52,"tag":160,"props":696,"children":698},{"class":162,"line":697},49,[699],{"type":52,"tag":160,"props":700,"children":701},{},[702],{"type":58,"value":703},"- For revenue, always use **NMV** (net of returns) unless explicitly asked for GMV\n",{"type":52,"tag":160,"props":705,"children":707},{"class":162,"line":706},50,[708],{"type":52,"tag":160,"props":709,"children":710},{},[711],{"type":58,"value":712},"- Exclude test orders: `WHERE customer_email NOT LIKE '%@test.%'`\n",{"type":52,"tag":160,"props":714,"children":716},{"class":162,"line":715},51,[717],{"type":52,"tag":160,"props":718,"children":719},{},[720],{"type":58,"value":721},"- Use a **12-month lookback window** for LTV calculations by default\n",{"type":52,"tag":160,"props":723,"children":725},{"class":162,"line":724},52,[726],{"type":52,"tag":160,"props":727,"children":728},{},[729],{"type":58,"value":730},"- For marketing attribution, use `reports.rpt_marketing_roi` - do not attempt to join raw ad data with orders directly\n",{"type":52,"tag":160,"props":732,"children":734},{"class":162,"line":733},53,[735],{"type":52,"tag":160,"props":736,"children":737},{},[738],{"type":58,"value":739},"- For daily KPIs, use `reports.rpt_daily_kpis` as the single source of truth\n",{"type":52,"tag":160,"props":741,"children":743},{"class":162,"line":742},54,[744],{"type":52,"tag":160,"props":745,"children":746},{},[747],{"type":58,"value":748},"- Prefer `staging.*` tables over `raw.*` for any analysis\n",{"type":52,"tag":259,"props":750,"children":751},{"v-slot:bigquery":7},[752],{"type":52,"tag":150,"props":753,"children":755},{"className":264,"code":754,"language":266,"meta":7,"style":7},"# AGENTS.md\n\n## Data access\n- Use `bruin query --connection bigquery-default --query \"\u003CSQL>\"` for all data access\n- Always show the SQL query and explain your reasoning before executing it\n- Add `LIMIT 10` to your SQL when exploring unfamiliar tables or testing complex queries\n- Read the `assets\u002F` directory to understand available tables and their schemas before querying\n- This is a **read-only** environment - never run INSERT, UPDATE, DELETE, or DROP statements\n\n\u003C!-- Customize this list to match the sources you actually connected in Step 1.\n     The example below includes Shopify, Stripe, Klaviyo, Facebook Ads, and GA4.\n     Remove any you don't use and add any additional sources (e.g., TikTok Ads, Pinterest, Zendesk). -->\n## Project overview\nThis is an ecommerce analytics pipeline ingesting data from Shopify (orders,\ncustomers, products, inventory), Stripe (payments, refunds, payouts),\nKlaviyo (email campaigns, flows), Facebook Ads (campaigns, ad insights),\nand GA4 (sessions, events) into your data warehouse.\n\nThe pipeline has three layers:\n- **raw.*** - ingested data from SaaS sources (do not query directly for reporting)\n- **staging.*** - cleaned, deduplicated, joined tables\n- **reports.*** - aggregated business metrics and KPIs\n\n## Domain glossary\n- **AOV** - Average Order Value: net revenue divided by number of paid orders\n- **GMV** - Gross Merchandise Value: total order value before returns and discounts\n- **NMV** - Net Merchandise Value: GMV minus returns, cancellations, and discounts\n- **ROAS** - Return on Ad Spend: attributed revenue divided by ad spend\n- **CAC** - Customer Acquisition Cost: total marketing spend divided by new customers\n- **LTV** - Lifetime Value: total revenue from a customer across all orders\n- **Conversion Rate** - percentage of website sessions resulting in a completed purchase\n- **Cart Abandonment** - percentage of sessions with add-to-cart but no purchase\n- **Repeat Purchase Rate** - percentage of customers with more than one order\n- **Churn** - customers with no order in the past 90 days\n- **SKU** - Stock Keeping Unit: unique identifier for a product variant\n- **Basket Size** - number of items in a single order\n\n## Data caveats\n- All timestamps are in **UTC**\n- Stripe amounts are in **cents** - divide by 100 for dollar values\n- `customer_email` is `NULL` for guest checkouts (~15-20% of orders)\n- Refund window is **30 days** - recent revenue figures may be revised downward\n- Inventory data syncs every **4 hours** - not real-time\n- Shopify `order_total` includes tax and shipping; use `subtotal` for product revenue only\n- Facebook Ads data has a **24-48 hour attribution delay**\n- Klaviyo campaigns have no direct spend - they appear with $0 spend in marketing reports\n\n## Query guidelines\n- For revenue, always use **NMV** (net of returns) unless explicitly asked for GMV\n- Exclude test orders: `WHERE customer_email NOT LIKE '%@test.%'`\n- Use a **12-month lookback window** for LTV calculations by default\n- For marketing attribution, use `reports.rpt_marketing_roi` - do not attempt to join raw ad data with orders directly\n- For daily KPIs, use `reports.rpt_daily_kpis` as the single source of truth\n- Prefer `staging.*` tables over `raw.*` for any analysis\n",[756],{"type":52,"tag":71,"props":757,"children":758},{"__ignoreMap":7},[759,766,773,780,788,795,802,809,816,823,830,837,844,851,858,865,872,879,886,893,900,907,914,921,928,935,942,949,956,963,970,977,984,991,998,1005,1012,1019,1026,1033,1040,1047,1054,1061,1068,1075,1082,1089,1096,1103,1110,1117,1124,1131],{"type":52,"tag":160,"props":760,"children":761},{"class":162,"line":163},[762],{"type":52,"tag":160,"props":763,"children":764},{},[765],{"type":58,"value":278},{"type":52,"tag":160,"props":767,"children":768},{"class":162,"line":281},[769],{"type":52,"tag":160,"props":770,"children":771},{"emptyLinePlaceholder":26},[772],{"type":58,"value":287},{"type":52,"tag":160,"props":774,"children":775},{"class":162,"line":290},[776],{"type":52,"tag":160,"props":777,"children":778},{},[779],{"type":58,"value":296},{"type":52,"tag":160,"props":781,"children":782},{"class":162,"line":299},[783],{"type":52,"tag":160,"props":784,"children":785},{},[786],{"type":58,"value":787},"- Use `bruin query --connection bigquery-default --query \"\u003CSQL>\"` for all data access\n",{"type":52,"tag":160,"props":789,"children":790},{"class":162,"line":27},[791],{"type":52,"tag":160,"props":792,"children":793},{},[794],{"type":58,"value":313},{"type":52,"tag":160,"props":796,"children":797},{"class":162,"line":316},[798],{"type":52,"tag":160,"props":799,"children":800},{},[801],{"type":58,"value":322},{"type":52,"tag":160,"props":803,"children":804},{"class":162,"line":325},[805],{"type":52,"tag":160,"props":806,"children":807},{},[808],{"type":58,"value":331},{"type":52,"tag":160,"props":810,"children":811},{"class":162,"line":334},[812],{"type":52,"tag":160,"props":813,"children":814},{},[815],{"type":58,"value":340},{"type":52,"tag":160,"props":817,"children":818},{"class":162,"line":343},[819],{"type":52,"tag":160,"props":820,"children":821},{"emptyLinePlaceholder":26},[822],{"type":58,"value":287},{"type":52,"tag":160,"props":824,"children":825},{"class":162,"line":11},[826],{"type":52,"tag":160,"props":827,"children":828},{},[829],{"type":58,"value":356},{"type":52,"tag":160,"props":831,"children":832},{"class":162,"line":359},[833],{"type":52,"tag":160,"props":834,"children":835},{},[836],{"type":58,"value":365},{"type":52,"tag":160,"props":838,"children":839},{"class":162,"line":368},[840],{"type":52,"tag":160,"props":841,"children":842},{},[843],{"type":58,"value":374},{"type":52,"tag":160,"props":845,"children":846},{"class":162,"line":377},[847],{"type":52,"tag":160,"props":848,"children":849},{},[850],{"type":58,"value":383},{"type":52,"tag":160,"props":852,"children":853},{"class":162,"line":386},[854],{"type":52,"tag":160,"props":855,"children":856},{},[857],{"type":58,"value":392},{"type":52,"tag":160,"props":859,"children":860},{"class":162,"line":395},[861],{"type":52,"tag":160,"props":862,"children":863},{},[864],{"type":58,"value":401},{"type":52,"tag":160,"props":866,"children":867},{"class":162,"line":404},[868],{"type":52,"tag":160,"props":869,"children":870},{},[871],{"type":58,"value":410},{"type":52,"tag":160,"props":873,"children":874},{"class":162,"line":413},[875],{"type":52,"tag":160,"props":876,"children":877},{},[878],{"type":58,"value":419},{"type":52,"tag":160,"props":880,"children":881},{"class":162,"line":422},[882],{"type":52,"tag":160,"props":883,"children":884},{"emptyLinePlaceholder":26},[885],{"type":58,"value":287},{"type":52,"tag":160,"props":887,"children":888},{"class":162,"line":430},[889],{"type":52,"tag":160,"props":890,"children":891},{},[892],{"type":58,"value":436},{"type":52,"tag":160,"props":894,"children":895},{"class":162,"line":439},[896],{"type":52,"tag":160,"props":897,"children":898},{},[899],{"type":58,"value":445},{"type":52,"tag":160,"props":901,"children":902},{"class":162,"line":448},[903],{"type":52,"tag":160,"props":904,"children":905},{},[906],{"type":58,"value":454},{"type":52,"tag":160,"props":908,"children":909},{"class":162,"line":457},[910],{"type":52,"tag":160,"props":911,"children":912},{},[913],{"type":58,"value":463},{"type":52,"tag":160,"props":915,"children":916},{"class":162,"line":466},[917],{"type":52,"tag":160,"props":918,"children":919},{"emptyLinePlaceholder":26},[920],{"type":58,"value":287},{"type":52,"tag":160,"props":922,"children":923},{"class":162,"line":474},[924],{"type":52,"tag":160,"props":925,"children":926},{},[927],{"type":58,"value":480},{"type":52,"tag":160,"props":929,"children":930},{"class":162,"line":483},[931],{"type":52,"tag":160,"props":932,"children":933},{},[934],{"type":58,"value":489},{"type":52,"tag":160,"props":936,"children":937},{"class":162,"line":492},[938],{"type":52,"tag":160,"props":939,"children":940},{},[941],{"type":58,"value":498},{"type":52,"tag":160,"props":943,"children":944},{"class":162,"line":501},[945],{"type":52,"tag":160,"props":946,"children":947},{},[948],{"type":58,"value":507},{"type":52,"tag":160,"props":950,"children":951},{"class":162,"line":510},[952],{"type":52,"tag":160,"props":953,"children":954},{},[955],{"type":58,"value":516},{"type":52,"tag":160,"props":957,"children":958},{"class":162,"line":519},[959],{"type":52,"tag":160,"props":960,"children":961},{},[962],{"type":58,"value":525},{"type":52,"tag":160,"props":964,"children":965},{"class":162,"line":528},[966],{"type":52,"tag":160,"props":967,"children":968},{},[969],{"type":58,"value":534},{"type":52,"tag":160,"props":971,"children":972},{"class":162,"line":537},[973],{"type":52,"tag":160,"props":974,"children":975},{},[976],{"type":58,"value":543},{"type":52,"tag":160,"props":978,"children":979},{"class":162,"line":546},[980],{"type":52,"tag":160,"props":981,"children":982},{},[983],{"type":58,"value":552},{"type":52,"tag":160,"props":985,"children":986},{"class":162,"line":555},[987],{"type":52,"tag":160,"props":988,"children":989},{},[990],{"type":58,"value":561},{"type":52,"tag":160,"props":992,"children":993},{"class":162,"line":564},[994],{"type":52,"tag":160,"props":995,"children":996},{},[997],{"type":58,"value":570},{"type":52,"tag":160,"props":999,"children":1000},{"class":162,"line":573},[1001],{"type":52,"tag":160,"props":1002,"children":1003},{},[1004],{"type":58,"value":579},{"type":52,"tag":160,"props":1006,"children":1007},{"class":162,"line":582},[1008],{"type":52,"tag":160,"props":1009,"children":1010},{},[1011],{"type":58,"value":588},{"type":52,"tag":160,"props":1013,"children":1014},{"class":162,"line":591},[1015],{"type":52,"tag":160,"props":1016,"children":1017},{"emptyLinePlaceholder":26},[1018],{"type":58,"value":287},{"type":52,"tag":160,"props":1020,"children":1021},{"class":162,"line":599},[1022],{"type":52,"tag":160,"props":1023,"children":1024},{},[1025],{"type":58,"value":605},{"type":52,"tag":160,"props":1027,"children":1028},{"class":162,"line":608},[1029],{"type":52,"tag":160,"props":1030,"children":1031},{},[1032],{"type":58,"value":614},{"type":52,"tag":160,"props":1034,"children":1035},{"class":162,"line":617},[1036],{"type":52,"tag":160,"props":1037,"children":1038},{},[1039],{"type":58,"value":623},{"type":52,"tag":160,"props":1041,"children":1042},{"class":162,"line":626},[1043],{"type":52,"tag":160,"props":1044,"children":1045},{},[1046],{"type":58,"value":632},{"type":52,"tag":160,"props":1048,"children":1049},{"class":162,"line":635},[1050],{"type":52,"tag":160,"props":1051,"children":1052},{},[1053],{"type":58,"value":641},{"type":52,"tag":160,"props":1055,"children":1056},{"class":162,"line":644},[1057],{"type":52,"tag":160,"props":1058,"children":1059},{},[1060],{"type":58,"value":650},{"type":52,"tag":160,"props":1062,"children":1063},{"class":162,"line":653},[1064],{"type":52,"tag":160,"props":1065,"children":1066},{},[1067],{"type":58,"value":659},{"type":52,"tag":160,"props":1069,"children":1070},{"class":162,"line":662},[1071],{"type":52,"tag":160,"props":1072,"children":1073},{},[1074],{"type":58,"value":668},{"type":52,"tag":160,"props":1076,"children":1077},{"class":162,"line":671},[1078],{"type":52,"tag":160,"props":1079,"children":1080},{},[1081],{"type":58,"value":677},{"type":52,"tag":160,"props":1083,"children":1084},{"class":162,"line":680},[1085],{"type":52,"tag":160,"props":1086,"children":1087},{"emptyLinePlaceholder":26},[1088],{"type":58,"value":287},{"type":52,"tag":160,"props":1090,"children":1091},{"class":162,"line":688},[1092],{"type":52,"tag":160,"props":1093,"children":1094},{},[1095],{"type":58,"value":694},{"type":52,"tag":160,"props":1097,"children":1098},{"class":162,"line":697},[1099],{"type":52,"tag":160,"props":1100,"children":1101},{},[1102],{"type":58,"value":703},{"type":52,"tag":160,"props":1104,"children":1105},{"class":162,"line":706},[1106],{"type":52,"tag":160,"props":1107,"children":1108},{},[1109],{"type":58,"value":712},{"type":52,"tag":160,"props":1111,"children":1112},{"class":162,"line":715},[1113],{"type":52,"tag":160,"props":1114,"children":1115},{},[1116],{"type":58,"value":721},{"type":52,"tag":160,"props":1118,"children":1119},{"class":162,"line":724},[1120],{"type":52,"tag":160,"props":1121,"children":1122},{},[1123],{"type":58,"value":730},{"type":52,"tag":160,"props":1125,"children":1126},{"class":162,"line":733},[1127],{"type":52,"tag":160,"props":1128,"children":1129},{},[1130],{"type":58,"value":739},{"type":52,"tag":160,"props":1132,"children":1133},{"class":162,"line":742},[1134],{"type":52,"tag":160,"props":1135,"children":1136},{},[1137],{"type":58,"value":748},{"type":52,"tag":259,"props":1139,"children":1140},{"v-slot:snowflake":7},[1141],{"type":52,"tag":150,"props":1142,"children":1144},{"className":264,"code":1143,"language":266,"meta":7,"style":7},"# AGENTS.md\n\n## Data access\n- Use `bruin query --connection snowflake-default --query \"\u003CSQL>\"` for all data access\n- Always show the SQL query and explain your reasoning before executing it\n- Add `LIMIT 10` to your SQL when exploring unfamiliar tables or testing complex queries\n- Read the `assets\u002F` directory to understand available tables and their schemas before querying\n- This is a **read-only** environment - never run INSERT, UPDATE, DELETE, or DROP statements\n\n\u003C!-- Customize this list to match the sources you actually connected in Step 1.\n     The example below includes Shopify, Stripe, Klaviyo, Facebook Ads, and GA4.\n     Remove any you don't use and add any additional sources (e.g., TikTok Ads, Pinterest, Zendesk). -->\n## Project overview\nThis is an ecommerce analytics pipeline ingesting data from Shopify (orders,\ncustomers, products, inventory), Stripe (payments, refunds, payouts),\nKlaviyo (email campaigns, flows), Facebook Ads (campaigns, ad insights),\nand GA4 (sessions, events) into your data warehouse.\n\nThe pipeline has three layers:\n- **raw.*** - ingested data from SaaS sources (do not query directly for reporting)\n- **staging.*** - cleaned, deduplicated, joined tables\n- **reports.*** - aggregated business metrics and KPIs\n\n## Domain glossary\n- **AOV** - Average Order Value: net revenue divided by number of paid orders\n- **GMV** - Gross Merchandise Value: total order value before returns and discounts\n- **NMV** - Net Merchandise Value: GMV minus returns, cancellations, and discounts\n- **ROAS** - Return on Ad Spend: attributed revenue divided by ad spend\n- **CAC** - Customer Acquisition Cost: total marketing spend divided by new customers\n- **LTV** - Lifetime Value: total revenue from a customer across all orders\n- **Conversion Rate** - percentage of website sessions resulting in a completed purchase\n- **Cart Abandonment** - percentage of sessions with add-to-cart but no purchase\n- **Repeat Purchase Rate** - percentage of customers with more than one order\n- **Churn** - customers with no order in the past 90 days\n- **SKU** - Stock Keeping Unit: unique identifier for a product variant\n- **Basket Size** - number of items in a single order\n\n## Data caveats\n- All timestamps are in **UTC**\n- Stripe amounts are in **cents** - divide by 100 for dollar values\n- `customer_email` is `NULL` for guest checkouts (~15-20% of orders)\n- Refund window is **30 days** - recent revenue figures may be revised downward\n- Inventory data syncs every **4 hours** - not real-time\n- Shopify `order_total` includes tax and shipping; use `subtotal` for product revenue only\n- Facebook Ads data has a **24-48 hour attribution delay**\n- Klaviyo campaigns have no direct spend - they appear with $0 spend in marketing reports\n\n## Query guidelines\n- For revenue, always use **NMV** (net of returns) unless explicitly asked for GMV\n- Exclude test orders: `WHERE customer_email NOT LIKE '%@test.%'`\n- Use a **12-month lookback window** for LTV calculations by default\n- For marketing attribution, use `reports.rpt_marketing_roi` - do not attempt to join raw ad data with orders directly\n- For daily KPIs, use `reports.rpt_daily_kpis` as the single source of truth\n- Prefer `staging.*` tables over `raw.*` for any analysis\n",[1145],{"type":52,"tag":71,"props":1146,"children":1147},{"__ignoreMap":7},[1148,1155,1162,1169,1177,1184,1191,1198,1205,1212,1219,1226,1233,1240,1247,1254,1261,1268,1275,1282,1289,1296,1303,1310,1317,1324,1331,1338,1345,1352,1359,1366,1373,1380,1387,1394,1401,1408,1415,1422,1429,1436,1443,1450,1457,1464,1471,1478,1485,1492,1499,1506,1513,1520],{"type":52,"tag":160,"props":1149,"children":1150},{"class":162,"line":163},[1151],{"type":52,"tag":160,"props":1152,"children":1153},{},[1154],{"type":58,"value":278},{"type":52,"tag":160,"props":1156,"children":1157},{"class":162,"line":281},[1158],{"type":52,"tag":160,"props":1159,"children":1160},{"emptyLinePlaceholder":26},[1161],{"type":58,"value":287},{"type":52,"tag":160,"props":1163,"children":1164},{"class":162,"line":290},[1165],{"type":52,"tag":160,"props":1166,"children":1167},{},[1168],{"type":58,"value":296},{"type":52,"tag":160,"props":1170,"children":1171},{"class":162,"line":299},[1172],{"type":52,"tag":160,"props":1173,"children":1174},{},[1175],{"type":58,"value":1176},"- Use `bruin query --connection snowflake-default --query \"\u003CSQL>\"` for all data access\n",{"type":52,"tag":160,"props":1178,"children":1179},{"class":162,"line":27},[1180],{"type":52,"tag":160,"props":1181,"children":1182},{},[1183],{"type":58,"value":313},{"type":52,"tag":160,"props":1185,"children":1186},{"class":162,"line":316},[1187],{"type":52,"tag":160,"props":1188,"children":1189},{},[1190],{"type":58,"value":322},{"type":52,"tag":160,"props":1192,"children":1193},{"class":162,"line":325},[1194],{"type":52,"tag":160,"props":1195,"children":1196},{},[1197],{"type":58,"value":331},{"type":52,"tag":160,"props":1199,"children":1200},{"class":162,"line":334},[1201],{"type":52,"tag":160,"props":1202,"children":1203},{},[1204],{"type":58,"value":340},{"type":52,"tag":160,"props":1206,"children":1207},{"class":162,"line":343},[1208],{"type":52,"tag":160,"props":1209,"children":1210},{"emptyLinePlaceholder":26},[1211],{"type":58,"value":287},{"type":52,"tag":160,"props":1213,"children":1214},{"class":162,"line":11},[1215],{"type":52,"tag":160,"props":1216,"children":1217},{},[1218],{"type":58,"value":356},{"type":52,"tag":160,"props":1220,"children":1221},{"class":162,"line":359},[1222],{"type":52,"tag":160,"props":1223,"children":1224},{},[1225],{"type":58,"value":365},{"type":52,"tag":160,"props":1227,"children":1228},{"class":162,"line":368},[1229],{"type":52,"tag":160,"props":1230,"children":1231},{},[1232],{"type":58,"value":374},{"type":52,"tag":160,"props":1234,"children":1235},{"class":162,"line":377},[1236],{"type":52,"tag":160,"props":1237,"children":1238},{},[1239],{"type":58,"value":383},{"type":52,"tag":160,"props":1241,"children":1242},{"class":162,"line":386},[1243],{"type":52,"tag":160,"props":1244,"children":1245},{},[1246],{"type":58,"value":392},{"type":52,"tag":160,"props":1248,"children":1249},{"class":162,"line":395},[1250],{"type":52,"tag":160,"props":1251,"children":1252},{},[1253],{"type":58,"value":401},{"type":52,"tag":160,"props":1255,"children":1256},{"class":162,"line":404},[1257],{"type":52,"tag":160,"props":1258,"children":1259},{},[1260],{"type":58,"value":410},{"type":52,"tag":160,"props":1262,"children":1263},{"class":162,"line":413},[1264],{"type":52,"tag":160,"props":1265,"children":1266},{},[1267],{"type":58,"value":419},{"type":52,"tag":160,"props":1269,"children":1270},{"class":162,"line":422},[1271],{"type":52,"tag":160,"props":1272,"children":1273},{"emptyLinePlaceholder":26},[1274],{"type":58,"value":287},{"type":52,"tag":160,"props":1276,"children":1277},{"class":162,"line":430},[1278],{"type":52,"tag":160,"props":1279,"children":1280},{},[1281],{"type":58,"value":436},{"type":52,"tag":160,"props":1283,"children":1284},{"class":162,"line":439},[1285],{"type":52,"tag":160,"props":1286,"children":1287},{},[1288],{"type":58,"value":445},{"type":52,"tag":160,"props":1290,"children":1291},{"class":162,"line":448},[1292],{"type":52,"tag":160,"props":1293,"children":1294},{},[1295],{"type":58,"value":454},{"type":52,"tag":160,"props":1297,"children":1298},{"class":162,"line":457},[1299],{"type":52,"tag":160,"props":1300,"children":1301},{},[1302],{"type":58,"value":463},{"type":52,"tag":160,"props":1304,"children":1305},{"class":162,"line":466},[1306],{"type":52,"tag":160,"props":1307,"children":1308},{"emptyLinePlaceholder":26},[1309],{"type":58,"value":287},{"type":52,"tag":160,"props":1311,"children":1312},{"class":162,"line":474},[1313],{"type":52,"tag":160,"props":1314,"children":1315},{},[1316],{"type":58,"value":480},{"type":52,"tag":160,"props":1318,"children":1319},{"class":162,"line":483},[1320],{"type":52,"tag":160,"props":1321,"children":1322},{},[1323],{"type":58,"value":489},{"type":52,"tag":160,"props":1325,"children":1326},{"class":162,"line":492},[1327],{"type":52,"tag":160,"props":1328,"children":1329},{},[1330],{"type":58,"value":498},{"type":52,"tag":160,"props":1332,"children":1333},{"class":162,"line":501},[1334],{"type":52,"tag":160,"props":1335,"children":1336},{},[1337],{"type":58,"value":507},{"type":52,"tag":160,"props":1339,"children":1340},{"class":162,"line":510},[1341],{"type":52,"tag":160,"props":1342,"children":1343},{},[1344],{"type":58,"value":516},{"type":52,"tag":160,"props":1346,"children":1347},{"class":162,"line":519},[1348],{"type":52,"tag":160,"props":1349,"children":1350},{},[1351],{"type":58,"value":525},{"type":52,"tag":160,"props":1353,"children":1354},{"class":162,"line":528},[1355],{"type":52,"tag":160,"props":1356,"children":1357},{},[1358],{"type":58,"value":534},{"type":52,"tag":160,"props":1360,"children":1361},{"class":162,"line":537},[1362],{"type":52,"tag":160,"props":1363,"children":1364},{},[1365],{"type":58,"value":543},{"type":52,"tag":160,"props":1367,"children":1368},{"class":162,"line":546},[1369],{"type":52,"tag":160,"props":1370,"children":1371},{},[1372],{"type":58,"value":552},{"type":52,"tag":160,"props":1374,"children":1375},{"class":162,"line":555},[1376],{"type":52,"tag":160,"props":1377,"children":1378},{},[1379],{"type":58,"value":561},{"type":52,"tag":160,"props":1381,"children":1382},{"class":162,"line":564},[1383],{"type":52,"tag":160,"props":1384,"children":1385},{},[1386],{"type":58,"value":570},{"type":52,"tag":160,"props":1388,"children":1389},{"class":162,"line":573},[1390],{"type":52,"tag":160,"props":1391,"children":1392},{},[1393],{"type":58,"value":579},{"type":52,"tag":160,"props":1395,"children":1396},{"class":162,"line":582},[1397],{"type":52,"tag":160,"props":1398,"children":1399},{},[1400],{"type":58,"value":588},{"type":52,"tag":160,"props":1402,"children":1403},{"class":162,"line":591},[1404],{"type":52,"tag":160,"props":1405,"children":1406},{"emptyLinePlaceholder":26},[1407],{"type":58,"value":287},{"type":52,"tag":160,"props":1409,"children":1410},{"class":162,"line":599},[1411],{"type":52,"tag":160,"props":1412,"children":1413},{},[1414],{"type":58,"value":605},{"type":52,"tag":160,"props":1416,"children":1417},{"class":162,"line":608},[1418],{"type":52,"tag":160,"props":1419,"children":1420},{},[1421],{"type":58,"value":614},{"type":52,"tag":160,"props":1423,"children":1424},{"class":162,"line":617},[1425],{"type":52,"tag":160,"props":1426,"children":1427},{},[1428],{"type":58,"value":623},{"type":52,"tag":160,"props":1430,"children":1431},{"class":162,"line":626},[1432],{"type":52,"tag":160,"props":1433,"children":1434},{},[1435],{"type":58,"value":632},{"type":52,"tag":160,"props":1437,"children":1438},{"class":162,"line":635},[1439],{"type":52,"tag":160,"props":1440,"children":1441},{},[1442],{"type":58,"value":641},{"type":52,"tag":160,"props":1444,"children":1445},{"class":162,"line":644},[1446],{"type":52,"tag":160,"props":1447,"children":1448},{},[1449],{"type":58,"value":650},{"type":52,"tag":160,"props":1451,"children":1452},{"class":162,"line":653},[1453],{"type":52,"tag":160,"props":1454,"children":1455},{},[1456],{"type":58,"value":659},{"type":52,"tag":160,"props":1458,"children":1459},{"class":162,"line":662},[1460],{"type":52,"tag":160,"props":1461,"children":1462},{},[1463],{"type":58,"value":668},{"type":52,"tag":160,"props":1465,"children":1466},{"class":162,"line":671},[1467],{"type":52,"tag":160,"props":1468,"children":1469},{},[1470],{"type":58,"value":677},{"type":52,"tag":160,"props":1472,"children":1473},{"class":162,"line":680},[1474],{"type":52,"tag":160,"props":1475,"children":1476},{"emptyLinePlaceholder":26},[1477],{"type":58,"value":287},{"type":52,"tag":160,"props":1479,"children":1480},{"class":162,"line":688},[1481],{"type":52,"tag":160,"props":1482,"children":1483},{},[1484],{"type":58,"value":694},{"type":52,"tag":160,"props":1486,"children":1487},{"class":162,"line":697},[1488],{"type":52,"tag":160,"props":1489,"children":1490},{},[1491],{"type":58,"value":703},{"type":52,"tag":160,"props":1493,"children":1494},{"class":162,"line":706},[1495],{"type":52,"tag":160,"props":1496,"children":1497},{},[1498],{"type":58,"value":712},{"type":52,"tag":160,"props":1500,"children":1501},{"class":162,"line":715},[1502],{"type":52,"tag":160,"props":1503,"children":1504},{},[1505],{"type":58,"value":721},{"type":52,"tag":160,"props":1507,"children":1508},{"class":162,"line":724},[1509],{"type":52,"tag":160,"props":1510,"children":1511},{},[1512],{"type":58,"value":730},{"type":52,"tag":160,"props":1514,"children":1515},{"class":162,"line":733},[1516],{"type":52,"tag":160,"props":1517,"children":1518},{},[1519],{"type":58,"value":739},{"type":52,"tag":160,"props":1521,"children":1522},{"class":162,"line":742},[1523],{"type":52,"tag":160,"props":1524,"children":1525},{},[1526],{"type":58,"value":748},{"type":52,"tag":131,"props":1528,"children":1530},{"id":1529},"_3-ask-claude-code-real-business-questions",[1531],{"type":58,"value":1532},"3) Ask Claude Code real business questions",{"type":52,"tag":107,"props":1534,"children":1535},{},[1536,1538,1543],{"type":58,"value":1537},"With the Bruin MCP connected and ",{"type":52,"tag":71,"props":1539,"children":1541},{"className":1540},[],[1542],{"type":58,"value":87},{"type":58,"value":1544}," in place, Claude Code is now your ecommerce data analyst. Try these:",{"type":52,"tag":239,"props":1546,"children":1547},{},[1548],{"type":52,"tag":107,"props":1549,"children":1550},{},[1551],{"type":58,"value":1552},"What was our revenue last week compared to the week before? Break it down by day.",{"type":52,"tag":239,"props":1554,"children":1555},{},[1556],{"type":52,"tag":107,"props":1557,"children":1558},{},[1559],{"type":58,"value":1560},"Which marketing channel had the best ROAS in the past 30 days?",{"type":52,"tag":239,"props":1562,"children":1563},{},[1564],{"type":52,"tag":107,"props":1565,"children":1566},{},[1567],{"type":58,"value":1568},"Show me the customer cohort retention curve for customers acquired in January.",{"type":52,"tag":239,"props":1570,"children":1571},{},[1572],{"type":52,"tag":107,"props":1573,"children":1574},{},[1575],{"type":58,"value":1576},"What are our top 10 products by revenue this month, and what's their cancellation rate?",{"type":52,"tag":239,"props":1578,"children":1579},{},[1580],{"type":52,"tag":107,"props":1581,"children":1582},{},[1583,1588,1590,1596,1598,1604,1606,1612],{"type":52,"tag":218,"props":1584,"children":1585},{},[1586],{"type":58,"value":1587},"Note:",{"type":58,"value":1589}," The ",{"type":52,"tag":71,"props":1591,"children":1593},{"className":1592},[],[1594],{"type":58,"value":1595},"rpt_product_performance",{"type":58,"value":1597}," report currently shows catalog data from ",{"type":52,"tag":71,"props":1599,"children":1601},{"className":1600},[],[1602],{"type":58,"value":1603},"stg_products",{"type":58,"value":1605}," only. To get revenue-per-product metrics, expand the pipeline with a ",{"type":52,"tag":71,"props":1607,"children":1609},{"className":1608},[],[1610],{"type":58,"value":1611},"staging.stg_order_line_items",{"type":58,"value":1613}," asset that flattens Shopify's nested line item JSON, then ask Claude Code to rebuild this report with order-level data.",{"type":52,"tag":239,"props":1615,"children":1616},{},[1617],{"type":52,"tag":107,"props":1618,"children":1619},{},[1620],{"type":58,"value":1621},"What's our conversion rate trend over the past 3 months?",{"type":52,"tag":107,"props":1623,"children":1624},{},[1625,1627,1632],{"type":58,"value":1626},"Claude Code uses the Bruin MCP to query your warehouse directly, reading the ",{"type":52,"tag":71,"props":1628,"children":1630},{"className":1629},[],[1631],{"type":58,"value":87},{"type":58,"value":1633}," for context on your domain terms and data quirks before writing SQL.",{"type":52,"tag":131,"props":1635,"children":1637},{"id":1636},"_4-iterate-on-agentsmd",[1638],{"type":58,"value":1639},"4) Iterate on AGENTS.md",{"type":52,"tag":107,"props":1641,"children":1642},{},[1643,1645,1650],{"type":58,"value":1644},"When the agent gets something wrong - wrong column, wrong metric definition, expensive query - add a correction to ",{"type":52,"tag":71,"props":1646,"children":1648},{"className":1647},[],[1649],{"type":58,"value":87},{"type":58,"value":1651},". For example:",{"type":52,"tag":150,"props":1653,"children":1655},{"className":264,"code":1654,"language":266,"meta":7,"style":7},"## Known issues\n- The `stg_orders.order_total` includes tax. For product-only revenue, use `subtotal` instead.\n- When computing repeat purchase rate, count by `customer_email`, not by `order_id`.\n",[1656],{"type":52,"tag":71,"props":1657,"children":1658},{"__ignoreMap":7},[1659,1667,1675],{"type":52,"tag":160,"props":1660,"children":1661},{"class":162,"line":163},[1662],{"type":52,"tag":160,"props":1663,"children":1664},{},[1665],{"type":58,"value":1666},"## Known issues\n",{"type":52,"tag":160,"props":1668,"children":1669},{"class":162,"line":281},[1670],{"type":52,"tag":160,"props":1671,"children":1672},{},[1673],{"type":58,"value":1674},"- The `stg_orders.order_total` includes tax. For product-only revenue, use `subtotal` instead.\n",{"type":52,"tag":160,"props":1676,"children":1677},{"class":162,"line":290},[1678],{"type":52,"tag":160,"props":1679,"children":1680},{},[1681],{"type":58,"value":1682},"- When computing repeat purchase rate, count by `customer_email`, not by `order_id`.\n",{"type":52,"tag":107,"props":1684,"children":1685},{},[1686,1688,1693],{"type":58,"value":1687},"The more you use it, the better your ",{"type":52,"tag":71,"props":1689,"children":1691},{"className":1690},[],[1692],{"type":58,"value":87},{"type":58,"value":1694}," gets. When the agent makes a mistake, that's a sign something is missing from the context file.",{"type":52,"tag":131,"props":1696,"children":1698},{"id":1697},"_5-deploy-to-bruin-cloud",[1699],{"type":58,"value":1700},"5) Deploy to Bruin Cloud",{"type":52,"tag":107,"props":1702,"children":1703},{},[1704],{"type":58,"value":1705},"Now let's make this available to the whole team - in Slack or Teams, not just locally.",{"type":52,"tag":107,"props":1707,"children":1708},{},[1709],{"type":52,"tag":218,"props":1710,"children":1711},{},[1712],{"type":58,"value":1713},"Push your project to GitHub:",{"type":52,"tag":239,"props":1715,"children":1716},{},[1717],{"type":52,"tag":107,"props":1718,"children":1719},{},[1720,1724,1726,1731,1733,1739,1741,1747],{"type":52,"tag":218,"props":1721,"children":1722},{},[1723],{"type":58,"value":1587},{"type":58,"value":1725}," ",{"type":52,"tag":71,"props":1727,"children":1729},{"className":1728},[],[1730],{"type":58,"value":230},{"type":58,"value":1732}," contains your connection credentials. ",{"type":52,"tag":71,"props":1734,"children":1736},{"className":1735},[],[1737],{"type":58,"value":1738},"bruin init",{"type":58,"value":1740}," adds it to ",{"type":52,"tag":71,"props":1742,"children":1744},{"className":1743},[],[1745],{"type":58,"value":1746},".gitignore",{"type":58,"value":1748}," by default - verify it's there before pushing.",{"type":52,"tag":150,"props":1750,"children":1752},{"className":152,"code":1751,"language":154,"meta":7,"style":7},"git add -A -- ':!.bruin.yml'\ngit commit -m \"ecommerce analytics pipeline\"\ngit remote add origin https:\u002F\u002Fgithub.com\u002Fyour-org\u002Fecommerce-analytics.git\ngit push -u origin main\n",[1753],{"type":52,"tag":71,"props":1754,"children":1755},{"__ignoreMap":7},[1756,1785,1807,1833],{"type":52,"tag":160,"props":1757,"children":1758},{"class":162,"line":163},[1759,1764,1769,1775,1780],{"type":52,"tag":160,"props":1760,"children":1761},{"style":167},[1762],{"type":58,"value":1763},"git",{"type":52,"tag":160,"props":1765,"children":1766},{"style":173},[1767],{"type":58,"value":1768}," add",{"type":52,"tag":160,"props":1770,"children":1772},{"style":1771},"--shiki-default:#79B8FF",[1773],{"type":58,"value":1774}," -A",{"type":52,"tag":160,"props":1776,"children":1777},{"style":1771},[1778],{"type":58,"value":1779}," --",{"type":52,"tag":160,"props":1781,"children":1782},{"style":173},[1783],{"type":58,"value":1784}," ':!.bruin.yml'\n",{"type":52,"tag":160,"props":1786,"children":1787},{"class":162,"line":281},[1788,1792,1797,1802],{"type":52,"tag":160,"props":1789,"children":1790},{"style":167},[1791],{"type":58,"value":1763},{"type":52,"tag":160,"props":1793,"children":1794},{"style":173},[1795],{"type":58,"value":1796}," commit",{"type":52,"tag":160,"props":1798,"children":1799},{"style":1771},[1800],{"type":58,"value":1801}," -m",{"type":52,"tag":160,"props":1803,"children":1804},{"style":173},[1805],{"type":58,"value":1806}," \"ecommerce analytics pipeline\"\n",{"type":52,"tag":160,"props":1808,"children":1809},{"class":162,"line":290},[1810,1814,1819,1823,1828],{"type":52,"tag":160,"props":1811,"children":1812},{"style":167},[1813],{"type":58,"value":1763},{"type":52,"tag":160,"props":1815,"children":1816},{"style":173},[1817],{"type":58,"value":1818}," remote",{"type":52,"tag":160,"props":1820,"children":1821},{"style":173},[1822],{"type":58,"value":1768},{"type":52,"tag":160,"props":1824,"children":1825},{"style":173},[1826],{"type":58,"value":1827}," origin",{"type":52,"tag":160,"props":1829,"children":1830},{"style":173},[1831],{"type":58,"value":1832}," https:\u002F\u002Fgithub.com\u002Fyour-org\u002Fecommerce-analytics.git\n",{"type":52,"tag":160,"props":1834,"children":1835},{"class":162,"line":299},[1836,1840,1845,1850,1854],{"type":52,"tag":160,"props":1837,"children":1838},{"style":167},[1839],{"type":58,"value":1763},{"type":52,"tag":160,"props":1841,"children":1842},{"style":173},[1843],{"type":58,"value":1844}," push",{"type":52,"tag":160,"props":1846,"children":1847},{"style":1771},[1848],{"type":58,"value":1849}," -u",{"type":52,"tag":160,"props":1851,"children":1852},{"style":173},[1853],{"type":58,"value":1827},{"type":52,"tag":160,"props":1855,"children":1856},{"style":173},[1857],{"type":58,"value":1858}," main\n",{"type":52,"tag":107,"props":1860,"children":1861},{},[1862],{"type":52,"tag":218,"props":1863,"children":1864},{},[1865],{"type":58,"value":1866},"Add the repo to Bruin Cloud:",{"type":52,"tag":61,"props":1868,"children":1869},{},[1870,1890,1895,1908,1913],{"type":52,"tag":65,"props":1871,"children":1872},{},[1873,1875,1883,1885],{"type":58,"value":1874},"Go to ",{"type":52,"tag":1876,"props":1877,"children":1881},"a",{"href":1878,"rel":1879},"https:\u002F\u002Fcloud.getbruin.com",[1880],"nofollow",[1882],{"type":58,"value":17},{"type":58,"value":1884},", open ",{"type":52,"tag":218,"props":1886,"children":1887},{},[1888],{"type":58,"value":1889},"Team Settings > Projects",{"type":52,"tag":65,"props":1891,"children":1892},{},[1893],{"type":58,"value":1894},"Add your GitHub repository",{"type":52,"tag":65,"props":1896,"children":1897},{},[1898,1900,1906],{"type":58,"value":1899},"Enable the ",{"type":52,"tag":71,"props":1901,"children":1903},{"className":1902},[],[1904],{"type":58,"value":1905},"ecommerce",{"type":58,"value":1907}," pipeline",{"type":52,"tag":65,"props":1909,"children":1910},{},[1911],{"type":58,"value":1912},"Configure your connections (warehouse, Shopify, Stripe, etc.) in the Cloud environment",{"type":52,"tag":65,"props":1914,"children":1915},{},[1916],{"type":58,"value":1917},"Run the pipeline to confirm it works",{"type":52,"tag":107,"props":1919,"children":1920},{},[1921],{"type":52,"tag":218,"props":1922,"children":1923},{},[1924],{"type":58,"value":1925},"Create the Slack\u002FTeams AI agent:",{"type":52,"tag":61,"props":1927,"children":1928},{},[1929,1938,1949,1954,1959],{"type":52,"tag":65,"props":1930,"children":1931},{},[1932,1933],{"type":58,"value":1874},{"type":52,"tag":218,"props":1934,"children":1935},{},[1936],{"type":58,"value":1937},"Agents > Create Agent",{"type":52,"tag":65,"props":1939,"children":1940},{},[1941,1943,1948],{"type":58,"value":1942},"Select your repo and the ",{"type":52,"tag":71,"props":1944,"children":1946},{"className":1945},[],[1947],{"type":58,"value":1905},{"type":58,"value":1907},{"type":52,"tag":65,"props":1950,"children":1951},{},[1952],{"type":58,"value":1953},"Add your Slack (or Teams) credentials",{"type":52,"tag":65,"props":1955,"children":1956},{},[1957],{"type":58,"value":1958},"Name the agent, e.g. \"Ecommerce Analyst\"",{"type":52,"tag":65,"props":1960,"children":1961},{},[1962],{"type":58,"value":1963},"Select the target channel where your team asks data questions",{"type":52,"tag":107,"props":1965,"children":1966},{},[1967],{"type":52,"tag":218,"props":1968,"children":1969},{},[1970],{"type":58,"value":1971},"Test in Slack:",{"type":52,"tag":107,"props":1973,"children":1974},{},[1975],{"type":58,"value":1976},"Mention the agent in your channel:",{"type":52,"tag":239,"props":1978,"children":1979},{},[1980],{"type":52,"tag":107,"props":1981,"children":1982},{},[1983],{"type":58,"value":1984},"@Ecommerce Analyst What was our revenue yesterday?",{"type":52,"tag":107,"props":1986,"children":1987},{},[1988,1990,1995],{"type":58,"value":1989},"The agent queries your warehouse using the same ",{"type":52,"tag":71,"props":1991,"children":1993},{"className":1992},[],[1994],{"type":58,"value":87},{"type":58,"value":1996}," context and responds with an answer. Anyone on the team can ask questions without writing SQL.",{"type":52,"tag":53,"props":1998,"children":2000},{"id":1999},"what-just-happened",[2001],{"type":58,"value":2002},"What just happened",{"type":52,"tag":2004,"props":2005,"children":2006},"ul",{},[2007,2020,2033,2043],{"type":52,"tag":65,"props":2008,"children":2009},{},[2010,2018],{"type":52,"tag":218,"props":2011,"children":2012},{},[2013],{"type":52,"tag":71,"props":2014,"children":2016},{"className":2015},[],[2017],{"type":58,"value":76},{"type":58,"value":2019}," auto-generated metadata for all your pipeline assets",{"type":52,"tag":65,"props":2021,"children":2022},{},[2023,2031],{"type":52,"tag":218,"props":2024,"children":2025},{},[2026],{"type":52,"tag":71,"props":2027,"children":2029},{"className":2028},[],[2030],{"type":58,"value":87},{"type":58,"value":2032}," gives the AI analyst ecommerce-specific domain knowledge",{"type":52,"tag":65,"props":2034,"children":2035},{},[2036,2041],{"type":52,"tag":218,"props":2037,"children":2038},{},[2039],{"type":58,"value":2040},"Local AI analyst",{"type":58,"value":2042}," with Claude Code answering business questions through Bruin MCP",{"type":52,"tag":65,"props":2044,"children":2045},{},[2046,2051],{"type":52,"tag":218,"props":2047,"children":2048},{},[2049],{"type":58,"value":2050},"Cloud AI analyst",{"type":58,"value":2052}," runs on Bruin Cloud and responds to questions in Slack or Teams",{"type":52,"tag":107,"props":2054,"children":2055},{},[2056],{"type":58,"value":2057},"Next up, you'll build interactive dashboards using the same AI agent in Bruin Cloud.",{"type":52,"tag":2059,"props":2060,"children":2061},"style",{},[2062],{"type":58,"value":2063},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":281,"depth":281,"links":2065},[2066,2067,2068,2075],{"id":55,"depth":281,"text":59},{"id":102,"depth":281,"text":105},{"id":126,"depth":281,"text":129,"children":2069},[2070,2071,2072,2073,2074],{"id":133,"depth":290,"text":136},{"id":202,"depth":290,"text":205},{"id":1529,"depth":290,"text":1532},{"id":1636,"depth":290,"text":1639},{"id":1697,"depth":290,"text":1700},{"id":1999,"depth":281,"text":2002},"content:tutorials:ecommerce-pipeline:ai-analyst.md","content","tutorials\u002Fecommerce-pipeline\u002Fai-analyst.md","tutorials\u002Fecommerce-pipeline\u002Fai-analyst","md",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"readingTime":11,"category":12,"tags":2082,"variants":2083,"difficulty":25,"module":5,"subSteps":26,"step":27,"journeys":2084,"learnMore":2085,"author":2090,"body":2091,"_type":266,"_id":2076,"_source":2077,"_file":2078,"_stem":2079,"_extension":2080},[14,15,16,17,18,19,20,21,22,23],[19,20,21],[29,30],[2086,2087,2088,2089],{"label":33,"url":34},{"label":36,"url":37},{"label":39,"url":40},{"label":42,"url":43},{"name":45,"role":46,"image":47},{"type":49,"children":2092,"toc":3848},[2093,2097,2127,2131,2135,2145,2149,2153,2163,2188,2198,2202,2223,2227,2234,2238,3402,3406,3416,3423,3430,3437,3444,3473,3480,3490,3494,3504,3531,3541,3545,3549,3556,3585,3679,3686,3725,3732,3765,3772,3776,3783,3793,3797,3840,3844],{"type":52,"tag":53,"props":2094,"children":2095},{"id":55},[2096],{"type":58,"value":59},{"type":52,"tag":61,"props":2098,"children":2099},{},[2100,2109,2119,2123],{"type":52,"tag":65,"props":2101,"children":2102},{},[2103,2104],{"type":58,"value":69},{"type":52,"tag":71,"props":2105,"children":2107},{"className":2106},[],[2108],{"type":58,"value":76},{"type":52,"tag":65,"props":2110,"children":2111},{},[2112,2113,2118],{"type":58,"value":81},{"type":52,"tag":71,"props":2114,"children":2116},{"className":2115},[],[2117],{"type":58,"value":87},{"type":58,"value":89},{"type":52,"tag":65,"props":2120,"children":2121},{},[2122],{"type":58,"value":94},{"type":52,"tag":65,"props":2124,"children":2125},{},[2126],{"type":58,"value":99},{"type":52,"tag":53,"props":2128,"children":2129},{"id":102},[2130],{"type":58,"value":105},{"type":52,"tag":107,"props":2132,"children":2133},{},[2134],{"type":58,"value":111},{"type":52,"tag":107,"props":2136,"children":2137},{},[2138,2139,2144],{"type":58,"value":116},{"type":52,"tag":71,"props":2140,"children":2142},{"className":2141},[],[2143],{"type":58,"value":87},{"type":58,"value":123},{"type":52,"tag":53,"props":2146,"children":2147},{"id":126},[2148],{"type":58,"value":129},{"type":52,"tag":131,"props":2150,"children":2151},{"id":133},[2152],{"type":58,"value":136},{"type":52,"tag":107,"props":2154,"children":2155},{},[2156,2157,2162],{"type":58,"value":141},{"type":52,"tag":71,"props":2158,"children":2160},{"className":2159},[],[2161],{"type":58,"value":76},{"type":58,"value":148},{"type":52,"tag":150,"props":2164,"children":2165},{"className":152,"code":153,"language":154,"meta":7,"style":7},[2166],{"type":52,"tag":71,"props":2167,"children":2168},{"__ignoreMap":7},[2169],{"type":52,"tag":160,"props":2170,"children":2171},{"class":162,"line":163},[2172,2176,2180,2184],{"type":52,"tag":160,"props":2173,"children":2174},{"style":167},[2175],{"type":58,"value":170},{"type":52,"tag":160,"props":2177,"children":2178},{"style":173},[2179],{"type":58,"value":176},{"type":52,"tag":160,"props":2181,"children":2182},{"style":173},[2183],{"type":58,"value":181},{"type":52,"tag":160,"props":2185,"children":2186},{"style":173},[2187],{"type":58,"value":186},{"type":52,"tag":107,"props":2189,"children":2190},{},[2191,2192,2197],{"type":58,"value":191},{"type":52,"tag":71,"props":2193,"children":2195},{"className":2194},[],[2196],{"type":58,"value":197},{"type":58,"value":199},{"type":52,"tag":131,"props":2199,"children":2200},{"id":202},[2201],{"type":58,"value":205},{"type":52,"tag":107,"props":2203,"children":2204},{},[2205,2206,2211,2212,2216,2217,2222],{"type":58,"value":81},{"type":52,"tag":71,"props":2207,"children":2209},{"className":2208},[],[2210],{"type":58,"value":87},{"type":58,"value":216},{"type":52,"tag":218,"props":2213,"children":2214},{},[2215],{"type":58,"value":222},{"type":58,"value":224},{"type":52,"tag":71,"props":2218,"children":2220},{"className":2219},[],[2221],{"type":58,"value":230},{"type":58,"value":232},{"type":52,"tag":107,"props":2224,"children":2225},{},[2226],{"type":58,"value":237},{"type":52,"tag":239,"props":2228,"children":2229},{},[2230],{"type":52,"tag":107,"props":2231,"children":2232},{},[2233],{"type":58,"value":246},{"type":52,"tag":107,"props":2235,"children":2236},{},[2237],{"type":58,"value":251},{"type":52,"tag":253,"props":2239,"children":2240},{":variants":255,"group":256},[2241,2628,3015],{"type":52,"tag":259,"props":2242,"children":2243},{"v-slot:clickhouse":7},[2244],{"type":52,"tag":150,"props":2245,"children":2246},{"className":264,"code":265,"language":266,"meta":7,"style":7},[2247],{"type":52,"tag":71,"props":2248,"children":2249},{"__ignoreMap":7},[2250,2257,2264,2271,2278,2285,2292,2299,2306,2313,2320,2327,2334,2341,2348,2355,2362,2369,2376,2383,2390,2397,2404,2411,2418,2425,2432,2439,2446,2453,2460,2467,2474,2481,2488,2495,2502,2509,2516,2523,2530,2537,2544,2551,2558,2565,2572,2579,2586,2593,2600,2607,2614,2621],{"type":52,"tag":160,"props":2251,"children":2252},{"class":162,"line":163},[2253],{"type":52,"tag":160,"props":2254,"children":2255},{},[2256],{"type":58,"value":278},{"type":52,"tag":160,"props":2258,"children":2259},{"class":162,"line":281},[2260],{"type":52,"tag":160,"props":2261,"children":2262},{"emptyLinePlaceholder":26},[2263],{"type":58,"value":287},{"type":52,"tag":160,"props":2265,"children":2266},{"class":162,"line":290},[2267],{"type":52,"tag":160,"props":2268,"children":2269},{},[2270],{"type":58,"value":296},{"type":52,"tag":160,"props":2272,"children":2273},{"class":162,"line":299},[2274],{"type":52,"tag":160,"props":2275,"children":2276},{},[2277],{"type":58,"value":305},{"type":52,"tag":160,"props":2279,"children":2280},{"class":162,"line":27},[2281],{"type":52,"tag":160,"props":2282,"children":2283},{},[2284],{"type":58,"value":313},{"type":52,"tag":160,"props":2286,"children":2287},{"class":162,"line":316},[2288],{"type":52,"tag":160,"props":2289,"children":2290},{},[2291],{"type":58,"value":322},{"type":52,"tag":160,"props":2293,"children":2294},{"class":162,"line":325},[2295],{"type":52,"tag":160,"props":2296,"children":2297},{},[2298],{"type":58,"value":331},{"type":52,"tag":160,"props":2300,"children":2301},{"class":162,"line":334},[2302],{"type":52,"tag":160,"props":2303,"children":2304},{},[2305],{"type":58,"value":340},{"type":52,"tag":160,"props":2307,"children":2308},{"class":162,"line":343},[2309],{"type":52,"tag":160,"props":2310,"children":2311},{"emptyLinePlaceholder":26},[2312],{"type":58,"value":287},{"type":52,"tag":160,"props":2314,"children":2315},{"class":162,"line":11},[2316],{"type":52,"tag":160,"props":2317,"children":2318},{},[2319],{"type":58,"value":356},{"type":52,"tag":160,"props":2321,"children":2322},{"class":162,"line":359},[2323],{"type":52,"tag":160,"props":2324,"children":2325},{},[2326],{"type":58,"value":365},{"type":52,"tag":160,"props":2328,"children":2329},{"class":162,"line":368},[2330],{"type":52,"tag":160,"props":2331,"children":2332},{},[2333],{"type":58,"value":374},{"type":52,"tag":160,"props":2335,"children":2336},{"class":162,"line":377},[2337],{"type":52,"tag":160,"props":2338,"children":2339},{},[2340],{"type":58,"value":383},{"type":52,"tag":160,"props":2342,"children":2343},{"class":162,"line":386},[2344],{"type":52,"tag":160,"props":2345,"children":2346},{},[2347],{"type":58,"value":392},{"type":52,"tag":160,"props":2349,"children":2350},{"class":162,"line":395},[2351],{"type":52,"tag":160,"props":2352,"children":2353},{},[2354],{"type":58,"value":401},{"type":52,"tag":160,"props":2356,"children":2357},{"class":162,"line":404},[2358],{"type":52,"tag":160,"props":2359,"children":2360},{},[2361],{"type":58,"value":410},{"type":52,"tag":160,"props":2363,"children":2364},{"class":162,"line":413},[2365],{"type":52,"tag":160,"props":2366,"children":2367},{},[2368],{"type":58,"value":419},{"type":52,"tag":160,"props":2370,"children":2371},{"class":162,"line":422},[2372],{"type":52,"tag":160,"props":2373,"children":2374},{"emptyLinePlaceholder":26},[2375],{"type":58,"value":287},{"type":52,"tag":160,"props":2377,"children":2378},{"class":162,"line":430},[2379],{"type":52,"tag":160,"props":2380,"children":2381},{},[2382],{"type":58,"value":436},{"type":52,"tag":160,"props":2384,"children":2385},{"class":162,"line":439},[2386],{"type":52,"tag":160,"props":2387,"children":2388},{},[2389],{"type":58,"value":445},{"type":52,"tag":160,"props":2391,"children":2392},{"class":162,"line":448},[2393],{"type":52,"tag":160,"props":2394,"children":2395},{},[2396],{"type":58,"value":454},{"type":52,"tag":160,"props":2398,"children":2399},{"class":162,"line":457},[2400],{"type":52,"tag":160,"props":2401,"children":2402},{},[2403],{"type":58,"value":463},{"type":52,"tag":160,"props":2405,"children":2406},{"class":162,"line":466},[2407],{"type":52,"tag":160,"props":2408,"children":2409},{"emptyLinePlaceholder":26},[2410],{"type":58,"value":287},{"type":52,"tag":160,"props":2412,"children":2413},{"class":162,"line":474},[2414],{"type":52,"tag":160,"props":2415,"children":2416},{},[2417],{"type":58,"value":480},{"type":52,"tag":160,"props":2419,"children":2420},{"class":162,"line":483},[2421],{"type":52,"tag":160,"props":2422,"children":2423},{},[2424],{"type":58,"value":489},{"type":52,"tag":160,"props":2426,"children":2427},{"class":162,"line":492},[2428],{"type":52,"tag":160,"props":2429,"children":2430},{},[2431],{"type":58,"value":498},{"type":52,"tag":160,"props":2433,"children":2434},{"class":162,"line":501},[2435],{"type":52,"tag":160,"props":2436,"children":2437},{},[2438],{"type":58,"value":507},{"type":52,"tag":160,"props":2440,"children":2441},{"class":162,"line":510},[2442],{"type":52,"tag":160,"props":2443,"children":2444},{},[2445],{"type":58,"value":516},{"type":52,"tag":160,"props":2447,"children":2448},{"class":162,"line":519},[2449],{"type":52,"tag":160,"props":2450,"children":2451},{},[2452],{"type":58,"value":525},{"type":52,"tag":160,"props":2454,"children":2455},{"class":162,"line":528},[2456],{"type":52,"tag":160,"props":2457,"children":2458},{},[2459],{"type":58,"value":534},{"type":52,"tag":160,"props":2461,"children":2462},{"class":162,"line":537},[2463],{"type":52,"tag":160,"props":2464,"children":2465},{},[2466],{"type":58,"value":543},{"type":52,"tag":160,"props":2468,"children":2469},{"class":162,"line":546},[2470],{"type":52,"tag":160,"props":2471,"children":2472},{},[2473],{"type":58,"value":552},{"type":52,"tag":160,"props":2475,"children":2476},{"class":162,"line":555},[2477],{"type":52,"tag":160,"props":2478,"children":2479},{},[2480],{"type":58,"value":561},{"type":52,"tag":160,"props":2482,"children":2483},{"class":162,"line":564},[2484],{"type":52,"tag":160,"props":2485,"children":2486},{},[2487],{"type":58,"value":570},{"type":52,"tag":160,"props":2489,"children":2490},{"class":162,"line":573},[2491],{"type":52,"tag":160,"props":2492,"children":2493},{},[2494],{"type":58,"value":579},{"type":52,"tag":160,"props":2496,"children":2497},{"class":162,"line":582},[2498],{"type":52,"tag":160,"props":2499,"children":2500},{},[2501],{"type":58,"value":588},{"type":52,"tag":160,"props":2503,"children":2504},{"class":162,"line":591},[2505],{"type":52,"tag":160,"props":2506,"children":2507},{"emptyLinePlaceholder":26},[2508],{"type":58,"value":287},{"type":52,"tag":160,"props":2510,"children":2511},{"class":162,"line":599},[2512],{"type":52,"tag":160,"props":2513,"children":2514},{},[2515],{"type":58,"value":605},{"type":52,"tag":160,"props":2517,"children":2518},{"class":162,"line":608},[2519],{"type":52,"tag":160,"props":2520,"children":2521},{},[2522],{"type":58,"value":614},{"type":52,"tag":160,"props":2524,"children":2525},{"class":162,"line":617},[2526],{"type":52,"tag":160,"props":2527,"children":2528},{},[2529],{"type":58,"value":623},{"type":52,"tag":160,"props":2531,"children":2532},{"class":162,"line":626},[2533],{"type":52,"tag":160,"props":2534,"children":2535},{},[2536],{"type":58,"value":632},{"type":52,"tag":160,"props":2538,"children":2539},{"class":162,"line":635},[2540],{"type":52,"tag":160,"props":2541,"children":2542},{},[2543],{"type":58,"value":641},{"type":52,"tag":160,"props":2545,"children":2546},{"class":162,"line":644},[2547],{"type":52,"tag":160,"props":2548,"children":2549},{},[2550],{"type":58,"value":650},{"type":52,"tag":160,"props":2552,"children":2553},{"class":162,"line":653},[2554],{"type":52,"tag":160,"props":2555,"children":2556},{},[2557],{"type":58,"value":659},{"type":52,"tag":160,"props":2559,"children":2560},{"class":162,"line":662},[2561],{"type":52,"tag":160,"props":2562,"children":2563},{},[2564],{"type":58,"value":668},{"type":52,"tag":160,"props":2566,"children":2567},{"class":162,"line":671},[2568],{"type":52,"tag":160,"props":2569,"children":2570},{},[2571],{"type":58,"value":677},{"type":52,"tag":160,"props":2573,"children":2574},{"class":162,"line":680},[2575],{"type":52,"tag":160,"props":2576,"children":2577},{"emptyLinePlaceholder":26},[2578],{"type":58,"value":287},{"type":52,"tag":160,"props":2580,"children":2581},{"class":162,"line":688},[2582],{"type":52,"tag":160,"props":2583,"children":2584},{},[2585],{"type":58,"value":694},{"type":52,"tag":160,"props":2587,"children":2588},{"class":162,"line":697},[2589],{"type":52,"tag":160,"props":2590,"children":2591},{},[2592],{"type":58,"value":703},{"type":52,"tag":160,"props":2594,"children":2595},{"class":162,"line":706},[2596],{"type":52,"tag":160,"props":2597,"children":2598},{},[2599],{"type":58,"value":712},{"type":52,"tag":160,"props":2601,"children":2602},{"class":162,"line":715},[2603],{"type":52,"tag":160,"props":2604,"children":2605},{},[2606],{"type":58,"value":721},{"type":52,"tag":160,"props":2608,"children":2609},{"class":162,"line":724},[2610],{"type":52,"tag":160,"props":2611,"children":2612},{},[2613],{"type":58,"value":730},{"type":52,"tag":160,"props":2615,"children":2616},{"class":162,"line":733},[2617],{"type":52,"tag":160,"props":2618,"children":2619},{},[2620],{"type":58,"value":739},{"type":52,"tag":160,"props":2622,"children":2623},{"class":162,"line":742},[2624],{"type":52,"tag":160,"props":2625,"children":2626},{},[2627],{"type":58,"value":748},{"type":52,"tag":259,"props":2629,"children":2630},{"v-slot:bigquery":7},[2631],{"type":52,"tag":150,"props":2632,"children":2633},{"className":264,"code":754,"language":266,"meta":7,"style":7},[2634],{"type":52,"tag":71,"props":2635,"children":2636},{"__ignoreMap":7},[2637,2644,2651,2658,2665,2672,2679,2686,2693,2700,2707,2714,2721,2728,2735,2742,2749,2756,2763,2770,2777,2784,2791,2798,2805,2812,2819,2826,2833,2840,2847,2854,2861,2868,2875,2882,2889,2896,2903,2910,2917,2924,2931,2938,2945,2952,2959,2966,2973,2980,2987,2994,3001,3008],{"type":52,"tag":160,"props":2638,"children":2639},{"class":162,"line":163},[2640],{"type":52,"tag":160,"props":2641,"children":2642},{},[2643],{"type":58,"value":278},{"type":52,"tag":160,"props":2645,"children":2646},{"class":162,"line":281},[2647],{"type":52,"tag":160,"props":2648,"children":2649},{"emptyLinePlaceholder":26},[2650],{"type":58,"value":287},{"type":52,"tag":160,"props":2652,"children":2653},{"class":162,"line":290},[2654],{"type":52,"tag":160,"props":2655,"children":2656},{},[2657],{"type":58,"value":296},{"type":52,"tag":160,"props":2659,"children":2660},{"class":162,"line":299},[2661],{"type":52,"tag":160,"props":2662,"children":2663},{},[2664],{"type":58,"value":787},{"type":52,"tag":160,"props":2666,"children":2667},{"class":162,"line":27},[2668],{"type":52,"tag":160,"props":2669,"children":2670},{},[2671],{"type":58,"value":313},{"type":52,"tag":160,"props":2673,"children":2674},{"class":162,"line":316},[2675],{"type":52,"tag":160,"props":2676,"children":2677},{},[2678],{"type":58,"value":322},{"type":52,"tag":160,"props":2680,"children":2681},{"class":162,"line":325},[2682],{"type":52,"tag":160,"props":2683,"children":2684},{},[2685],{"type":58,"value":331},{"type":52,"tag":160,"props":2687,"children":2688},{"class":162,"line":334},[2689],{"type":52,"tag":160,"props":2690,"children":2691},{},[2692],{"type":58,"value":340},{"type":52,"tag":160,"props":2694,"children":2695},{"class":162,"line":343},[2696],{"type":52,"tag":160,"props":2697,"children":2698},{"emptyLinePlaceholder":26},[2699],{"type":58,"value":287},{"type":52,"tag":160,"props":2701,"children":2702},{"class":162,"line":11},[2703],{"type":52,"tag":160,"props":2704,"children":2705},{},[2706],{"type":58,"value":356},{"type":52,"tag":160,"props":2708,"children":2709},{"class":162,"line":359},[2710],{"type":52,"tag":160,"props":2711,"children":2712},{},[2713],{"type":58,"value":365},{"type":52,"tag":160,"props":2715,"children":2716},{"class":162,"line":368},[2717],{"type":52,"tag":160,"props":2718,"children":2719},{},[2720],{"type":58,"value":374},{"type":52,"tag":160,"props":2722,"children":2723},{"class":162,"line":377},[2724],{"type":52,"tag":160,"props":2725,"children":2726},{},[2727],{"type":58,"value":383},{"type":52,"tag":160,"props":2729,"children":2730},{"class":162,"line":386},[2731],{"type":52,"tag":160,"props":2732,"children":2733},{},[2734],{"type":58,"value":392},{"type":52,"tag":160,"props":2736,"children":2737},{"class":162,"line":395},[2738],{"type":52,"tag":160,"props":2739,"children":2740},{},[2741],{"type":58,"value":401},{"type":52,"tag":160,"props":2743,"children":2744},{"class":162,"line":404},[2745],{"type":52,"tag":160,"props":2746,"children":2747},{},[2748],{"type":58,"value":410},{"type":52,"tag":160,"props":2750,"children":2751},{"class":162,"line":413},[2752],{"type":52,"tag":160,"props":2753,"children":2754},{},[2755],{"type":58,"value":419},{"type":52,"tag":160,"props":2757,"children":2758},{"class":162,"line":422},[2759],{"type":52,"tag":160,"props":2760,"children":2761},{"emptyLinePlaceholder":26},[2762],{"type":58,"value":287},{"type":52,"tag":160,"props":2764,"children":2765},{"class":162,"line":430},[2766],{"type":52,"tag":160,"props":2767,"children":2768},{},[2769],{"type":58,"value":436},{"type":52,"tag":160,"props":2771,"children":2772},{"class":162,"line":439},[2773],{"type":52,"tag":160,"props":2774,"children":2775},{},[2776],{"type":58,"value":445},{"type":52,"tag":160,"props":2778,"children":2779},{"class":162,"line":448},[2780],{"type":52,"tag":160,"props":2781,"children":2782},{},[2783],{"type":58,"value":454},{"type":52,"tag":160,"props":2785,"children":2786},{"class":162,"line":457},[2787],{"type":52,"tag":160,"props":2788,"children":2789},{},[2790],{"type":58,"value":463},{"type":52,"tag":160,"props":2792,"children":2793},{"class":162,"line":466},[2794],{"type":52,"tag":160,"props":2795,"children":2796},{"emptyLinePlaceholder":26},[2797],{"type":58,"value":287},{"type":52,"tag":160,"props":2799,"children":2800},{"class":162,"line":474},[2801],{"type":52,"tag":160,"props":2802,"children":2803},{},[2804],{"type":58,"value":480},{"type":52,"tag":160,"props":2806,"children":2807},{"class":162,"line":483},[2808],{"type":52,"tag":160,"props":2809,"children":2810},{},[2811],{"type":58,"value":489},{"type":52,"tag":160,"props":2813,"children":2814},{"class":162,"line":492},[2815],{"type":52,"tag":160,"props":2816,"children":2817},{},[2818],{"type":58,"value":498},{"type":52,"tag":160,"props":2820,"children":2821},{"class":162,"line":501},[2822],{"type":52,"tag":160,"props":2823,"children":2824},{},[2825],{"type":58,"value":507},{"type":52,"tag":160,"props":2827,"children":2828},{"class":162,"line":510},[2829],{"type":52,"tag":160,"props":2830,"children":2831},{},[2832],{"type":58,"value":516},{"type":52,"tag":160,"props":2834,"children":2835},{"class":162,"line":519},[2836],{"type":52,"tag":160,"props":2837,"children":2838},{},[2839],{"type":58,"value":525},{"type":52,"tag":160,"props":2841,"children":2842},{"class":162,"line":528},[2843],{"type":52,"tag":160,"props":2844,"children":2845},{},[2846],{"type":58,"value":534},{"type":52,"tag":160,"props":2848,"children":2849},{"class":162,"line":537},[2850],{"type":52,"tag":160,"props":2851,"children":2852},{},[2853],{"type":58,"value":543},{"type":52,"tag":160,"props":2855,"children":2856},{"class":162,"line":546},[2857],{"type":52,"tag":160,"props":2858,"children":2859},{},[2860],{"type":58,"value":552},{"type":52,"tag":160,"props":2862,"children":2863},{"class":162,"line":555},[2864],{"type":52,"tag":160,"props":2865,"children":2866},{},[2867],{"type":58,"value":561},{"type":52,"tag":160,"props":2869,"children":2870},{"class":162,"line":564},[2871],{"type":52,"tag":160,"props":2872,"children":2873},{},[2874],{"type":58,"value":570},{"type":52,"tag":160,"props":2876,"children":2877},{"class":162,"line":573},[2878],{"type":52,"tag":160,"props":2879,"children":2880},{},[2881],{"type":58,"value":579},{"type":52,"tag":160,"props":2883,"children":2884},{"class":162,"line":582},[2885],{"type":52,"tag":160,"props":2886,"children":2887},{},[2888],{"type":58,"value":588},{"type":52,"tag":160,"props":2890,"children":2891},{"class":162,"line":591},[2892],{"type":52,"tag":160,"props":2893,"children":2894},{"emptyLinePlaceholder":26},[2895],{"type":58,"value":287},{"type":52,"tag":160,"props":2897,"children":2898},{"class":162,"line":599},[2899],{"type":52,"tag":160,"props":2900,"children":2901},{},[2902],{"type":58,"value":605},{"type":52,"tag":160,"props":2904,"children":2905},{"class":162,"line":608},[2906],{"type":52,"tag":160,"props":2907,"children":2908},{},[2909],{"type":58,"value":614},{"type":52,"tag":160,"props":2911,"children":2912},{"class":162,"line":617},[2913],{"type":52,"tag":160,"props":2914,"children":2915},{},[2916],{"type":58,"value":623},{"type":52,"tag":160,"props":2918,"children":2919},{"class":162,"line":626},[2920],{"type":52,"tag":160,"props":2921,"children":2922},{},[2923],{"type":58,"value":632},{"type":52,"tag":160,"props":2925,"children":2926},{"class":162,"line":635},[2927],{"type":52,"tag":160,"props":2928,"children":2929},{},[2930],{"type":58,"value":641},{"type":52,"tag":160,"props":2932,"children":2933},{"class":162,"line":644},[2934],{"type":52,"tag":160,"props":2935,"children":2936},{},[2937],{"type":58,"value":650},{"type":52,"tag":160,"props":2939,"children":2940},{"class":162,"line":653},[2941],{"type":52,"tag":160,"props":2942,"children":2943},{},[2944],{"type":58,"value":659},{"type":52,"tag":160,"props":2946,"children":2947},{"class":162,"line":662},[2948],{"type":52,"tag":160,"props":2949,"children":2950},{},[2951],{"type":58,"value":668},{"type":52,"tag":160,"props":2953,"children":2954},{"class":162,"line":671},[2955],{"type":52,"tag":160,"props":2956,"children":2957},{},[2958],{"type":58,"value":677},{"type":52,"tag":160,"props":2960,"children":2961},{"class":162,"line":680},[2962],{"type":52,"tag":160,"props":2963,"children":2964},{"emptyLinePlaceholder":26},[2965],{"type":58,"value":287},{"type":52,"tag":160,"props":2967,"children":2968},{"class":162,"line":688},[2969],{"type":52,"tag":160,"props":2970,"children":2971},{},[2972],{"type":58,"value":694},{"type":52,"tag":160,"props":2974,"children":2975},{"class":162,"line":697},[2976],{"type":52,"tag":160,"props":2977,"children":2978},{},[2979],{"type":58,"value":703},{"type":52,"tag":160,"props":2981,"children":2982},{"class":162,"line":706},[2983],{"type":52,"tag":160,"props":2984,"children":2985},{},[2986],{"type":58,"value":712},{"type":52,"tag":160,"props":2988,"children":2989},{"class":162,"line":715},[2990],{"type":52,"tag":160,"props":2991,"children":2992},{},[2993],{"type":58,"value":721},{"type":52,"tag":160,"props":2995,"children":2996},{"class":162,"line":724},[2997],{"type":52,"tag":160,"props":2998,"children":2999},{},[3000],{"type":58,"value":730},{"type":52,"tag":160,"props":3002,"children":3003},{"class":162,"line":733},[3004],{"type":52,"tag":160,"props":3005,"children":3006},{},[3007],{"type":58,"value":739},{"type":52,"tag":160,"props":3009,"children":3010},{"class":162,"line":742},[3011],{"type":52,"tag":160,"props":3012,"children":3013},{},[3014],{"type":58,"value":748},{"type":52,"tag":259,"props":3016,"children":3017},{"v-slot:snowflake":7},[3018],{"type":52,"tag":150,"props":3019,"children":3020},{"className":264,"code":1143,"language":266,"meta":7,"style":7},[3021],{"type":52,"tag":71,"props":3022,"children":3023},{"__ignoreMap":7},[3024,3031,3038,3045,3052,3059,3066,3073,3080,3087,3094,3101,3108,3115,3122,3129,3136,3143,3150,3157,3164,3171,3178,3185,3192,3199,3206,3213,3220,3227,3234,3241,3248,3255,3262,3269,3276,3283,3290,3297,3304,3311,3318,3325,3332,3339,3346,3353,3360,3367,3374,3381,3388,3395],{"type":52,"tag":160,"props":3025,"children":3026},{"class":162,"line":163},[3027],{"type":52,"tag":160,"props":3028,"children":3029},{},[3030],{"type":58,"value":278},{"type":52,"tag":160,"props":3032,"children":3033},{"class":162,"line":281},[3034],{"type":52,"tag":160,"props":3035,"children":3036},{"emptyLinePlaceholder":26},[3037],{"type":58,"value":287},{"type":52,"tag":160,"props":3039,"children":3040},{"class":162,"line":290},[3041],{"type":52,"tag":160,"props":3042,"children":3043},{},[3044],{"type":58,"value":296},{"type":52,"tag":160,"props":3046,"children":3047},{"class":162,"line":299},[3048],{"type":52,"tag":160,"props":3049,"children":3050},{},[3051],{"type":58,"value":1176},{"type":52,"tag":160,"props":3053,"children":3054},{"class":162,"line":27},[3055],{"type":52,"tag":160,"props":3056,"children":3057},{},[3058],{"type":58,"value":313},{"type":52,"tag":160,"props":3060,"children":3061},{"class":162,"line":316},[3062],{"type":52,"tag":160,"props":3063,"children":3064},{},[3065],{"type":58,"value":322},{"type":52,"tag":160,"props":3067,"children":3068},{"class":162,"line":325},[3069],{"type":52,"tag":160,"props":3070,"children":3071},{},[3072],{"type":58,"value":331},{"type":52,"tag":160,"props":3074,"children":3075},{"class":162,"line":334},[3076],{"type":52,"tag":160,"props":3077,"children":3078},{},[3079],{"type":58,"value":340},{"type":52,"tag":160,"props":3081,"children":3082},{"class":162,"line":343},[3083],{"type":52,"tag":160,"props":3084,"children":3085},{"emptyLinePlaceholder":26},[3086],{"type":58,"value":287},{"type":52,"tag":160,"props":3088,"children":3089},{"class":162,"line":11},[3090],{"type":52,"tag":160,"props":3091,"children":3092},{},[3093],{"type":58,"value":356},{"type":52,"tag":160,"props":3095,"children":3096},{"class":162,"line":359},[3097],{"type":52,"tag":160,"props":3098,"children":3099},{},[3100],{"type":58,"value":365},{"type":52,"tag":160,"props":3102,"children":3103},{"class":162,"line":368},[3104],{"type":52,"tag":160,"props":3105,"children":3106},{},[3107],{"type":58,"value":374},{"type":52,"tag":160,"props":3109,"children":3110},{"class":162,"line":377},[3111],{"type":52,"tag":160,"props":3112,"children":3113},{},[3114],{"type":58,"value":383},{"type":52,"tag":160,"props":3116,"children":3117},{"class":162,"line":386},[3118],{"type":52,"tag":160,"props":3119,"children":3120},{},[3121],{"type":58,"value":392},{"type":52,"tag":160,"props":3123,"children":3124},{"class":162,"line":395},[3125],{"type":52,"tag":160,"props":3126,"children":3127},{},[3128],{"type":58,"value":401},{"type":52,"tag":160,"props":3130,"children":3131},{"class":162,"line":404},[3132],{"type":52,"tag":160,"props":3133,"children":3134},{},[3135],{"type":58,"value":410},{"type":52,"tag":160,"props":3137,"children":3138},{"class":162,"line":413},[3139],{"type":52,"tag":160,"props":3140,"children":3141},{},[3142],{"type":58,"value":419},{"type":52,"tag":160,"props":3144,"children":3145},{"class":162,"line":422},[3146],{"type":52,"tag":160,"props":3147,"children":3148},{"emptyLinePlaceholder":26},[3149],{"type":58,"value":287},{"type":52,"tag":160,"props":3151,"children":3152},{"class":162,"line":430},[3153],{"type":52,"tag":160,"props":3154,"children":3155},{},[3156],{"type":58,"value":436},{"type":52,"tag":160,"props":3158,"children":3159},{"class":162,"line":439},[3160],{"type":52,"tag":160,"props":3161,"children":3162},{},[3163],{"type":58,"value":445},{"type":52,"tag":160,"props":3165,"children":3166},{"class":162,"line":448},[3167],{"type":52,"tag":160,"props":3168,"children":3169},{},[3170],{"type":58,"value":454},{"type":52,"tag":160,"props":3172,"children":3173},{"class":162,"line":457},[3174],{"type":52,"tag":160,"props":3175,"children":3176},{},[3177],{"type":58,"value":463},{"type":52,"tag":160,"props":3179,"children":3180},{"class":162,"line":466},[3181],{"type":52,"tag":160,"props":3182,"children":3183},{"emptyLinePlaceholder":26},[3184],{"type":58,"value":287},{"type":52,"tag":160,"props":3186,"children":3187},{"class":162,"line":474},[3188],{"type":52,"tag":160,"props":3189,"children":3190},{},[3191],{"type":58,"value":480},{"type":52,"tag":160,"props":3193,"children":3194},{"class":162,"line":483},[3195],{"type":52,"tag":160,"props":3196,"children":3197},{},[3198],{"type":58,"value":489},{"type":52,"tag":160,"props":3200,"children":3201},{"class":162,"line":492},[3202],{"type":52,"tag":160,"props":3203,"children":3204},{},[3205],{"type":58,"value":498},{"type":52,"tag":160,"props":3207,"children":3208},{"class":162,"line":501},[3209],{"type":52,"tag":160,"props":3210,"children":3211},{},[3212],{"type":58,"value":507},{"type":52,"tag":160,"props":3214,"children":3215},{"class":162,"line":510},[3216],{"type":52,"tag":160,"props":3217,"children":3218},{},[3219],{"type":58,"value":516},{"type":52,"tag":160,"props":3221,"children":3222},{"class":162,"line":519},[3223],{"type":52,"tag":160,"props":3224,"children":3225},{},[3226],{"type":58,"value":525},{"type":52,"tag":160,"props":3228,"children":3229},{"class":162,"line":528},[3230],{"type":52,"tag":160,"props":3231,"children":3232},{},[3233],{"type":58,"value":534},{"type":52,"tag":160,"props":3235,"children":3236},{"class":162,"line":537},[3237],{"type":52,"tag":160,"props":3238,"children":3239},{},[3240],{"type":58,"value":543},{"type":52,"tag":160,"props":3242,"children":3243},{"class":162,"line":546},[3244],{"type":52,"tag":160,"props":3245,"children":3246},{},[3247],{"type":58,"value":552},{"type":52,"tag":160,"props":3249,"children":3250},{"class":162,"line":555},[3251],{"type":52,"tag":160,"props":3252,"children":3253},{},[3254],{"type":58,"value":561},{"type":52,"tag":160,"props":3256,"children":3257},{"class":162,"line":564},[3258],{"type":52,"tag":160,"props":3259,"children":3260},{},[3261],{"type":58,"value":570},{"type":52,"tag":160,"props":3263,"children":3264},{"class":162,"line":573},[3265],{"type":52,"tag":160,"props":3266,"children":3267},{},[3268],{"type":58,"value":579},{"type":52,"tag":160,"props":3270,"children":3271},{"class":162,"line":582},[3272],{"type":52,"tag":160,"props":3273,"children":3274},{},[3275],{"type":58,"value":588},{"type":52,"tag":160,"props":3277,"children":3278},{"class":162,"line":591},[3279],{"type":52,"tag":160,"props":3280,"children":3281},{"emptyLinePlaceholder":26},[3282],{"type":58,"value":287},{"type":52,"tag":160,"props":3284,"children":3285},{"class":162,"line":599},[3286],{"type":52,"tag":160,"props":3287,"children":3288},{},[3289],{"type":58,"value":605},{"type":52,"tag":160,"props":3291,"children":3292},{"class":162,"line":608},[3293],{"type":52,"tag":160,"props":3294,"children":3295},{},[3296],{"type":58,"value":614},{"type":52,"tag":160,"props":3298,"children":3299},{"class":162,"line":617},[3300],{"type":52,"tag":160,"props":3301,"children":3302},{},[3303],{"type":58,"value":623},{"type":52,"tag":160,"props":3305,"children":3306},{"class":162,"line":626},[3307],{"type":52,"tag":160,"props":3308,"children":3309},{},[3310],{"type":58,"value":632},{"type":52,"tag":160,"props":3312,"children":3313},{"class":162,"line":635},[3314],{"type":52,"tag":160,"props":3315,"children":3316},{},[3317],{"type":58,"value":641},{"type":52,"tag":160,"props":3319,"children":3320},{"class":162,"line":644},[3321],{"type":52,"tag":160,"props":3322,"children":3323},{},[3324],{"type":58,"value":650},{"type":52,"tag":160,"props":3326,"children":3327},{"class":162,"line":653},[3328],{"type":52,"tag":160,"props":3329,"children":3330},{},[3331],{"type":58,"value":659},{"type":52,"tag":160,"props":3333,"children":3334},{"class":162,"line":662},[3335],{"type":52,"tag":160,"props":3336,"children":3337},{},[3338],{"type":58,"value":668},{"type":52,"tag":160,"props":3340,"children":3341},{"class":162,"line":671},[3342],{"type":52,"tag":160,"props":3343,"children":3344},{},[3345],{"type":58,"value":677},{"type":52,"tag":160,"props":3347,"children":3348},{"class":162,"line":680},[3349],{"type":52,"tag":160,"props":3350,"children":3351},{"emptyLinePlaceholder":26},[3352],{"type":58,"value":287},{"type":52,"tag":160,"props":3354,"children":3355},{"class":162,"line":688},[3356],{"type":52,"tag":160,"props":3357,"children":3358},{},[3359],{"type":58,"value":694},{"type":52,"tag":160,"props":3361,"children":3362},{"class":162,"line":697},[3363],{"type":52,"tag":160,"props":3364,"children":3365},{},[3366],{"type":58,"value":703},{"type":52,"tag":160,"props":3368,"children":3369},{"class":162,"line":706},[3370],{"type":52,"tag":160,"props":3371,"children":3372},{},[3373],{"type":58,"value":712},{"type":52,"tag":160,"props":3375,"children":3376},{"class":162,"line":715},[3377],{"type":52,"tag":160,"props":3378,"children":3379},{},[3380],{"type":58,"value":721},{"type":52,"tag":160,"props":3382,"children":3383},{"class":162,"line":724},[3384],{"type":52,"tag":160,"props":3385,"children":3386},{},[3387],{"type":58,"value":730},{"type":52,"tag":160,"props":3389,"children":3390},{"class":162,"line":733},[3391],{"type":52,"tag":160,"props":3392,"children":3393},{},[3394],{"type":58,"value":739},{"type":52,"tag":160,"props":3396,"children":3397},{"class":162,"line":742},[3398],{"type":52,"tag":160,"props":3399,"children":3400},{},[3401],{"type":58,"value":748},{"type":52,"tag":131,"props":3403,"children":3404},{"id":1529},[3405],{"type":58,"value":1532},{"type":52,"tag":107,"props":3407,"children":3408},{},[3409,3410,3415],{"type":58,"value":1537},{"type":52,"tag":71,"props":3411,"children":3413},{"className":3412},[],[3414],{"type":58,"value":87},{"type":58,"value":1544},{"type":52,"tag":239,"props":3417,"children":3418},{},[3419],{"type":52,"tag":107,"props":3420,"children":3421},{},[3422],{"type":58,"value":1552},{"type":52,"tag":239,"props":3424,"children":3425},{},[3426],{"type":52,"tag":107,"props":3427,"children":3428},{},[3429],{"type":58,"value":1560},{"type":52,"tag":239,"props":3431,"children":3432},{},[3433],{"type":52,"tag":107,"props":3434,"children":3435},{},[3436],{"type":58,"value":1568},{"type":52,"tag":239,"props":3438,"children":3439},{},[3440],{"type":52,"tag":107,"props":3441,"children":3442},{},[3443],{"type":58,"value":1576},{"type":52,"tag":239,"props":3445,"children":3446},{},[3447],{"type":52,"tag":107,"props":3448,"children":3449},{},[3450,3454,3455,3460,3461,3466,3467,3472],{"type":52,"tag":218,"props":3451,"children":3452},{},[3453],{"type":58,"value":1587},{"type":58,"value":1589},{"type":52,"tag":71,"props":3456,"children":3458},{"className":3457},[],[3459],{"type":58,"value":1595},{"type":58,"value":1597},{"type":52,"tag":71,"props":3462,"children":3464},{"className":3463},[],[3465],{"type":58,"value":1603},{"type":58,"value":1605},{"type":52,"tag":71,"props":3468,"children":3470},{"className":3469},[],[3471],{"type":58,"value":1611},{"type":58,"value":1613},{"type":52,"tag":239,"props":3474,"children":3475},{},[3476],{"type":52,"tag":107,"props":3477,"children":3478},{},[3479],{"type":58,"value":1621},{"type":52,"tag":107,"props":3481,"children":3482},{},[3483,3484,3489],{"type":58,"value":1626},{"type":52,"tag":71,"props":3485,"children":3487},{"className":3486},[],[3488],{"type":58,"value":87},{"type":58,"value":1633},{"type":52,"tag":131,"props":3491,"children":3492},{"id":1636},[3493],{"type":58,"value":1639},{"type":52,"tag":107,"props":3495,"children":3496},{},[3497,3498,3503],{"type":58,"value":1644},{"type":52,"tag":71,"props":3499,"children":3501},{"className":3500},[],[3502],{"type":58,"value":87},{"type":58,"value":1651},{"type":52,"tag":150,"props":3505,"children":3506},{"className":264,"code":1654,"language":266,"meta":7,"style":7},[3507],{"type":52,"tag":71,"props":3508,"children":3509},{"__ignoreMap":7},[3510,3517,3524],{"type":52,"tag":160,"props":3511,"children":3512},{"class":162,"line":163},[3513],{"type":52,"tag":160,"props":3514,"children":3515},{},[3516],{"type":58,"value":1666},{"type":52,"tag":160,"props":3518,"children":3519},{"class":162,"line":281},[3520],{"type":52,"tag":160,"props":3521,"children":3522},{},[3523],{"type":58,"value":1674},{"type":52,"tag":160,"props":3525,"children":3526},{"class":162,"line":290},[3527],{"type":52,"tag":160,"props":3528,"children":3529},{},[3530],{"type":58,"value":1682},{"type":52,"tag":107,"props":3532,"children":3533},{},[3534,3535,3540],{"type":58,"value":1687},{"type":52,"tag":71,"props":3536,"children":3538},{"className":3537},[],[3539],{"type":58,"value":87},{"type":58,"value":1694},{"type":52,"tag":131,"props":3542,"children":3543},{"id":1697},[3544],{"type":58,"value":1700},{"type":52,"tag":107,"props":3546,"children":3547},{},[3548],{"type":58,"value":1705},{"type":52,"tag":107,"props":3550,"children":3551},{},[3552],{"type":52,"tag":218,"props":3553,"children":3554},{},[3555],{"type":58,"value":1713},{"type":52,"tag":239,"props":3557,"children":3558},{},[3559],{"type":52,"tag":107,"props":3560,"children":3561},{},[3562,3566,3567,3572,3573,3578,3579,3584],{"type":52,"tag":218,"props":3563,"children":3564},{},[3565],{"type":58,"value":1587},{"type":58,"value":1725},{"type":52,"tag":71,"props":3568,"children":3570},{"className":3569},[],[3571],{"type":58,"value":230},{"type":58,"value":1732},{"type":52,"tag":71,"props":3574,"children":3576},{"className":3575},[],[3577],{"type":58,"value":1738},{"type":58,"value":1740},{"type":52,"tag":71,"props":3580,"children":3582},{"className":3581},[],[3583],{"type":58,"value":1746},{"type":58,"value":1748},{"type":52,"tag":150,"props":3586,"children":3587},{"className":152,"code":1751,"language":154,"meta":7,"style":7},[3588],{"type":52,"tag":71,"props":3589,"children":3590},{"__ignoreMap":7},[3591,3614,3633,3656],{"type":52,"tag":160,"props":3592,"children":3593},{"class":162,"line":163},[3594,3598,3602,3606,3610],{"type":52,"tag":160,"props":3595,"children":3596},{"style":167},[3597],{"type":58,"value":1763},{"type":52,"tag":160,"props":3599,"children":3600},{"style":173},[3601],{"type":58,"value":1768},{"type":52,"tag":160,"props":3603,"children":3604},{"style":1771},[3605],{"type":58,"value":1774},{"type":52,"tag":160,"props":3607,"children":3608},{"style":1771},[3609],{"type":58,"value":1779},{"type":52,"tag":160,"props":3611,"children":3612},{"style":173},[3613],{"type":58,"value":1784},{"type":52,"tag":160,"props":3615,"children":3616},{"class":162,"line":281},[3617,3621,3625,3629],{"type":52,"tag":160,"props":3618,"children":3619},{"style":167},[3620],{"type":58,"value":1763},{"type":52,"tag":160,"props":3622,"children":3623},{"style":173},[3624],{"type":58,"value":1796},{"type":52,"tag":160,"props":3626,"children":3627},{"style":1771},[3628],{"type":58,"value":1801},{"type":52,"tag":160,"props":3630,"children":3631},{"style":173},[3632],{"type":58,"value":1806},{"type":52,"tag":160,"props":3634,"children":3635},{"class":162,"line":290},[3636,3640,3644,3648,3652],{"type":52,"tag":160,"props":3637,"children":3638},{"style":167},[3639],{"type":58,"value":1763},{"type":52,"tag":160,"props":3641,"children":3642},{"style":173},[3643],{"type":58,"value":1818},{"type":52,"tag":160,"props":3645,"children":3646},{"style":173},[3647],{"type":58,"value":1768},{"type":52,"tag":160,"props":3649,"children":3650},{"style":173},[3651],{"type":58,"value":1827},{"type":52,"tag":160,"props":3653,"children":3654},{"style":173},[3655],{"type":58,"value":1832},{"type":52,"tag":160,"props":3657,"children":3658},{"class":162,"line":299},[3659,3663,3667,3671,3675],{"type":52,"tag":160,"props":3660,"children":3661},{"style":167},[3662],{"type":58,"value":1763},{"type":52,"tag":160,"props":3664,"children":3665},{"style":173},[3666],{"type":58,"value":1844},{"type":52,"tag":160,"props":3668,"children":3669},{"style":1771},[3670],{"type":58,"value":1849},{"type":52,"tag":160,"props":3672,"children":3673},{"style":173},[3674],{"type":58,"value":1827},{"type":52,"tag":160,"props":3676,"children":3677},{"style":173},[3678],{"type":58,"value":1858},{"type":52,"tag":107,"props":3680,"children":3681},{},[3682],{"type":52,"tag":218,"props":3683,"children":3684},{},[3685],{"type":58,"value":1866},{"type":52,"tag":61,"props":3687,"children":3688},{},[3689,3703,3707,3717,3721],{"type":52,"tag":65,"props":3690,"children":3691},{},[3692,3693,3698,3699],{"type":58,"value":1874},{"type":52,"tag":1876,"props":3694,"children":3696},{"href":1878,"rel":3695},[1880],[3697],{"type":58,"value":17},{"type":58,"value":1884},{"type":52,"tag":218,"props":3700,"children":3701},{},[3702],{"type":58,"value":1889},{"type":52,"tag":65,"props":3704,"children":3705},{},[3706],{"type":58,"value":1894},{"type":52,"tag":65,"props":3708,"children":3709},{},[3710,3711,3716],{"type":58,"value":1899},{"type":52,"tag":71,"props":3712,"children":3714},{"className":3713},[],[3715],{"type":58,"value":1905},{"type":58,"value":1907},{"type":52,"tag":65,"props":3718,"children":3719},{},[3720],{"type":58,"value":1912},{"type":52,"tag":65,"props":3722,"children":3723},{},[3724],{"type":58,"value":1917},{"type":52,"tag":107,"props":3726,"children":3727},{},[3728],{"type":52,"tag":218,"props":3729,"children":3730},{},[3731],{"type":58,"value":1925},{"type":52,"tag":61,"props":3733,"children":3734},{},[3735,3743,3753,3757,3761],{"type":52,"tag":65,"props":3736,"children":3737},{},[3738,3739],{"type":58,"value":1874},{"type":52,"tag":218,"props":3740,"children":3741},{},[3742],{"type":58,"value":1937},{"type":52,"tag":65,"props":3744,"children":3745},{},[3746,3747,3752],{"type":58,"value":1942},{"type":52,"tag":71,"props":3748,"children":3750},{"className":3749},[],[3751],{"type":58,"value":1905},{"type":58,"value":1907},{"type":52,"tag":65,"props":3754,"children":3755},{},[3756],{"type":58,"value":1953},{"type":52,"tag":65,"props":3758,"children":3759},{},[3760],{"type":58,"value":1958},{"type":52,"tag":65,"props":3762,"children":3763},{},[3764],{"type":58,"value":1963},{"type":52,"tag":107,"props":3766,"children":3767},{},[3768],{"type":52,"tag":218,"props":3769,"children":3770},{},[3771],{"type":58,"value":1971},{"type":52,"tag":107,"props":3773,"children":3774},{},[3775],{"type":58,"value":1976},{"type":52,"tag":239,"props":3777,"children":3778},{},[3779],{"type":52,"tag":107,"props":3780,"children":3781},{},[3782],{"type":58,"value":1984},{"type":52,"tag":107,"props":3784,"children":3785},{},[3786,3787,3792],{"type":58,"value":1989},{"type":52,"tag":71,"props":3788,"children":3790},{"className":3789},[],[3791],{"type":58,"value":87},{"type":58,"value":1996},{"type":52,"tag":53,"props":3794,"children":3795},{"id":1999},[3796],{"type":58,"value":2002},{"type":52,"tag":2004,"props":3798,"children":3799},{},[3800,3812,3824,3832],{"type":52,"tag":65,"props":3801,"children":3802},{},[3803,3811],{"type":52,"tag":218,"props":3804,"children":3805},{},[3806],{"type":52,"tag":71,"props":3807,"children":3809},{"className":3808},[],[3810],{"type":58,"value":76},{"type":58,"value":2019},{"type":52,"tag":65,"props":3813,"children":3814},{},[3815,3823],{"type":52,"tag":218,"props":3816,"children":3817},{},[3818],{"type":52,"tag":71,"props":3819,"children":3821},{"className":3820},[],[3822],{"type":58,"value":87},{"type":58,"value":2032},{"type":52,"tag":65,"props":3825,"children":3826},{},[3827,3831],{"type":52,"tag":218,"props":3828,"children":3829},{},[3830],{"type":58,"value":2040},{"type":58,"value":2042},{"type":52,"tag":65,"props":3833,"children":3834},{},[3835,3839],{"type":52,"tag":218,"props":3836,"children":3837},{},[3838],{"type":58,"value":2050},{"type":58,"value":2052},{"type":52,"tag":107,"props":3841,"children":3842},{},[3843],{"type":58,"value":2057},{"type":52,"tag":2059,"props":3845,"children":3846},{},[3847],{"type":58,"value":2063},{"title":7,"searchDepth":281,"depth":281,"links":3849},[3850,3851,3852,3859],{"id":55,"depth":281,"text":59},{"id":102,"depth":281,"text":105},{"id":126,"depth":281,"text":129,"children":3853},[3854,3855,3856,3857,3858],{"id":133,"depth":290,"text":136},{"id":202,"depth":290,"text":205},{"id":1529,"depth":290,"text":1532},{"id":1636,"depth":290,"text":1639},{"id":1697,"depth":290,"text":1700},{"id":1999,"depth":281,"text":2002},[3861,5350,10013,17968,31266,33045],{"_path":3862,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":3863,"description":3864,"date":10,"readingTime":334,"category":12,"tags":3865,"difficulty":3866,"module":5,"subSteps":26,"step":163,"variants":3867,"journeys":3868,"learnMore":3869,"author":3879,"body":3880,"_type":266,"_id":5347,"_source":2077,"_file":5348,"_stem":5349,"_extension":2080},"\u002Ftutorials\u002Fecommerce-pipeline\u002Fproject-setup","Set Up Your Project & Warehouse","Install Bruin CLI, initialize an ecommerce project, connect your data warehouse, and set up AI-assisted development with Claude Code and the Bruin MCP.",[14,15,18,19,20,21,23],"Beginner",[19,20,21],[29,30],[3870,3873,3876],{"label":3871,"url":3872},"Bruin project structure (docs)","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fcore-concepts\u002Fproject.html",{"label":3874,"url":3875},"Connections reference","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fconnections\u002Foverview.html",{"label":3877,"url":3878},"Bruin MCP setup guide","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fgetting-started\u002Fbruin-mcp.html",{"name":45,"role":46,"image":47},{"type":49,"children":3881,"toc":5333},[3882,3886,3891,3897,3902,3956,4006,4010,4015,4020,4036,4040,4046,4058,4128,4133,4143,4149,4159,4190,4214,4220,4225,4884,4890,4902,5160,5166,5178,5220,5225,5233,5238,5267,5273,5278,5302,5307,5315,5320,5324,5329],{"type":52,"tag":53,"props":3883,"children":3884},{"id":55},[3885],{"type":58,"value":59},{"type":52,"tag":107,"props":3887,"children":3888},{},[3889],{"type":58,"value":3890},"Create a project, connect your data warehouse, and set up Claude Code with the Bruin MCP so it can help you build the rest of the pipeline.",{"type":52,"tag":53,"props":3892,"children":3894},{"id":3893},"prerequisites",[3895],{"type":58,"value":3896},"Prerequisites",{"type":52,"tag":107,"props":3898,"children":3899},{},[3900],{"type":58,"value":3901},"Before starting, make sure you have these installed:",{"type":52,"tag":2004,"props":3903,"children":3904},{},[3905,3932],{"type":52,"tag":65,"props":3906,"children":3907},{},[3908,3913,3915,3922,3924,3930],{"type":52,"tag":218,"props":3909,"children":3910},{},[3911],{"type":58,"value":3912},"Git",{"type":58,"value":3914}," - ",{"type":52,"tag":1876,"props":3916,"children":3919},{"href":3917,"rel":3918},"https:\u002F\u002Fgit-scm.com\u002Fdownloads",[1880],[3920],{"type":58,"value":3921},"git-scm.com\u002Fdownloads",{"type":58,"value":3923},". Verify with ",{"type":52,"tag":71,"props":3925,"children":3927},{"className":3926},[],[3928],{"type":58,"value":3929},"git --version",{"type":58,"value":3931},".",{"type":52,"tag":65,"props":3933,"children":3934},{},[3935,3939,3941,3948,3949,3955],{"type":52,"tag":218,"props":3936,"children":3937},{},[3938],{"type":58,"value":14},{"type":58,"value":3940}," - install from the ",{"type":52,"tag":1876,"props":3942,"children":3945},{"href":3943,"rel":3944},"https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fgetting-started\u002Fintroduction\u002Finstallation.html",[1880],[3946],{"type":58,"value":3947},"installation docs",{"type":58,"value":3923},{"type":52,"tag":71,"props":3950,"children":3952},{"className":3951},[],[3953],{"type":58,"value":3954},"bruin version",{"type":58,"value":3931},{"type":52,"tag":107,"props":3957,"children":3958},{},[3959,3961,3967,3969,3975,3977,3983,3984,3990,3991,3997,3999,4005],{"type":58,"value":3960},"If you're new to Bruin, the ",{"type":52,"tag":1876,"props":3962,"children":3964},{"href":3963},"\u002Flearn\u002Fcore-concepts",[3965],{"type":58,"value":3966},"Core Concepts",{"type":58,"value":3968}," module covers ",{"type":52,"tag":1876,"props":3970,"children":3972},{"href":3971},"\u002Flearn\u002Fcore-concepts\u002Fprojects",[3973],{"type":58,"value":3974},"projects",{"type":58,"value":3976},", ",{"type":52,"tag":1876,"props":3978,"children":3980},{"href":3979},"\u002Flearn\u002Fcore-concepts\u002Fpipelines",[3981],{"type":58,"value":3982},"pipelines",{"type":58,"value":3976},{"type":52,"tag":1876,"props":3985,"children":3987},{"href":3986},"\u002Flearn\u002Fcore-concepts\u002Fassets",[3988],{"type":58,"value":3989},"assets",{"type":58,"value":3976},{"type":52,"tag":1876,"props":3992,"children":3994},{"href":3993},"\u002Flearn\u002Fcore-concepts\u002Fvariables",[3995],{"type":58,"value":3996},"variables",{"type":58,"value":3998},", and ",{"type":52,"tag":1876,"props":4000,"children":4002},{"href":4001},"\u002Flearn\u002Fcore-concepts\u002Fcommands",[4003],{"type":58,"value":4004},"commands",{"type":58,"value":3931},{"type":52,"tag":53,"props":4007,"children":4008},{"id":102},[4009],{"type":58,"value":105},{"type":52,"tag":107,"props":4011,"children":4012},{},[4013],{"type":58,"value":4014},"Every data pipeline needs two things: an orchestration tool and a destination. Bruin is the orchestrator - it defines what data moves where and when. Your data warehouse is the destination where all your Shopify and ecommerce data will land and get transformed.",{"type":52,"tag":107,"props":4016,"children":4017},{},[4018],{"type":58,"value":4019},"We'll use Claude Code throughout this tutorial to help create files, write SQL, run validations, and troubleshoot issues. Setting up the Bruin MCP early gives Claude Code direct access to your pipeline and warehouse from Step 2 onward.",{"type":52,"tag":4021,"props":4022,"children":4023},"note",{},[4024],{"type":52,"tag":107,"props":4025,"children":4026},{},[4027,4029,4035],{"type":58,"value":4028},"If you already have a Bruin project, skip ahead to ",{"type":52,"tag":1876,"props":4030,"children":4032},{"href":4031},"\u002Flearn\u002Fecommerce-pipeline\u002Fingest-data",[4033],{"type":58,"value":4034},"Step 2: Ingest Your Data",{"type":58,"value":3931},{"type":52,"tag":53,"props":4037,"children":4038},{"id":126},[4039],{"type":58,"value":129},{"type":52,"tag":131,"props":4041,"children":4043},{"id":4042},"_1-initialize-a-project",[4044],{"type":58,"value":4045},"1) Initialize a project",{"type":52,"tag":107,"props":4047,"children":4048},{},[4049,4051,4056],{"type":58,"value":4050},"Create a folder for your project, initialize git, then run ",{"type":52,"tag":71,"props":4052,"children":4054},{"className":4053},[],[4055],{"type":58,"value":1738},{"type":58,"value":4057}," inside it:",{"type":52,"tag":150,"props":4059,"children":4061},{"className":152,"code":4060,"language":154,"meta":7,"style":7},"mkdir ecommerce-analytics && cd ecommerce-analytics\ngit init\nbruin init empty ecommerce\n",[4062],{"type":52,"tag":71,"props":4063,"children":4064},{"__ignoreMap":7},[4065,4094,4106],{"type":52,"tag":160,"props":4066,"children":4067},{"class":162,"line":163},[4068,4073,4078,4084,4089],{"type":52,"tag":160,"props":4069,"children":4070},{"style":167},[4071],{"type":58,"value":4072},"mkdir",{"type":52,"tag":160,"props":4074,"children":4075},{"style":173},[4076],{"type":58,"value":4077}," ecommerce-analytics",{"type":52,"tag":160,"props":4079,"children":4081},{"style":4080},"--shiki-default:#E1E4E8",[4082],{"type":58,"value":4083}," && ",{"type":52,"tag":160,"props":4085,"children":4086},{"style":1771},[4087],{"type":58,"value":4088},"cd",{"type":52,"tag":160,"props":4090,"children":4091},{"style":173},[4092],{"type":58,"value":4093}," ecommerce-analytics\n",{"type":52,"tag":160,"props":4095,"children":4096},{"class":162,"line":281},[4097,4101],{"type":52,"tag":160,"props":4098,"children":4099},{"style":167},[4100],{"type":58,"value":1763},{"type":52,"tag":160,"props":4102,"children":4103},{"style":173},[4104],{"type":58,"value":4105}," init\n",{"type":52,"tag":160,"props":4107,"children":4108},{"class":162,"line":290},[4109,4113,4118,4123],{"type":52,"tag":160,"props":4110,"children":4111},{"style":167},[4112],{"type":58,"value":170},{"type":52,"tag":160,"props":4114,"children":4115},{"style":173},[4116],{"type":58,"value":4117}," init",{"type":52,"tag":160,"props":4119,"children":4120},{"style":173},[4121],{"type":58,"value":4122}," empty",{"type":52,"tag":160,"props":4124,"children":4125},{"style":173},[4126],{"type":58,"value":4127}," ecommerce\n",{"type":52,"tag":107,"props":4129,"children":4130},{},[4131],{"type":58,"value":4132},"This creates the following structure:",{"type":52,"tag":150,"props":4134,"children":4138},{"className":4135,"code":4137,"language":58},[4136],"language-text","ecommerce-analytics\u002F\n├── .bruin.yml            # project config - connections, environments\n└── ecommerce\u002F            # pipeline folder\n    ├── pipeline.yml      # pipeline config - name, schedule, defaults\n    └── assets\u002F           # where your data assets will live\n",[4139],{"type":52,"tag":71,"props":4140,"children":4141},{"__ignoreMap":7},[4142],{"type":58,"value":4137},{"type":52,"tag":131,"props":4144,"children":4146},{"id":4145},"_2-add-bruinyml-to-gitignore",[4147],{"type":58,"value":4148},"2) Add .bruin.yml to .gitignore",{"type":52,"tag":107,"props":4150,"children":4151},{},[4152,4157],{"type":52,"tag":71,"props":4153,"children":4155},{"className":4154},[],[4156],{"type":58,"value":230},{"type":58,"value":4158}," stores your connection credentials (database passwords, API keys). You don't want these in git.",{"type":52,"tag":150,"props":4160,"children":4162},{"className":152,"code":4161,"language":154,"meta":7,"style":7},"echo \".bruin.yml\" >> .gitignore\n",[4163],{"type":52,"tag":71,"props":4164,"children":4165},{"__ignoreMap":7},[4166],{"type":52,"tag":160,"props":4167,"children":4168},{"class":162,"line":163},[4169,4174,4179,4185],{"type":52,"tag":160,"props":4170,"children":4171},{"style":1771},[4172],{"type":58,"value":4173},"echo",{"type":52,"tag":160,"props":4175,"children":4176},{"style":173},[4177],{"type":58,"value":4178}," \".bruin.yml\"",{"type":52,"tag":160,"props":4180,"children":4182},{"style":4181},"--shiki-default:#F97583",[4183],{"type":58,"value":4184}," >>",{"type":52,"tag":160,"props":4186,"children":4187},{"style":173},[4188],{"type":58,"value":4189}," .gitignore\n",{"type":52,"tag":107,"props":4191,"children":4192},{},[4193,4198,4200,4205,4207,4212],{"type":52,"tag":71,"props":4194,"children":4196},{"className":4195},[],[4197],{"type":58,"value":1738},{"type":58,"value":4199}," may already add this for you - check your ",{"type":52,"tag":71,"props":4201,"children":4203},{"className":4202},[],[4204],{"type":58,"value":1746},{"type":58,"value":4206}," to confirm. When you deploy to production, connections are configured securely in ",{"type":52,"tag":1876,"props":4208,"children":4210},{"href":1878,"rel":4209},[1880],[4211],{"type":58,"value":17},{"type":58,"value":4213}," instead of the local file - we'll set that up in Step 5.",{"type":52,"tag":131,"props":4215,"children":4217},{"id":4216},"_3-connect-your-data-warehouse",[4218],{"type":58,"value":4219},"3) Connect your data warehouse",{"type":52,"tag":107,"props":4221,"children":4222},{},[4223],{"type":58,"value":4224},"Pick the tab that matches the warehouse you selected on the overview page.",{"type":52,"tag":253,"props":4226,"children":4227},{":variants":255,"group":256},[4228,4396,4719],{"type":52,"tag":259,"props":4229,"children":4230},{"v-slot:clickhouse":7},[4231,4236,4274,4298,4303,4345,4350,4383],{"type":52,"tag":131,"props":4232,"children":4234},{"id":4233},"clickhouse",[4235],{"type":58,"value":19},{"type":52,"tag":107,"props":4237,"children":4238},{},[4239,4241,4248,4250,4255,4256,4261,4262,4267,4268,4273],{"type":58,"value":4240},"If you don't have a ClickHouse instance yet, go to ",{"type":52,"tag":1876,"props":4242,"children":4245},{"href":4243,"rel":4244},"https:\u002F\u002Fclickhouse.com\u002Fcloud",[1880],[4246],{"type":58,"value":4247},"clickhouse.com\u002Fcloud",{"type":58,"value":4249}," and sign up for the free tier. Create a new service and copy the ",{"type":52,"tag":218,"props":4251,"children":4252},{},[4253],{"type":58,"value":4254},"host",{"type":58,"value":3976},{"type":52,"tag":218,"props":4257,"children":4258},{},[4259],{"type":58,"value":4260},"port",{"type":58,"value":3976},{"type":52,"tag":218,"props":4263,"children":4264},{},[4265],{"type":58,"value":4266},"username",{"type":58,"value":3998},{"type":52,"tag":218,"props":4269,"children":4270},{},[4271],{"type":58,"value":4272},"password",{"type":58,"value":3931},{"type":52,"tag":150,"props":4275,"children":4277},{"className":152,"code":4276,"language":154,"meta":7,"style":7},"bruin connections add\n",[4278],{"type":52,"tag":71,"props":4279,"children":4280},{"__ignoreMap":7},[4281],{"type":52,"tag":160,"props":4282,"children":4283},{"class":162,"line":163},[4284,4288,4293],{"type":52,"tag":160,"props":4285,"children":4286},{"style":167},[4287],{"type":58,"value":170},{"type":52,"tag":160,"props":4289,"children":4290},{"style":173},[4291],{"type":58,"value":4292}," connections",{"type":52,"tag":160,"props":4294,"children":4295},{"style":173},[4296],{"type":58,"value":4297}," add\n",{"type":52,"tag":107,"props":4299,"children":4300},{},[4301],{"type":58,"value":4302},"When prompted:",{"type":52,"tag":2004,"props":4304,"children":4305},{},[4306,4320,4335],{"type":52,"tag":65,"props":4307,"children":4308},{},[4309,4314,4315],{"type":52,"tag":218,"props":4310,"children":4311},{},[4312],{"type":58,"value":4313},"Type:",{"type":58,"value":1725},{"type":52,"tag":71,"props":4316,"children":4318},{"className":4317},[],[4319],{"type":58,"value":4233},{"type":52,"tag":65,"props":4321,"children":4322},{},[4323,4328,4329],{"type":52,"tag":218,"props":4324,"children":4325},{},[4326],{"type":58,"value":4327},"Name:",{"type":58,"value":1725},{"type":52,"tag":71,"props":4330,"children":4332},{"className":4331},[],[4333],{"type":58,"value":4334},"clickhouse-default",{"type":52,"tag":65,"props":4336,"children":4337},{},[4338,4343],{"type":52,"tag":218,"props":4339,"children":4340},{},[4341],{"type":58,"value":4342},"Host, port, username, password:",{"type":58,"value":4344}," paste the values from your ClickHouse Cloud service",{"type":52,"tag":107,"props":4346,"children":4347},{},[4348],{"type":58,"value":4349},"Test the connection:",{"type":52,"tag":150,"props":4351,"children":4353},{"className":152,"code":4352,"language":154,"meta":7,"style":7},"bruin connections test --name clickhouse-default\n",[4354],{"type":52,"tag":71,"props":4355,"children":4356},{"__ignoreMap":7},[4357],{"type":52,"tag":160,"props":4358,"children":4359},{"class":162,"line":163},[4360,4364,4368,4373,4378],{"type":52,"tag":160,"props":4361,"children":4362},{"style":167},[4363],{"type":58,"value":170},{"type":52,"tag":160,"props":4365,"children":4366},{"style":173},[4367],{"type":58,"value":4292},{"type":52,"tag":160,"props":4369,"children":4370},{"style":173},[4371],{"type":58,"value":4372}," test",{"type":52,"tag":160,"props":4374,"children":4375},{"style":1771},[4376],{"type":58,"value":4377}," --name",{"type":52,"tag":160,"props":4379,"children":4380},{"style":173},[4381],{"type":58,"value":4382}," clickhouse-default\n",{"type":52,"tag":107,"props":4384,"children":4385},{},[4386,4388,4395],{"type":58,"value":4387},"For full connection options, see the ",{"type":52,"tag":1876,"props":4389,"children":4392},{"href":4390,"rel":4391},"https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fplatforms\u002Fclickhouse.html",[1880],[4393],{"type":58,"value":4394},"ClickHouse platform docs",{"type":58,"value":3931},{"type":52,"tag":259,"props":4397,"children":4398},{"v-slot:bigquery":7},[4399,4404,4412,4442,4447,4468,4472,4536,4544,4556,4672,4676,4707],{"type":52,"tag":131,"props":4400,"children":4402},{"id":4401},"bigquery",[4403],{"type":58,"value":20},{"type":52,"tag":107,"props":4405,"children":4406},{},[4407],{"type":52,"tag":218,"props":4408,"children":4409},{},[4410],{"type":58,"value":4411},"Option A: Application Default Credentials (personal account)",{"type":52,"tag":150,"props":4413,"children":4415},{"className":152,"code":4414,"language":154,"meta":7,"style":7},"gcloud auth application-default login\n",[4416],{"type":52,"tag":71,"props":4417,"children":4418},{"__ignoreMap":7},[4419],{"type":52,"tag":160,"props":4420,"children":4421},{"class":162,"line":163},[4422,4427,4432,4437],{"type":52,"tag":160,"props":4423,"children":4424},{"style":167},[4425],{"type":58,"value":4426},"gcloud",{"type":52,"tag":160,"props":4428,"children":4429},{"style":173},[4430],{"type":58,"value":4431}," auth",{"type":52,"tag":160,"props":4433,"children":4434},{"style":173},[4435],{"type":58,"value":4436}," application-default",{"type":52,"tag":160,"props":4438,"children":4439},{"style":173},[4440],{"type":58,"value":4441}," login\n",{"type":52,"tag":107,"props":4443,"children":4444},{},[4445],{"type":58,"value":4446},"This opens a browser for Google sign-in. Once done, run:",{"type":52,"tag":150,"props":4448,"children":4449},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[4450],{"type":52,"tag":71,"props":4451,"children":4452},{"__ignoreMap":7},[4453],{"type":52,"tag":160,"props":4454,"children":4455},{"class":162,"line":163},[4456,4460,4464],{"type":52,"tag":160,"props":4457,"children":4458},{"style":167},[4459],{"type":58,"value":170},{"type":52,"tag":160,"props":4461,"children":4462},{"style":173},[4463],{"type":58,"value":4292},{"type":52,"tag":160,"props":4465,"children":4466},{"style":173},[4467],{"type":58,"value":4297},{"type":52,"tag":107,"props":4469,"children":4470},{},[4471],{"type":58,"value":4302},{"type":52,"tag":2004,"props":4473,"children":4474},{},[4475,4489,4503,4513],{"type":52,"tag":65,"props":4476,"children":4477},{},[4478,4482,4483],{"type":52,"tag":218,"props":4479,"children":4480},{},[4481],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":4484,"children":4486},{"className":4485},[],[4487],{"type":58,"value":4488},"google_cloud_platform",{"type":52,"tag":65,"props":4490,"children":4491},{},[4492,4496,4497],{"type":52,"tag":218,"props":4493,"children":4494},{},[4495],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":4498,"children":4500},{"className":4499},[],[4501],{"type":58,"value":4502},"bigquery-default",{"type":52,"tag":65,"props":4504,"children":4505},{},[4506,4511],{"type":52,"tag":218,"props":4507,"children":4508},{},[4509],{"type":58,"value":4510},"Project ID:",{"type":58,"value":4512}," your GCP project ID",{"type":52,"tag":65,"props":4514,"children":4515},{},[4516,4521,4522,4528,4530],{"type":52,"tag":218,"props":4517,"children":4518},{},[4519],{"type":58,"value":4520},"Credential method:",{"type":58,"value":1725},{"type":52,"tag":71,"props":4523,"children":4525},{"className":4524},[],[4526],{"type":58,"value":4527},"use_application_default_credentials",{"type":58,"value":4529}," set to ",{"type":52,"tag":71,"props":4531,"children":4533},{"className":4532},[],[4534],{"type":58,"value":4535},"true",{"type":52,"tag":107,"props":4537,"children":4538},{},[4539],{"type":52,"tag":218,"props":4540,"children":4541},{},[4542],{"type":58,"value":4543},"Option B: Service Account Key File",{"type":52,"tag":107,"props":4545,"children":4546},{},[4547,4549,4554],{"type":58,"value":4548},"Edit ",{"type":52,"tag":71,"props":4550,"children":4552},{"className":4551},[],[4553],{"type":58,"value":230},{"type":58,"value":4555}," directly:",{"type":52,"tag":150,"props":4557,"children":4561},{"className":4558,"code":4559,"language":4560,"meta":7,"style":7},"language-yaml shiki shiki-themes github-dark","environments:\n  default:\n    connections:\n      google_cloud_platform:\n        - name: \"bigquery-default\"\n          project_id: \"your-gcp-project-id\"\n          service_account_file: \"\u002Fpath\u002Fto\u002Fyour-service-account.json\"\n","yaml",[4562],{"type":52,"tag":71,"props":4563,"children":4564},{"__ignoreMap":7},[4565,4579,4591,4603,4615,4638,4655],{"type":52,"tag":160,"props":4566,"children":4567},{"class":162,"line":163},[4568,4574],{"type":52,"tag":160,"props":4569,"children":4571},{"style":4570},"--shiki-default:#85E89D",[4572],{"type":58,"value":4573},"environments",{"type":52,"tag":160,"props":4575,"children":4576},{"style":4080},[4577],{"type":58,"value":4578},":\n",{"type":52,"tag":160,"props":4580,"children":4581},{"class":162,"line":281},[4582,4587],{"type":52,"tag":160,"props":4583,"children":4584},{"style":4570},[4585],{"type":58,"value":4586},"  default",{"type":52,"tag":160,"props":4588,"children":4589},{"style":4080},[4590],{"type":58,"value":4578},{"type":52,"tag":160,"props":4592,"children":4593},{"class":162,"line":290},[4594,4599],{"type":52,"tag":160,"props":4595,"children":4596},{"style":4570},[4597],{"type":58,"value":4598},"    connections",{"type":52,"tag":160,"props":4600,"children":4601},{"style":4080},[4602],{"type":58,"value":4578},{"type":52,"tag":160,"props":4604,"children":4605},{"class":162,"line":299},[4606,4611],{"type":52,"tag":160,"props":4607,"children":4608},{"style":4570},[4609],{"type":58,"value":4610},"      google_cloud_platform",{"type":52,"tag":160,"props":4612,"children":4613},{"style":4080},[4614],{"type":58,"value":4578},{"type":52,"tag":160,"props":4616,"children":4617},{"class":162,"line":27},[4618,4623,4628,4633],{"type":52,"tag":160,"props":4619,"children":4620},{"style":4080},[4621],{"type":58,"value":4622},"        - ",{"type":52,"tag":160,"props":4624,"children":4625},{"style":4570},[4626],{"type":58,"value":4627},"name",{"type":52,"tag":160,"props":4629,"children":4630},{"style":4080},[4631],{"type":58,"value":4632},": ",{"type":52,"tag":160,"props":4634,"children":4635},{"style":173},[4636],{"type":58,"value":4637},"\"bigquery-default\"\n",{"type":52,"tag":160,"props":4639,"children":4640},{"class":162,"line":316},[4641,4646,4650],{"type":52,"tag":160,"props":4642,"children":4643},{"style":4570},[4644],{"type":58,"value":4645},"          project_id",{"type":52,"tag":160,"props":4647,"children":4648},{"style":4080},[4649],{"type":58,"value":4632},{"type":52,"tag":160,"props":4651,"children":4652},{"style":173},[4653],{"type":58,"value":4654},"\"your-gcp-project-id\"\n",{"type":52,"tag":160,"props":4656,"children":4657},{"class":162,"line":325},[4658,4663,4667],{"type":52,"tag":160,"props":4659,"children":4660},{"style":4570},[4661],{"type":58,"value":4662},"          service_account_file",{"type":52,"tag":160,"props":4664,"children":4665},{"style":4080},[4666],{"type":58,"value":4632},{"type":52,"tag":160,"props":4668,"children":4669},{"style":173},[4670],{"type":58,"value":4671},"\"\u002Fpath\u002Fto\u002Fyour-service-account.json\"\n",{"type":52,"tag":107,"props":4673,"children":4674},{},[4675],{"type":58,"value":4349},{"type":52,"tag":150,"props":4677,"children":4679},{"className":152,"code":4678,"language":154,"meta":7,"style":7},"bruin connections test --name bigquery-default\n",[4680],{"type":52,"tag":71,"props":4681,"children":4682},{"__ignoreMap":7},[4683],{"type":52,"tag":160,"props":4684,"children":4685},{"class":162,"line":163},[4686,4690,4694,4698,4702],{"type":52,"tag":160,"props":4687,"children":4688},{"style":167},[4689],{"type":58,"value":170},{"type":52,"tag":160,"props":4691,"children":4692},{"style":173},[4693],{"type":58,"value":4292},{"type":52,"tag":160,"props":4695,"children":4696},{"style":173},[4697],{"type":58,"value":4372},{"type":52,"tag":160,"props":4699,"children":4700},{"style":1771},[4701],{"type":58,"value":4377},{"type":52,"tag":160,"props":4703,"children":4704},{"style":173},[4705],{"type":58,"value":4706}," bigquery-default\n",{"type":52,"tag":107,"props":4708,"children":4709},{},[4710,4711,4718],{"type":58,"value":4387},{"type":52,"tag":1876,"props":4712,"children":4715},{"href":4713,"rel":4714},"https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fplatforms\u002Fbigquery.html",[1880],[4716],{"type":58,"value":4717},"BigQuery platform docs",{"type":58,"value":3931},{"type":52,"tag":259,"props":4720,"children":4721},{"v-slot:snowflake":7},[4722,4727,4748,4752,4837,4841,4872],{"type":52,"tag":131,"props":4723,"children":4725},{"id":4724},"snowflake",[4726],{"type":58,"value":21},{"type":52,"tag":150,"props":4728,"children":4729},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[4730],{"type":52,"tag":71,"props":4731,"children":4732},{"__ignoreMap":7},[4733],{"type":52,"tag":160,"props":4734,"children":4735},{"class":162,"line":163},[4736,4740,4744],{"type":52,"tag":160,"props":4737,"children":4738},{"style":167},[4739],{"type":58,"value":170},{"type":52,"tag":160,"props":4741,"children":4742},{"style":173},[4743],{"type":58,"value":4292},{"type":52,"tag":160,"props":4745,"children":4746},{"style":173},[4747],{"type":58,"value":4297},{"type":52,"tag":107,"props":4749,"children":4750},{},[4751],{"type":58,"value":4302},{"type":52,"tag":2004,"props":4753,"children":4754},{},[4755,4768,4782,4800,4810,4820],{"type":52,"tag":65,"props":4756,"children":4757},{},[4758,4762,4763],{"type":52,"tag":218,"props":4759,"children":4760},{},[4761],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":4764,"children":4766},{"className":4765},[],[4767],{"type":58,"value":4724},{"type":52,"tag":65,"props":4769,"children":4770},{},[4771,4775,4776],{"type":52,"tag":218,"props":4772,"children":4773},{},[4774],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":4777,"children":4779},{"className":4778},[],[4780],{"type":58,"value":4781},"snowflake-default",{"type":52,"tag":65,"props":4783,"children":4784},{},[4785,4790,4792,4798],{"type":52,"tag":218,"props":4786,"children":4787},{},[4788],{"type":58,"value":4789},"Account:",{"type":58,"value":4791}," your Snowflake account identifier (e.g. ",{"type":52,"tag":71,"props":4793,"children":4795},{"className":4794},[],[4796],{"type":58,"value":4797},"abc12345.us-east-1",{"type":58,"value":4799},")",{"type":52,"tag":65,"props":4801,"children":4802},{},[4803,4808],{"type":52,"tag":218,"props":4804,"children":4805},{},[4806],{"type":58,"value":4807},"Username and password:",{"type":58,"value":4809}," your Snowflake credentials",{"type":52,"tag":65,"props":4811,"children":4812},{},[4813,4818],{"type":52,"tag":218,"props":4814,"children":4815},{},[4816],{"type":58,"value":4817},"Database and warehouse:",{"type":58,"value":4819}," your target database and compute warehouse",{"type":52,"tag":65,"props":4821,"children":4822},{},[4823,4828,4829,4835],{"type":52,"tag":218,"props":4824,"children":4825},{},[4826],{"type":58,"value":4827},"Schema",{"type":58,"value":1725},{"type":52,"tag":4830,"props":4831,"children":4832},"em",{},[4833],{"type":58,"value":4834},"(optional):",{"type":58,"value":4836}," default schema to use",{"type":52,"tag":107,"props":4838,"children":4839},{},[4840],{"type":58,"value":4349},{"type":52,"tag":150,"props":4842,"children":4844},{"className":152,"code":4843,"language":154,"meta":7,"style":7},"bruin connections test --name snowflake-default\n",[4845],{"type":52,"tag":71,"props":4846,"children":4847},{"__ignoreMap":7},[4848],{"type":52,"tag":160,"props":4849,"children":4850},{"class":162,"line":163},[4851,4855,4859,4863,4867],{"type":52,"tag":160,"props":4852,"children":4853},{"style":167},[4854],{"type":58,"value":170},{"type":52,"tag":160,"props":4856,"children":4857},{"style":173},[4858],{"type":58,"value":4292},{"type":52,"tag":160,"props":4860,"children":4861},{"style":173},[4862],{"type":58,"value":4372},{"type":52,"tag":160,"props":4864,"children":4865},{"style":1771},[4866],{"type":58,"value":4377},{"type":52,"tag":160,"props":4868,"children":4869},{"style":173},[4870],{"type":58,"value":4871}," snowflake-default\n",{"type":52,"tag":107,"props":4873,"children":4874},{},[4875,4876,4883],{"type":58,"value":4387},{"type":52,"tag":1876,"props":4877,"children":4880},{"href":4878,"rel":4879},"https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fplatforms\u002Fsnowflake.html",[1880],[4881],{"type":58,"value":4882},"Snowflake platform docs",{"type":58,"value":3931},{"type":52,"tag":131,"props":4885,"children":4887},{"id":4886},"_4-configure-the-pipeline",[4888],{"type":58,"value":4889},"4) Configure the pipeline",{"type":52,"tag":107,"props":4891,"children":4892},{},[4893,4894,4900],{"type":58,"value":4548},{"type":52,"tag":71,"props":4895,"children":4897},{"className":4896},[],[4898],{"type":58,"value":4899},"ecommerce\u002Fpipeline.yml",{"type":58,"value":4901}," to set the default connection and schedule:",{"type":52,"tag":253,"props":4903,"children":4904},{":variants":255,"group":256},[4905,4994,5077],{"type":52,"tag":259,"props":4906,"children":4907},{"v-slot:clickhouse":7},[4908],{"type":52,"tag":150,"props":4909,"children":4911},{"className":4558,"code":4910,"language":4560,"meta":7,"style":7},"name: ecommerce\nschedule: daily\nstart_date: \"2024-01-01\"\ndefault_connections:\n  clickhouse: clickhouse-default\n",[4912],{"type":52,"tag":71,"props":4913,"children":4914},{"__ignoreMap":7},[4915,4931,4948,4965,4977],{"type":52,"tag":160,"props":4916,"children":4917},{"class":162,"line":163},[4918,4922,4926],{"type":52,"tag":160,"props":4919,"children":4920},{"style":4570},[4921],{"type":58,"value":4627},{"type":52,"tag":160,"props":4923,"children":4924},{"style":4080},[4925],{"type":58,"value":4632},{"type":52,"tag":160,"props":4927,"children":4928},{"style":173},[4929],{"type":58,"value":4930},"ecommerce\n",{"type":52,"tag":160,"props":4932,"children":4933},{"class":162,"line":281},[4934,4939,4943],{"type":52,"tag":160,"props":4935,"children":4936},{"style":4570},[4937],{"type":58,"value":4938},"schedule",{"type":52,"tag":160,"props":4940,"children":4941},{"style":4080},[4942],{"type":58,"value":4632},{"type":52,"tag":160,"props":4944,"children":4945},{"style":173},[4946],{"type":58,"value":4947},"daily\n",{"type":52,"tag":160,"props":4949,"children":4950},{"class":162,"line":290},[4951,4956,4960],{"type":52,"tag":160,"props":4952,"children":4953},{"style":4570},[4954],{"type":58,"value":4955},"start_date",{"type":52,"tag":160,"props":4957,"children":4958},{"style":4080},[4959],{"type":58,"value":4632},{"type":52,"tag":160,"props":4961,"children":4962},{"style":173},[4963],{"type":58,"value":4964},"\"2024-01-01\"\n",{"type":52,"tag":160,"props":4966,"children":4967},{"class":162,"line":299},[4968,4973],{"type":52,"tag":160,"props":4969,"children":4970},{"style":4570},[4971],{"type":58,"value":4972},"default_connections",{"type":52,"tag":160,"props":4974,"children":4975},{"style":4080},[4976],{"type":58,"value":4578},{"type":52,"tag":160,"props":4978,"children":4979},{"class":162,"line":27},[4980,4985,4989],{"type":52,"tag":160,"props":4981,"children":4982},{"style":4570},[4983],{"type":58,"value":4984},"  clickhouse",{"type":52,"tag":160,"props":4986,"children":4987},{"style":4080},[4988],{"type":58,"value":4632},{"type":52,"tag":160,"props":4990,"children":4991},{"style":173},[4992],{"type":58,"value":4993},"clickhouse-default\n",{"type":52,"tag":259,"props":4995,"children":4996},{"v-slot:bigquery":7},[4997],{"type":52,"tag":150,"props":4998,"children":5000},{"className":4558,"code":4999,"language":4560,"meta":7,"style":7},"name: ecommerce\nschedule: daily\nstart_date: \"2024-01-01\"\ndefault_connections:\n  google_cloud_platform: bigquery-default\n",[5001],{"type":52,"tag":71,"props":5002,"children":5003},{"__ignoreMap":7},[5004,5019,5034,5049,5060],{"type":52,"tag":160,"props":5005,"children":5006},{"class":162,"line":163},[5007,5011,5015],{"type":52,"tag":160,"props":5008,"children":5009},{"style":4570},[5010],{"type":58,"value":4627},{"type":52,"tag":160,"props":5012,"children":5013},{"style":4080},[5014],{"type":58,"value":4632},{"type":52,"tag":160,"props":5016,"children":5017},{"style":173},[5018],{"type":58,"value":4930},{"type":52,"tag":160,"props":5020,"children":5021},{"class":162,"line":281},[5022,5026,5030],{"type":52,"tag":160,"props":5023,"children":5024},{"style":4570},[5025],{"type":58,"value":4938},{"type":52,"tag":160,"props":5027,"children":5028},{"style":4080},[5029],{"type":58,"value":4632},{"type":52,"tag":160,"props":5031,"children":5032},{"style":173},[5033],{"type":58,"value":4947},{"type":52,"tag":160,"props":5035,"children":5036},{"class":162,"line":290},[5037,5041,5045],{"type":52,"tag":160,"props":5038,"children":5039},{"style":4570},[5040],{"type":58,"value":4955},{"type":52,"tag":160,"props":5042,"children":5043},{"style":4080},[5044],{"type":58,"value":4632},{"type":52,"tag":160,"props":5046,"children":5047},{"style":173},[5048],{"type":58,"value":4964},{"type":52,"tag":160,"props":5050,"children":5051},{"class":162,"line":299},[5052,5056],{"type":52,"tag":160,"props":5053,"children":5054},{"style":4570},[5055],{"type":58,"value":4972},{"type":52,"tag":160,"props":5057,"children":5058},{"style":4080},[5059],{"type":58,"value":4578},{"type":52,"tag":160,"props":5061,"children":5062},{"class":162,"line":27},[5063,5068,5072],{"type":52,"tag":160,"props":5064,"children":5065},{"style":4570},[5066],{"type":58,"value":5067},"  google_cloud_platform",{"type":52,"tag":160,"props":5069,"children":5070},{"style":4080},[5071],{"type":58,"value":4632},{"type":52,"tag":160,"props":5073,"children":5074},{"style":173},[5075],{"type":58,"value":5076},"bigquery-default\n",{"type":52,"tag":259,"props":5078,"children":5079},{"v-slot:snowflake":7},[5080],{"type":52,"tag":150,"props":5081,"children":5083},{"className":4558,"code":5082,"language":4560,"meta":7,"style":7},"name: ecommerce\nschedule: daily\nstart_date: \"2024-01-01\"\ndefault_connections:\n  snowflake: snowflake-default\n",[5084],{"type":52,"tag":71,"props":5085,"children":5086},{"__ignoreMap":7},[5087,5102,5117,5132,5143],{"type":52,"tag":160,"props":5088,"children":5089},{"class":162,"line":163},[5090,5094,5098],{"type":52,"tag":160,"props":5091,"children":5092},{"style":4570},[5093],{"type":58,"value":4627},{"type":52,"tag":160,"props":5095,"children":5096},{"style":4080},[5097],{"type":58,"value":4632},{"type":52,"tag":160,"props":5099,"children":5100},{"style":173},[5101],{"type":58,"value":4930},{"type":52,"tag":160,"props":5103,"children":5104},{"class":162,"line":281},[5105,5109,5113],{"type":52,"tag":160,"props":5106,"children":5107},{"style":4570},[5108],{"type":58,"value":4938},{"type":52,"tag":160,"props":5110,"children":5111},{"style":4080},[5112],{"type":58,"value":4632},{"type":52,"tag":160,"props":5114,"children":5115},{"style":173},[5116],{"type":58,"value":4947},{"type":52,"tag":160,"props":5118,"children":5119},{"class":162,"line":290},[5120,5124,5128],{"type":52,"tag":160,"props":5121,"children":5122},{"style":4570},[5123],{"type":58,"value":4955},{"type":52,"tag":160,"props":5125,"children":5126},{"style":4080},[5127],{"type":58,"value":4632},{"type":52,"tag":160,"props":5129,"children":5130},{"style":173},[5131],{"type":58,"value":4964},{"type":52,"tag":160,"props":5133,"children":5134},{"class":162,"line":299},[5135,5139],{"type":52,"tag":160,"props":5136,"children":5137},{"style":4570},[5138],{"type":58,"value":4972},{"type":52,"tag":160,"props":5140,"children":5141},{"style":4080},[5142],{"type":58,"value":4578},{"type":52,"tag":160,"props":5144,"children":5145},{"class":162,"line":27},[5146,5151,5155],{"type":52,"tag":160,"props":5147,"children":5148},{"style":4570},[5149],{"type":58,"value":5150},"  snowflake",{"type":52,"tag":160,"props":5152,"children":5153},{"style":4080},[5154],{"type":58,"value":4632},{"type":52,"tag":160,"props":5156,"children":5157},{"style":173},[5158],{"type":58,"value":5159},"snowflake-default\n",{"type":52,"tag":131,"props":5161,"children":5163},{"id":5162},"_5-set-up-claude-code-with-bruin-mcp",[5164],{"type":58,"value":5165},"5) Set up Claude Code with Bruin MCP",{"type":52,"tag":107,"props":5167,"children":5168},{},[5169,5171,5176],{"type":58,"value":5170},"The Bruin MCP connects Claude Code directly to your pipeline and warehouse. Once it's set up, Claude Code can read your asset files, run ",{"type":52,"tag":71,"props":5172,"children":5174},{"className":5173},[],[5175],{"type":58,"value":170},{"type":58,"value":5177}," commands, query your warehouse, and look up Bruin documentation - all without you having to copy-paste anything.",{"type":52,"tag":150,"props":5179,"children":5181},{"className":152,"code":5180,"language":154,"meta":7,"style":7},"claude mcp add bruin -- bruin mcp\n",[5182],{"type":52,"tag":71,"props":5183,"children":5184},{"__ignoreMap":7},[5185],{"type":52,"tag":160,"props":5186,"children":5187},{"class":162,"line":163},[5188,5193,5198,5202,5207,5211,5215],{"type":52,"tag":160,"props":5189,"children":5190},{"style":167},[5191],{"type":58,"value":5192},"claude",{"type":52,"tag":160,"props":5194,"children":5195},{"style":173},[5196],{"type":58,"value":5197}," mcp",{"type":52,"tag":160,"props":5199,"children":5200},{"style":173},[5201],{"type":58,"value":1768},{"type":52,"tag":160,"props":5203,"children":5204},{"style":173},[5205],{"type":58,"value":5206}," bruin",{"type":52,"tag":160,"props":5208,"children":5209},{"style":1771},[5210],{"type":58,"value":1779},{"type":52,"tag":160,"props":5212,"children":5213},{"style":173},[5214],{"type":58,"value":5206},{"type":52,"tag":160,"props":5216,"children":5217},{"style":173},[5218],{"type":58,"value":5219}," mcp\n",{"type":52,"tag":107,"props":5221,"children":5222},{},[5223],{"type":58,"value":5224},"Restart your Claude Code session for the MCP to take effect. To verify it's working, open Claude Code in your project directory and ask:",{"type":52,"tag":239,"props":5226,"children":5227},{},[5228],{"type":52,"tag":107,"props":5229,"children":5230},{},[5231],{"type":58,"value":5232},"What connections are available in this Bruin project?",{"type":52,"tag":107,"props":5234,"children":5235},{},[5236],{"type":58,"value":5237},"Claude Code should find and list the warehouse connection you just set up.",{"type":52,"tag":4021,"props":5239,"children":5240},{},[5241],{"type":52,"tag":107,"props":5242,"children":5243},{},[5244,5249,5251,5257,5259,5265],{"type":52,"tag":218,"props":5245,"children":5246},{},[5247],{"type":58,"value":5248},"Using Cursor or Codex instead?",{"type":58,"value":5250}," For Cursor, add ",{"type":52,"tag":71,"props":5252,"children":5254},{"className":5253},[],[5255],{"type":58,"value":5256},"{\"mcpServers\": {\"bruin\": {\"command\": \"bruin\", \"args\": [\"mcp\"]}}}",{"type":58,"value":5258}," to your MCP settings. For Codex, run ",{"type":52,"tag":71,"props":5260,"children":5262},{"className":5261},[],[5263],{"type":58,"value":5264},"codex mcp add bruin -- bruin mcp",{"type":58,"value":5266},". The rest of this tutorial shows Claude Code prompts, but they work in any MCP-compatible tool.",{"type":52,"tag":131,"props":5268,"children":5270},{"id":5269},"_6-validate-with-claude-code",[5271],{"type":58,"value":5272},"6) Validate with Claude Code",{"type":52,"tag":107,"props":5274,"children":5275},{},[5276],{"type":58,"value":5277},"You can run the validation yourself:",{"type":52,"tag":150,"props":5279,"children":5281},{"className":152,"code":5280,"language":154,"meta":7,"style":7},"bruin validate .\n",[5282],{"type":52,"tag":71,"props":5283,"children":5284},{"__ignoreMap":7},[5285],{"type":52,"tag":160,"props":5286,"children":5287},{"class":162,"line":163},[5288,5292,5297],{"type":52,"tag":160,"props":5289,"children":5290},{"style":167},[5291],{"type":58,"value":170},{"type":52,"tag":160,"props":5293,"children":5294},{"style":173},[5295],{"type":58,"value":5296}," validate",{"type":52,"tag":160,"props":5298,"children":5299},{"style":173},[5300],{"type":58,"value":5301}," .\n",{"type":52,"tag":107,"props":5303,"children":5304},{},[5305],{"type":58,"value":5306},"Or just ask Claude Code to do it:",{"type":52,"tag":239,"props":5308,"children":5309},{},[5310],{"type":52,"tag":107,"props":5311,"children":5312},{},[5313],{"type":58,"value":5314},"Run bruin validate on this project and tell me if there are any issues.",{"type":52,"tag":107,"props":5316,"children":5317},{},[5318],{"type":58,"value":5319},"A clean validation means your project structure, pipeline config, and connections are all correct. From here on, you can use Claude Code to run any Bruin command, create files, and write SQL - we'll show you how at each step.",{"type":52,"tag":53,"props":5321,"children":5322},{"id":1999},[5323],{"type":58,"value":2002},{"type":52,"tag":107,"props":5325,"children":5326},{},[5327],{"type":58,"value":5328},"You have a Bruin project connected to your data warehouse with Claude Code and the Bruin MCP set up. Claude Code can now inspect your pipeline, query your data, fetch Bruin docs, and help you build assets. Next up, you'll use it to create ingestor assets that pull data from your Shopify store and surrounding tools into your warehouse.",{"type":52,"tag":2059,"props":5330,"children":5331},{},[5332],{"type":58,"value":2063},{"title":7,"searchDepth":281,"depth":281,"links":5334},[5335,5336,5337,5338,5346],{"id":55,"depth":281,"text":59},{"id":3893,"depth":281,"text":3896},{"id":102,"depth":281,"text":105},{"id":126,"depth":281,"text":129,"children":5339},[5340,5341,5342,5343,5344,5345],{"id":4042,"depth":290,"text":4045},{"id":4145,"depth":290,"text":4148},{"id":4216,"depth":290,"text":4219},{"id":4886,"depth":290,"text":4889},{"id":5162,"depth":290,"text":5165},{"id":5269,"depth":290,"text":5272},{"id":1999,"depth":281,"text":2002},"content:tutorials:ecommerce-pipeline:project-setup.md","tutorials\u002Fecommerce-pipeline\u002Fproject-setup.md","tutorials\u002Fecommerce-pipeline\u002Fproject-setup",{"_path":5351,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":5352,"description":5353,"date":10,"readingTime":395,"category":12,"tags":5354,"difficulty":3866,"module":5,"subSteps":26,"step":281,"variants":5365,"journeys":5367,"learnMore":5368,"author":5377,"body":5378,"_type":266,"_id":10010,"_source":2077,"_file":10011,"_stem":10012,"_extension":2080},"\u002Ftutorials\u002Fecommerce-pipeline\u002Fingest-data","Ingest Your Ecommerce Data","Connect your Shopify store and surrounding tools to Bruin, and create ingestor assets that pull data into your warehouse automatically.",[14,15,5355,18,5356,5357,5358,5359,5360,5361,5362,5363,5364,23],"Bruin Ingestr","Shopify","Stripe","Klaviyo","HubSpot","Facebook Ads","Google Ads","TikTok Ads","Google Analytics","Mixpanel",[5358,5359,5360,5361,5362,5366,5364],"GA4",[29,30],[5369,5372,5374],{"label":5370,"url":5371},"Ingestr asset reference","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fassets\u002Fingestr.html",{"label":5373,"url":3875},"Bruin connections",{"label":5375,"url":5376},"Incremental loading strategies","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fassets\u002Fingestr.html#incremental-strategies",{"name":45,"role":46,"image":47},{"type":49,"children":5379,"toc":9993},[5380,5384,5389,5393,5398,5412,5418,5423,5431,5436,5440,5446,5451,5604,5608,5614,5635,5639,5703,5710,5723,6332,6356,6359,6365,7105,7108,7114,7959,7962,7968,8982,8985,8991,9690,9693,9699,9704,9725,9730,9738,9743,9748,9791,9824,9844,9892,9897,9937,9943,9948,9956,9961,9969,9973,9984,9989],{"type":52,"tag":53,"props":5381,"children":5382},{"id":55},[5383],{"type":58,"value":59},{"type":52,"tag":107,"props":5385,"children":5386},{},[5387],{"type":58,"value":5388},"Create ingestor assets for your Shopify store and the tools around it. Each asset pulls data from a SaaS tool into your warehouse on schedule.",{"type":52,"tag":53,"props":5390,"children":5391},{"id":102},[5392],{"type":58,"value":105},{"type":52,"tag":107,"props":5394,"children":5395},{},[5396],{"type":58,"value":5397},"A Shopify store has data spread across many tools: orders and products in Shopify, payments in Stripe or Shopify Payments, email engagement in your marketing platform, ad performance in your ad platform, and website traffic in your analytics tool. Getting all of this into one warehouse is the foundation for every report you'll build later.",{"type":52,"tag":107,"props":5399,"children":5400},{},[5401,5403,5410],{"type":58,"value":5402},"Bruin's ingestor assets use ",{"type":52,"tag":1876,"props":5404,"children":5407},{"href":5405,"rel":5406},"https:\u002F\u002Fbruin-data.github.io\u002Fingestr\u002F",[1880],[5408],{"type":58,"value":5409},"ingestr",{"type":58,"value":5411}," under the hood - an open-source tool with 100+ built-in connectors. You define what to pull in a simple YAML file, and Bruin handles scheduling, incremental loading, and dependency management.",{"type":52,"tag":131,"props":5413,"children":5415},{"id":5414},"let-claude-code-create-the-asset-files",[5416],{"type":58,"value":5417},"Let Claude Code create the asset files",{"type":52,"tag":107,"props":5419,"children":5420},{},[5421],{"type":58,"value":5422},"You can create each ingestor asset file manually (shown below), or ask Claude Code to do it for you:",{"type":52,"tag":239,"props":5424,"children":5425},{},[5426],{"type":52,"tag":107,"props":5427,"children":5428},{},[5429],{"type":58,"value":5430},"Look at the Bruin ingestr docs and create ingestor assets for Shopify orders, customers, products, and inventory_levels. Use merge strategy with updated_at for the first three, and replace for inventory. Use my warehouse connection as destination. Put them in ecommerce\u002Fassets\u002F.",{"type":52,"tag":107,"props":5432,"children":5433},{},[5434],{"type":58,"value":5435},"Below we show the files so you can see what they look like, but feel free to have Claude Code generate them.",{"type":52,"tag":53,"props":5437,"children":5438},{"id":126},[5439],{"type":58,"value":129},{"type":52,"tag":131,"props":5441,"children":5443},{"id":5442},"optional-install-source-mcps",[5444],{"type":58,"value":5445},"Optional: install source MCPs",{"type":52,"tag":107,"props":5447,"children":5448},{},[5449],{"type":58,"value":5450},"These platforms offer their own MCP servers that let Claude Code explore available tables and schemas before you write ingestor assets. Not required, but useful.",{"type":52,"tag":253,"props":5452,"children":5454},{":variants":5453},"[{\"id\":\"shopify-mcp\",\"label\":\"Shopify\"},{\"id\":\"stripe-mcp\",\"label\":\"Stripe\"},{\"id\":\"klaviyo-mcp\",\"label\":\"Klaviyo\"},{\"id\":\"facebook-mcp\",\"label\":\"Facebook Ads\"},{\"id\":\"ga4-mcp\",\"label\":\"GA4\"}]",[5455,5488,5530,5552,5584],{"type":52,"tag":259,"props":5456,"children":5457},{"v-slot:shopify-mcp":7},[5458,5468],{"type":52,"tag":107,"props":5459,"children":5460},{},[5461],{"type":52,"tag":1876,"props":5462,"children":5465},{"href":5463,"rel":5464},"https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapps\u002Fbuild\u002Fdevmcp",[1880],[5466],{"type":58,"value":5467},"Official Dev MCP",{"type":52,"tag":150,"props":5469,"children":5471},{"className":152,"code":5470,"language":154,"meta":7,"style":7},"npx @shopify\u002Fdev-mcp@latest\n",[5472],{"type":52,"tag":71,"props":5473,"children":5474},{"__ignoreMap":7},[5475],{"type":52,"tag":160,"props":5476,"children":5477},{"class":162,"line":163},[5478,5483],{"type":52,"tag":160,"props":5479,"children":5480},{"style":167},[5481],{"type":58,"value":5482},"npx",{"type":52,"tag":160,"props":5484,"children":5485},{"style":173},[5486],{"type":58,"value":5487}," @shopify\u002Fdev-mcp@latest\n",{"type":52,"tag":259,"props":5489,"children":5490},{"v-slot:stripe-mcp":7},[5491,5501],{"type":52,"tag":107,"props":5492,"children":5493},{},[5494],{"type":52,"tag":1876,"props":5495,"children":5498},{"href":5496,"rel":5497},"https:\u002F\u002Fdocs.stripe.com\u002Fmcp",[1880],[5499],{"type":58,"value":5500},"Official MCP",{"type":52,"tag":150,"props":5502,"children":5504},{"className":152,"code":5503,"language":154,"meta":7,"style":7},"npx -y @stripe\u002Fmcp --api-key=sk_...\n",[5505],{"type":52,"tag":71,"props":5506,"children":5507},{"__ignoreMap":7},[5508],{"type":52,"tag":160,"props":5509,"children":5510},{"class":162,"line":163},[5511,5515,5520,5525],{"type":52,"tag":160,"props":5512,"children":5513},{"style":167},[5514],{"type":58,"value":5482},{"type":52,"tag":160,"props":5516,"children":5517},{"style":1771},[5518],{"type":58,"value":5519}," -y",{"type":52,"tag":160,"props":5521,"children":5522},{"style":173},[5523],{"type":58,"value":5524}," @stripe\u002Fmcp",{"type":52,"tag":160,"props":5526,"children":5527},{"style":1771},[5528],{"type":58,"value":5529}," --api-key=sk_...\n",{"type":52,"tag":259,"props":5531,"children":5532},{"v-slot:klaviyo-mcp":7},[5533],{"type":52,"tag":107,"props":5534,"children":5535},{},[5536,5542,5544,5550],{"type":52,"tag":1876,"props":5537,"children":5540},{"href":5538,"rel":5539},"https:\u002F\u002Fdevelopers.klaviyo.com\u002Fen\u002Fdocs\u002Fklaviyo_mcp_server",[1880],[5541],{"type":58,"value":5500},{"type":58,"value":5543}," - see ",{"type":52,"tag":1876,"props":5545,"children":5547},{"href":5538,"rel":5546},[1880],[5548],{"type":58,"value":5549},"Klaviyo MCP docs",{"type":58,"value":5551}," for setup.",{"type":52,"tag":259,"props":5553,"children":5554},{"v-slot:facebook-mcp":7},[5555,5565],{"type":52,"tag":107,"props":5556,"children":5557},{},[5558],{"type":52,"tag":1876,"props":5559,"children":5562},{"href":5560,"rel":5561},"https:\u002F\u002Fgithub.com\u002Fpipeboard-co\u002Fmeta-ads-mcp",[1880],[5563],{"type":58,"value":5564},"Community MCP",{"type":52,"tag":150,"props":5566,"children":5568},{"className":152,"code":5567,"language":154,"meta":7,"style":7},"npx meta-ads-mcp@latest\n",[5569],{"type":52,"tag":71,"props":5570,"children":5571},{"__ignoreMap":7},[5572],{"type":52,"tag":160,"props":5573,"children":5574},{"class":162,"line":163},[5575,5579],{"type":52,"tag":160,"props":5576,"children":5577},{"style":167},[5578],{"type":58,"value":5482},{"type":52,"tag":160,"props":5580,"children":5581},{"style":173},[5582],{"type":58,"value":5583}," meta-ads-mcp@latest\n",{"type":52,"tag":259,"props":5585,"children":5586},{"v-slot:ga4-mcp":7},[5587],{"type":52,"tag":107,"props":5588,"children":5589},{},[5590,5596,5597,5603],{"type":52,"tag":1876,"props":5591,"children":5594},{"href":5592,"rel":5593},"https:\u002F\u002Fdevelopers.google.com\u002Fanalytics\u002Fdevguides\u002FMCP",[1880],[5595],{"type":58,"value":5500},{"type":58,"value":5543},{"type":52,"tag":1876,"props":5598,"children":5600},{"href":5592,"rel":5599},[1880],[5601],{"type":58,"value":5602},"Google Analytics MCP docs",{"type":58,"value":5551},{"type":52,"tag":5605,"props":5606,"children":5607},"hr",{},[],{"type":52,"tag":131,"props":5609,"children":5611},{"id":5610},"add-the-shopify-connection",[5612],{"type":58,"value":5613},"Add the Shopify connection",{"type":52,"tag":150,"props":5615,"children":5616},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[5617],{"type":52,"tag":71,"props":5618,"children":5619},{"__ignoreMap":7},[5620],{"type":52,"tag":160,"props":5621,"children":5622},{"class":162,"line":163},[5623,5627,5631],{"type":52,"tag":160,"props":5624,"children":5625},{"style":167},[5626],{"type":58,"value":170},{"type":52,"tag":160,"props":5628,"children":5629},{"style":173},[5630],{"type":58,"value":4292},{"type":52,"tag":160,"props":5632,"children":5633},{"style":173},[5634],{"type":58,"value":4297},{"type":52,"tag":107,"props":5636,"children":5637},{},[5638],{"type":58,"value":4302},{"type":52,"tag":2004,"props":5640,"children":5641},{},[5642,5656,5669,5686],{"type":52,"tag":65,"props":5643,"children":5644},{},[5645,5649,5650],{"type":52,"tag":218,"props":5646,"children":5647},{},[5648],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":5651,"children":5653},{"className":5652},[],[5654],{"type":58,"value":5655},"shopify",{"type":52,"tag":65,"props":5657,"children":5658},{},[5659,5663,5664],{"type":52,"tag":218,"props":5660,"children":5661},{},[5662],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":5665,"children":5667},{"className":5666},[],[5668],{"type":58,"value":5655},{"type":52,"tag":65,"props":5670,"children":5671},{},[5672,5677,5679],{"type":52,"tag":218,"props":5673,"children":5674},{},[5675],{"type":58,"value":5676},"API key, API secret, access token:",{"type":58,"value":5678}," from your ",{"type":52,"tag":1876,"props":5680,"children":5683},{"href":5681,"rel":5682},"https:\u002F\u002Fshopify.dev\u002Fdocs\u002Fapps\u002Fgetting-started",[1880],[5684],{"type":58,"value":5685},"Shopify app credentials",{"type":52,"tag":65,"props":5687,"children":5688},{},[5689,5694,5696,5702],{"type":52,"tag":218,"props":5690,"children":5691},{},[5692],{"type":58,"value":5693},"Shop:",{"type":58,"value":5695}," your store name (without ",{"type":52,"tag":71,"props":5697,"children":5699},{"className":5698},[],[5700],{"type":58,"value":5701},".myshopify.com",{"type":58,"value":4799},{"type":52,"tag":5704,"props":5705,"children":5707},"h4",{"id":5706},"create-ingestor-assets",[5708],{"type":58,"value":5709},"Create ingestor assets",{"type":52,"tag":107,"props":5711,"children":5712},{},[5713,5715,5721],{"type":58,"value":5714},"Create a file for each table you want to ingest. These go in your ",{"type":52,"tag":71,"props":5716,"children":5718},{"className":5717},[],[5719],{"type":58,"value":5720},"ecommerce\u002Fassets\u002F",{"type":58,"value":5722}," folder.",{"type":52,"tag":253,"props":5724,"children":5726},{":variants":5725},"[{\"id\":\"shopify-orders\",\"label\":\"Orders\"},{\"id\":\"shopify-customers\",\"label\":\"Customers\"},{\"id\":\"shopify-products\",\"label\":\"Products\"},{\"id\":\"shopify-inventory\",\"label\":\"Inventory\"}]",[5727,5896,6051,6206],{"type":52,"tag":259,"props":5728,"children":5729},{"v-slot:shopify-orders":7},[5730,5742],{"type":52,"tag":107,"props":5731,"children":5732},{},[5733],{"type":52,"tag":218,"props":5734,"children":5735},{},[5736],{"type":52,"tag":71,"props":5737,"children":5739},{"className":5738},[],[5740],{"type":58,"value":5741},"ecommerce\u002Fassets\u002Fshopify_orders.asset.yml",{"type":52,"tag":150,"props":5743,"children":5745},{"className":4558,"code":5744,"language":4560,"meta":7,"style":7},"name: raw.shopify_orders\ntype: ingestr\nparameters:\n  source_connection: shopify\n  source_table: orders\n  loader_file_format: jsonl\n  incremental_strategy: merge\n  incremental_key: updated_at\n  primary_key: id\n",[5746],{"type":52,"tag":71,"props":5747,"children":5748},{"__ignoreMap":7},[5749,5765,5782,5794,5811,5828,5845,5862,5879],{"type":52,"tag":160,"props":5750,"children":5751},{"class":162,"line":163},[5752,5756,5760],{"type":52,"tag":160,"props":5753,"children":5754},{"style":4570},[5755],{"type":58,"value":4627},{"type":52,"tag":160,"props":5757,"children":5758},{"style":4080},[5759],{"type":58,"value":4632},{"type":52,"tag":160,"props":5761,"children":5762},{"style":173},[5763],{"type":58,"value":5764},"raw.shopify_orders\n",{"type":52,"tag":160,"props":5766,"children":5767},{"class":162,"line":281},[5768,5773,5777],{"type":52,"tag":160,"props":5769,"children":5770},{"style":4570},[5771],{"type":58,"value":5772},"type",{"type":52,"tag":160,"props":5774,"children":5775},{"style":4080},[5776],{"type":58,"value":4632},{"type":52,"tag":160,"props":5778,"children":5779},{"style":173},[5780],{"type":58,"value":5781},"ingestr\n",{"type":52,"tag":160,"props":5783,"children":5784},{"class":162,"line":290},[5785,5790],{"type":52,"tag":160,"props":5786,"children":5787},{"style":4570},[5788],{"type":58,"value":5789},"parameters",{"type":52,"tag":160,"props":5791,"children":5792},{"style":4080},[5793],{"type":58,"value":4578},{"type":52,"tag":160,"props":5795,"children":5796},{"class":162,"line":299},[5797,5802,5806],{"type":52,"tag":160,"props":5798,"children":5799},{"style":4570},[5800],{"type":58,"value":5801},"  source_connection",{"type":52,"tag":160,"props":5803,"children":5804},{"style":4080},[5805],{"type":58,"value":4632},{"type":52,"tag":160,"props":5807,"children":5808},{"style":173},[5809],{"type":58,"value":5810},"shopify\n",{"type":52,"tag":160,"props":5812,"children":5813},{"class":162,"line":27},[5814,5819,5823],{"type":52,"tag":160,"props":5815,"children":5816},{"style":4570},[5817],{"type":58,"value":5818},"  source_table",{"type":52,"tag":160,"props":5820,"children":5821},{"style":4080},[5822],{"type":58,"value":4632},{"type":52,"tag":160,"props":5824,"children":5825},{"style":173},[5826],{"type":58,"value":5827},"orders\n",{"type":52,"tag":160,"props":5829,"children":5830},{"class":162,"line":316},[5831,5836,5840],{"type":52,"tag":160,"props":5832,"children":5833},{"style":4570},[5834],{"type":58,"value":5835},"  loader_file_format",{"type":52,"tag":160,"props":5837,"children":5838},{"style":4080},[5839],{"type":58,"value":4632},{"type":52,"tag":160,"props":5841,"children":5842},{"style":173},[5843],{"type":58,"value":5844},"jsonl\n",{"type":52,"tag":160,"props":5846,"children":5847},{"class":162,"line":325},[5848,5853,5857],{"type":52,"tag":160,"props":5849,"children":5850},{"style":4570},[5851],{"type":58,"value":5852},"  incremental_strategy",{"type":52,"tag":160,"props":5854,"children":5855},{"style":4080},[5856],{"type":58,"value":4632},{"type":52,"tag":160,"props":5858,"children":5859},{"style":173},[5860],{"type":58,"value":5861},"merge\n",{"type":52,"tag":160,"props":5863,"children":5864},{"class":162,"line":334},[5865,5870,5874],{"type":52,"tag":160,"props":5866,"children":5867},{"style":4570},[5868],{"type":58,"value":5869},"  incremental_key",{"type":52,"tag":160,"props":5871,"children":5872},{"style":4080},[5873],{"type":58,"value":4632},{"type":52,"tag":160,"props":5875,"children":5876},{"style":173},[5877],{"type":58,"value":5878},"updated_at\n",{"type":52,"tag":160,"props":5880,"children":5881},{"class":162,"line":343},[5882,5887,5891],{"type":52,"tag":160,"props":5883,"children":5884},{"style":4570},[5885],{"type":58,"value":5886},"  primary_key",{"type":52,"tag":160,"props":5888,"children":5889},{"style":4080},[5890],{"type":58,"value":4632},{"type":52,"tag":160,"props":5892,"children":5893},{"style":173},[5894],{"type":58,"value":5895},"id\n",{"type":52,"tag":259,"props":5897,"children":5898},{"v-slot:shopify-customers":7},[5899,5911],{"type":52,"tag":107,"props":5900,"children":5901},{},[5902],{"type":52,"tag":218,"props":5903,"children":5904},{},[5905],{"type":52,"tag":71,"props":5906,"children":5908},{"className":5907},[],[5909],{"type":58,"value":5910},"ecommerce\u002Fassets\u002Fshopify_customers.asset.yml",{"type":52,"tag":150,"props":5912,"children":5914},{"className":4558,"code":5913,"language":4560,"meta":7,"style":7},"name: raw.shopify_customers\ntype: ingestr\nparameters:\n  source_connection: shopify\n  source_table: customers\n  loader_file_format: jsonl\n  incremental_strategy: merge\n  incremental_key: updated_at\n  primary_key: id\n",[5915],{"type":52,"tag":71,"props":5916,"children":5917},{"__ignoreMap":7},[5918,5934,5949,5960,5975,5991,6006,6021,6036],{"type":52,"tag":160,"props":5919,"children":5920},{"class":162,"line":163},[5921,5925,5929],{"type":52,"tag":160,"props":5922,"children":5923},{"style":4570},[5924],{"type":58,"value":4627},{"type":52,"tag":160,"props":5926,"children":5927},{"style":4080},[5928],{"type":58,"value":4632},{"type":52,"tag":160,"props":5930,"children":5931},{"style":173},[5932],{"type":58,"value":5933},"raw.shopify_customers\n",{"type":52,"tag":160,"props":5935,"children":5936},{"class":162,"line":281},[5937,5941,5945],{"type":52,"tag":160,"props":5938,"children":5939},{"style":4570},[5940],{"type":58,"value":5772},{"type":52,"tag":160,"props":5942,"children":5943},{"style":4080},[5944],{"type":58,"value":4632},{"type":52,"tag":160,"props":5946,"children":5947},{"style":173},[5948],{"type":58,"value":5781},{"type":52,"tag":160,"props":5950,"children":5951},{"class":162,"line":290},[5952,5956],{"type":52,"tag":160,"props":5953,"children":5954},{"style":4570},[5955],{"type":58,"value":5789},{"type":52,"tag":160,"props":5957,"children":5958},{"style":4080},[5959],{"type":58,"value":4578},{"type":52,"tag":160,"props":5961,"children":5962},{"class":162,"line":299},[5963,5967,5971],{"type":52,"tag":160,"props":5964,"children":5965},{"style":4570},[5966],{"type":58,"value":5801},{"type":52,"tag":160,"props":5968,"children":5969},{"style":4080},[5970],{"type":58,"value":4632},{"type":52,"tag":160,"props":5972,"children":5973},{"style":173},[5974],{"type":58,"value":5810},{"type":52,"tag":160,"props":5976,"children":5977},{"class":162,"line":27},[5978,5982,5986],{"type":52,"tag":160,"props":5979,"children":5980},{"style":4570},[5981],{"type":58,"value":5818},{"type":52,"tag":160,"props":5983,"children":5984},{"style":4080},[5985],{"type":58,"value":4632},{"type":52,"tag":160,"props":5987,"children":5988},{"style":173},[5989],{"type":58,"value":5990},"customers\n",{"type":52,"tag":160,"props":5992,"children":5993},{"class":162,"line":316},[5994,5998,6002],{"type":52,"tag":160,"props":5995,"children":5996},{"style":4570},[5997],{"type":58,"value":5835},{"type":52,"tag":160,"props":5999,"children":6000},{"style":4080},[6001],{"type":58,"value":4632},{"type":52,"tag":160,"props":6003,"children":6004},{"style":173},[6005],{"type":58,"value":5844},{"type":52,"tag":160,"props":6007,"children":6008},{"class":162,"line":325},[6009,6013,6017],{"type":52,"tag":160,"props":6010,"children":6011},{"style":4570},[6012],{"type":58,"value":5852},{"type":52,"tag":160,"props":6014,"children":6015},{"style":4080},[6016],{"type":58,"value":4632},{"type":52,"tag":160,"props":6018,"children":6019},{"style":173},[6020],{"type":58,"value":5861},{"type":52,"tag":160,"props":6022,"children":6023},{"class":162,"line":334},[6024,6028,6032],{"type":52,"tag":160,"props":6025,"children":6026},{"style":4570},[6027],{"type":58,"value":5869},{"type":52,"tag":160,"props":6029,"children":6030},{"style":4080},[6031],{"type":58,"value":4632},{"type":52,"tag":160,"props":6033,"children":6034},{"style":173},[6035],{"type":58,"value":5878},{"type":52,"tag":160,"props":6037,"children":6038},{"class":162,"line":343},[6039,6043,6047],{"type":52,"tag":160,"props":6040,"children":6041},{"style":4570},[6042],{"type":58,"value":5886},{"type":52,"tag":160,"props":6044,"children":6045},{"style":4080},[6046],{"type":58,"value":4632},{"type":52,"tag":160,"props":6048,"children":6049},{"style":173},[6050],{"type":58,"value":5895},{"type":52,"tag":259,"props":6052,"children":6053},{"v-slot:shopify-products":7},[6054,6066],{"type":52,"tag":107,"props":6055,"children":6056},{},[6057],{"type":52,"tag":218,"props":6058,"children":6059},{},[6060],{"type":52,"tag":71,"props":6061,"children":6063},{"className":6062},[],[6064],{"type":58,"value":6065},"ecommerce\u002Fassets\u002Fshopify_products.asset.yml",{"type":52,"tag":150,"props":6067,"children":6069},{"className":4558,"code":6068,"language":4560,"meta":7,"style":7},"name: raw.shopify_products\ntype: ingestr\nparameters:\n  source_connection: shopify\n  source_table: products\n  loader_file_format: jsonl\n  incremental_strategy: merge\n  incremental_key: updated_at\n  primary_key: id\n",[6070],{"type":52,"tag":71,"props":6071,"children":6072},{"__ignoreMap":7},[6073,6089,6104,6115,6130,6146,6161,6176,6191],{"type":52,"tag":160,"props":6074,"children":6075},{"class":162,"line":163},[6076,6080,6084],{"type":52,"tag":160,"props":6077,"children":6078},{"style":4570},[6079],{"type":58,"value":4627},{"type":52,"tag":160,"props":6081,"children":6082},{"style":4080},[6083],{"type":58,"value":4632},{"type":52,"tag":160,"props":6085,"children":6086},{"style":173},[6087],{"type":58,"value":6088},"raw.shopify_products\n",{"type":52,"tag":160,"props":6090,"children":6091},{"class":162,"line":281},[6092,6096,6100],{"type":52,"tag":160,"props":6093,"children":6094},{"style":4570},[6095],{"type":58,"value":5772},{"type":52,"tag":160,"props":6097,"children":6098},{"style":4080},[6099],{"type":58,"value":4632},{"type":52,"tag":160,"props":6101,"children":6102},{"style":173},[6103],{"type":58,"value":5781},{"type":52,"tag":160,"props":6105,"children":6106},{"class":162,"line":290},[6107,6111],{"type":52,"tag":160,"props":6108,"children":6109},{"style":4570},[6110],{"type":58,"value":5789},{"type":52,"tag":160,"props":6112,"children":6113},{"style":4080},[6114],{"type":58,"value":4578},{"type":52,"tag":160,"props":6116,"children":6117},{"class":162,"line":299},[6118,6122,6126],{"type":52,"tag":160,"props":6119,"children":6120},{"style":4570},[6121],{"type":58,"value":5801},{"type":52,"tag":160,"props":6123,"children":6124},{"style":4080},[6125],{"type":58,"value":4632},{"type":52,"tag":160,"props":6127,"children":6128},{"style":173},[6129],{"type":58,"value":5810},{"type":52,"tag":160,"props":6131,"children":6132},{"class":162,"line":27},[6133,6137,6141],{"type":52,"tag":160,"props":6134,"children":6135},{"style":4570},[6136],{"type":58,"value":5818},{"type":52,"tag":160,"props":6138,"children":6139},{"style":4080},[6140],{"type":58,"value":4632},{"type":52,"tag":160,"props":6142,"children":6143},{"style":173},[6144],{"type":58,"value":6145},"products\n",{"type":52,"tag":160,"props":6147,"children":6148},{"class":162,"line":316},[6149,6153,6157],{"type":52,"tag":160,"props":6150,"children":6151},{"style":4570},[6152],{"type":58,"value":5835},{"type":52,"tag":160,"props":6154,"children":6155},{"style":4080},[6156],{"type":58,"value":4632},{"type":52,"tag":160,"props":6158,"children":6159},{"style":173},[6160],{"type":58,"value":5844},{"type":52,"tag":160,"props":6162,"children":6163},{"class":162,"line":325},[6164,6168,6172],{"type":52,"tag":160,"props":6165,"children":6166},{"style":4570},[6167],{"type":58,"value":5852},{"type":52,"tag":160,"props":6169,"children":6170},{"style":4080},[6171],{"type":58,"value":4632},{"type":52,"tag":160,"props":6173,"children":6174},{"style":173},[6175],{"type":58,"value":5861},{"type":52,"tag":160,"props":6177,"children":6178},{"class":162,"line":334},[6179,6183,6187],{"type":52,"tag":160,"props":6180,"children":6181},{"style":4570},[6182],{"type":58,"value":5869},{"type":52,"tag":160,"props":6184,"children":6185},{"style":4080},[6186],{"type":58,"value":4632},{"type":52,"tag":160,"props":6188,"children":6189},{"style":173},[6190],{"type":58,"value":5878},{"type":52,"tag":160,"props":6192,"children":6193},{"class":162,"line":343},[6194,6198,6202],{"type":52,"tag":160,"props":6195,"children":6196},{"style":4570},[6197],{"type":58,"value":5886},{"type":52,"tag":160,"props":6199,"children":6200},{"style":4080},[6201],{"type":58,"value":4632},{"type":52,"tag":160,"props":6203,"children":6204},{"style":173},[6205],{"type":58,"value":5895},{"type":52,"tag":259,"props":6207,"children":6208},{"v-slot:shopify-inventory":7},[6209,6221],{"type":52,"tag":107,"props":6210,"children":6211},{},[6212],{"type":52,"tag":218,"props":6213,"children":6214},{},[6215],{"type":52,"tag":71,"props":6216,"children":6218},{"className":6217},[],[6219],{"type":58,"value":6220},"ecommerce\u002Fassets\u002Fshopify_inventory.asset.yml",{"type":52,"tag":150,"props":6222,"children":6224},{"className":4558,"code":6223,"language":4560,"meta":7,"style":7},"name: raw.shopify_inventory\ntype: ingestr\nparameters:\n  source_connection: shopify\n  source_table: inventory_levels\n  loader_file_format: jsonl\n  incremental_strategy: replace\n",[6225],{"type":52,"tag":71,"props":6226,"children":6227},{"__ignoreMap":7},[6228,6244,6259,6270,6285,6301,6316],{"type":52,"tag":160,"props":6229,"children":6230},{"class":162,"line":163},[6231,6235,6239],{"type":52,"tag":160,"props":6232,"children":6233},{"style":4570},[6234],{"type":58,"value":4627},{"type":52,"tag":160,"props":6236,"children":6237},{"style":4080},[6238],{"type":58,"value":4632},{"type":52,"tag":160,"props":6240,"children":6241},{"style":173},[6242],{"type":58,"value":6243},"raw.shopify_inventory\n",{"type":52,"tag":160,"props":6245,"children":6246},{"class":162,"line":281},[6247,6251,6255],{"type":52,"tag":160,"props":6248,"children":6249},{"style":4570},[6250],{"type":58,"value":5772},{"type":52,"tag":160,"props":6252,"children":6253},{"style":4080},[6254],{"type":58,"value":4632},{"type":52,"tag":160,"props":6256,"children":6257},{"style":173},[6258],{"type":58,"value":5781},{"type":52,"tag":160,"props":6260,"children":6261},{"class":162,"line":290},[6262,6266],{"type":52,"tag":160,"props":6263,"children":6264},{"style":4570},[6265],{"type":58,"value":5789},{"type":52,"tag":160,"props":6267,"children":6268},{"style":4080},[6269],{"type":58,"value":4578},{"type":52,"tag":160,"props":6271,"children":6272},{"class":162,"line":299},[6273,6277,6281],{"type":52,"tag":160,"props":6274,"children":6275},{"style":4570},[6276],{"type":58,"value":5801},{"type":52,"tag":160,"props":6278,"children":6279},{"style":4080},[6280],{"type":58,"value":4632},{"type":52,"tag":160,"props":6282,"children":6283},{"style":173},[6284],{"type":58,"value":5810},{"type":52,"tag":160,"props":6286,"children":6287},{"class":162,"line":27},[6288,6292,6296],{"type":52,"tag":160,"props":6289,"children":6290},{"style":4570},[6291],{"type":58,"value":5818},{"type":52,"tag":160,"props":6293,"children":6294},{"style":4080},[6295],{"type":58,"value":4632},{"type":52,"tag":160,"props":6297,"children":6298},{"style":173},[6299],{"type":58,"value":6300},"inventory_levels\n",{"type":52,"tag":160,"props":6302,"children":6303},{"class":162,"line":316},[6304,6308,6312],{"type":52,"tag":160,"props":6305,"children":6306},{"style":4570},[6307],{"type":58,"value":5835},{"type":52,"tag":160,"props":6309,"children":6310},{"style":4080},[6311],{"type":58,"value":4632},{"type":52,"tag":160,"props":6313,"children":6314},{"style":173},[6315],{"type":58,"value":5844},{"type":52,"tag":160,"props":6317,"children":6318},{"class":162,"line":325},[6319,6323,6327],{"type":52,"tag":160,"props":6320,"children":6321},{"style":4570},[6322],{"type":58,"value":5852},{"type":52,"tag":160,"props":6324,"children":6325},{"style":4080},[6326],{"type":58,"value":4632},{"type":52,"tag":160,"props":6328,"children":6329},{"style":173},[6330],{"type":58,"value":6331},"replace\n",{"type":52,"tag":4021,"props":6333,"children":6335},{"type":6334},"tip",[6336],{"type":52,"tag":107,"props":6337,"children":6338},{},[6339,6341,6347,6349,6355],{"type":58,"value":6340},"If you installed the Shopify MCP, ask Claude Code to list all available Shopify tables and preview the schema for each one. This helps you decide if you want to ingest additional tables like ",{"type":52,"tag":71,"props":6342,"children":6344},{"className":6343},[],[6345],{"type":58,"value":6346},"transactions",{"type":58,"value":6348}," or ",{"type":52,"tag":71,"props":6350,"children":6352},{"className":6351},[],[6353],{"type":58,"value":6354},"fulfillments",{"type":58,"value":3931},{"type":52,"tag":5605,"props":6357,"children":6358},{},[],{"type":52,"tag":131,"props":6360,"children":6362},{"id":6361},"payments",[6363],{"type":58,"value":6364},"Payments",{"type":52,"tag":253,"props":6366,"children":6368},{":variants":6367,"group":6361},"[{\"id\":\"shopify-payments\",\"label\":\"Shopify Payments\"},{\"id\":\"stripe\",\"label\":\"Stripe\"}]",[6369,6410],{"type":52,"tag":259,"props":6370,"children":6371},{"v-slot:shopify-payments":7},[6372,6378,6398],{"type":52,"tag":5704,"props":6373,"children":6375},{"id":6374},"shopify-payments",[6376],{"type":58,"value":6377},"Shopify Payments",{"type":52,"tag":107,"props":6379,"children":6380},{},[6381,6383,6389,6390,6396],{"type":58,"value":6382},"If you use Shopify Payments, your payment data is already included in Shopify's order data - the ",{"type":52,"tag":71,"props":6384,"children":6386},{"className":6385},[],[6387],{"type":58,"value":6388},"financial_status",{"type":58,"value":3976},{"type":52,"tag":71,"props":6391,"children":6393},{"className":6392},[],[6394],{"type":58,"value":6395},"total_price",{"type":58,"value":6397},", and transaction fields are all part of the orders you just ingested. No extra connection or assets needed here.",{"type":52,"tag":107,"props":6399,"children":6400},{},[6401,6403,6409],{"type":58,"value":6402},"The staging layer in Step 3 will pull payment details directly from ",{"type":52,"tag":71,"props":6404,"children":6406},{"className":6405},[],[6407],{"type":58,"value":6408},"raw.shopify_orders",{"type":58,"value":3931},{"type":52,"tag":259,"props":6411,"children":6412},{"v-slot:stripe":7},[6413,6418,6423,6431,6452,6456,6502,6510,7075],{"type":52,"tag":5704,"props":6414,"children":6416},{"id":6415},"stripe",[6417],{"type":58,"value":5357},{"type":52,"tag":107,"props":6419,"children":6420},{},[6421],{"type":58,"value":6422},"If you use Stripe as a separate payment processor, you'll want to ingest charge, refund, and payout data separately. This gives you more granular financial data than what Shopify includes in its orders.",{"type":52,"tag":107,"props":6424,"children":6425},{},[6426],{"type":52,"tag":218,"props":6427,"children":6428},{},[6429],{"type":58,"value":6430},"Add the Stripe connection:",{"type":52,"tag":150,"props":6432,"children":6433},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[6434],{"type":52,"tag":71,"props":6435,"children":6436},{"__ignoreMap":7},[6437],{"type":52,"tag":160,"props":6438,"children":6439},{"class":162,"line":163},[6440,6444,6448],{"type":52,"tag":160,"props":6441,"children":6442},{"style":167},[6443],{"type":58,"value":170},{"type":52,"tag":160,"props":6445,"children":6446},{"style":173},[6447],{"type":58,"value":4292},{"type":52,"tag":160,"props":6449,"children":6450},{"style":173},[6451],{"type":58,"value":4297},{"type":52,"tag":107,"props":6453,"children":6454},{},[6455],{"type":58,"value":4302},{"type":52,"tag":2004,"props":6457,"children":6458},{},[6459,6472,6485],{"type":52,"tag":65,"props":6460,"children":6461},{},[6462,6466,6467],{"type":52,"tag":218,"props":6463,"children":6464},{},[6465],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":6468,"children":6470},{"className":6469},[],[6471],{"type":58,"value":6415},{"type":52,"tag":65,"props":6473,"children":6474},{},[6475,6479,6480],{"type":52,"tag":218,"props":6476,"children":6477},{},[6478],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":6481,"children":6483},{"className":6482},[],[6484],{"type":58,"value":6415},{"type":52,"tag":65,"props":6486,"children":6487},{},[6488,6493,6495,6501],{"type":52,"tag":218,"props":6489,"children":6490},{},[6491],{"type":58,"value":6492},"API key:",{"type":58,"value":6494}," your Stripe secret key (starts with ",{"type":52,"tag":71,"props":6496,"children":6498},{"className":6497},[],[6499],{"type":58,"value":6500},"sk_",{"type":58,"value":4799},{"type":52,"tag":107,"props":6503,"children":6504},{},[6505],{"type":52,"tag":218,"props":6506,"children":6507},{},[6508],{"type":58,"value":6509},"Create ingestor assets:",{"type":52,"tag":253,"props":6511,"children":6513},{":variants":6512},"[{\"id\":\"stripe-charges\",\"label\":\"Charges\"},{\"id\":\"stripe-refunds\",\"label\":\"Refunds\"},{\"id\":\"stripe-customers\",\"label\":\"Customers\"},{\"id\":\"stripe-payouts\",\"label\":\"Payouts\"}]",[6514,6656,6796,6935],{"type":52,"tag":259,"props":6515,"children":6516},{"v-slot:stripe-charges":7},[6517,6529],{"type":52,"tag":107,"props":6518,"children":6519},{},[6520],{"type":52,"tag":218,"props":6521,"children":6522},{},[6523],{"type":52,"tag":71,"props":6524,"children":6526},{"className":6525},[],[6527],{"type":58,"value":6528},"ecommerce\u002Fassets\u002Fstripe_charges.asset.yml",{"type":52,"tag":150,"props":6530,"children":6532},{"className":4558,"code":6531,"language":4560,"meta":7,"style":7},"name: raw.stripe_charges\ntype: ingestr\nparameters:\n  source_connection: stripe\n  source_table: charges\n  incremental_strategy: merge\n  incremental_key: created\n  primary_key: id\n",[6533],{"type":52,"tag":71,"props":6534,"children":6535},{"__ignoreMap":7},[6536,6552,6567,6578,6594,6610,6625,6641],{"type":52,"tag":160,"props":6537,"children":6538},{"class":162,"line":163},[6539,6543,6547],{"type":52,"tag":160,"props":6540,"children":6541},{"style":4570},[6542],{"type":58,"value":4627},{"type":52,"tag":160,"props":6544,"children":6545},{"style":4080},[6546],{"type":58,"value":4632},{"type":52,"tag":160,"props":6548,"children":6549},{"style":173},[6550],{"type":58,"value":6551},"raw.stripe_charges\n",{"type":52,"tag":160,"props":6553,"children":6554},{"class":162,"line":281},[6555,6559,6563],{"type":52,"tag":160,"props":6556,"children":6557},{"style":4570},[6558],{"type":58,"value":5772},{"type":52,"tag":160,"props":6560,"children":6561},{"style":4080},[6562],{"type":58,"value":4632},{"type":52,"tag":160,"props":6564,"children":6565},{"style":173},[6566],{"type":58,"value":5781},{"type":52,"tag":160,"props":6568,"children":6569},{"class":162,"line":290},[6570,6574],{"type":52,"tag":160,"props":6571,"children":6572},{"style":4570},[6573],{"type":58,"value":5789},{"type":52,"tag":160,"props":6575,"children":6576},{"style":4080},[6577],{"type":58,"value":4578},{"type":52,"tag":160,"props":6579,"children":6580},{"class":162,"line":299},[6581,6585,6589],{"type":52,"tag":160,"props":6582,"children":6583},{"style":4570},[6584],{"type":58,"value":5801},{"type":52,"tag":160,"props":6586,"children":6587},{"style":4080},[6588],{"type":58,"value":4632},{"type":52,"tag":160,"props":6590,"children":6591},{"style":173},[6592],{"type":58,"value":6593},"stripe\n",{"type":52,"tag":160,"props":6595,"children":6596},{"class":162,"line":27},[6597,6601,6605],{"type":52,"tag":160,"props":6598,"children":6599},{"style":4570},[6600],{"type":58,"value":5818},{"type":52,"tag":160,"props":6602,"children":6603},{"style":4080},[6604],{"type":58,"value":4632},{"type":52,"tag":160,"props":6606,"children":6607},{"style":173},[6608],{"type":58,"value":6609},"charges\n",{"type":52,"tag":160,"props":6611,"children":6612},{"class":162,"line":316},[6613,6617,6621],{"type":52,"tag":160,"props":6614,"children":6615},{"style":4570},[6616],{"type":58,"value":5852},{"type":52,"tag":160,"props":6618,"children":6619},{"style":4080},[6620],{"type":58,"value":4632},{"type":52,"tag":160,"props":6622,"children":6623},{"style":173},[6624],{"type":58,"value":5861},{"type":52,"tag":160,"props":6626,"children":6627},{"class":162,"line":325},[6628,6632,6636],{"type":52,"tag":160,"props":6629,"children":6630},{"style":4570},[6631],{"type":58,"value":5869},{"type":52,"tag":160,"props":6633,"children":6634},{"style":4080},[6635],{"type":58,"value":4632},{"type":52,"tag":160,"props":6637,"children":6638},{"style":173},[6639],{"type":58,"value":6640},"created\n",{"type":52,"tag":160,"props":6642,"children":6643},{"class":162,"line":334},[6644,6648,6652],{"type":52,"tag":160,"props":6645,"children":6646},{"style":4570},[6647],{"type":58,"value":5886},{"type":52,"tag":160,"props":6649,"children":6650},{"style":4080},[6651],{"type":58,"value":4632},{"type":52,"tag":160,"props":6653,"children":6654},{"style":173},[6655],{"type":58,"value":5895},{"type":52,"tag":259,"props":6657,"children":6658},{"v-slot:stripe-refunds":7},[6659,6671],{"type":52,"tag":107,"props":6660,"children":6661},{},[6662],{"type":52,"tag":218,"props":6663,"children":6664},{},[6665],{"type":52,"tag":71,"props":6666,"children":6668},{"className":6667},[],[6669],{"type":58,"value":6670},"ecommerce\u002Fassets\u002Fstripe_refunds.asset.yml",{"type":52,"tag":150,"props":6672,"children":6674},{"className":4558,"code":6673,"language":4560,"meta":7,"style":7},"name: raw.stripe_refunds\ntype: ingestr\nparameters:\n  source_connection: stripe\n  source_table: refunds\n  incremental_strategy: merge\n  incremental_key: created\n  primary_key: id\n",[6675],{"type":52,"tag":71,"props":6676,"children":6677},{"__ignoreMap":7},[6678,6694,6709,6720,6735,6751,6766,6781],{"type":52,"tag":160,"props":6679,"children":6680},{"class":162,"line":163},[6681,6685,6689],{"type":52,"tag":160,"props":6682,"children":6683},{"style":4570},[6684],{"type":58,"value":4627},{"type":52,"tag":160,"props":6686,"children":6687},{"style":4080},[6688],{"type":58,"value":4632},{"type":52,"tag":160,"props":6690,"children":6691},{"style":173},[6692],{"type":58,"value":6693},"raw.stripe_refunds\n",{"type":52,"tag":160,"props":6695,"children":6696},{"class":162,"line":281},[6697,6701,6705],{"type":52,"tag":160,"props":6698,"children":6699},{"style":4570},[6700],{"type":58,"value":5772},{"type":52,"tag":160,"props":6702,"children":6703},{"style":4080},[6704],{"type":58,"value":4632},{"type":52,"tag":160,"props":6706,"children":6707},{"style":173},[6708],{"type":58,"value":5781},{"type":52,"tag":160,"props":6710,"children":6711},{"class":162,"line":290},[6712,6716],{"type":52,"tag":160,"props":6713,"children":6714},{"style":4570},[6715],{"type":58,"value":5789},{"type":52,"tag":160,"props":6717,"children":6718},{"style":4080},[6719],{"type":58,"value":4578},{"type":52,"tag":160,"props":6721,"children":6722},{"class":162,"line":299},[6723,6727,6731],{"type":52,"tag":160,"props":6724,"children":6725},{"style":4570},[6726],{"type":58,"value":5801},{"type":52,"tag":160,"props":6728,"children":6729},{"style":4080},[6730],{"type":58,"value":4632},{"type":52,"tag":160,"props":6732,"children":6733},{"style":173},[6734],{"type":58,"value":6593},{"type":52,"tag":160,"props":6736,"children":6737},{"class":162,"line":27},[6738,6742,6746],{"type":52,"tag":160,"props":6739,"children":6740},{"style":4570},[6741],{"type":58,"value":5818},{"type":52,"tag":160,"props":6743,"children":6744},{"style":4080},[6745],{"type":58,"value":4632},{"type":52,"tag":160,"props":6747,"children":6748},{"style":173},[6749],{"type":58,"value":6750},"refunds\n",{"type":52,"tag":160,"props":6752,"children":6753},{"class":162,"line":316},[6754,6758,6762],{"type":52,"tag":160,"props":6755,"children":6756},{"style":4570},[6757],{"type":58,"value":5852},{"type":52,"tag":160,"props":6759,"children":6760},{"style":4080},[6761],{"type":58,"value":4632},{"type":52,"tag":160,"props":6763,"children":6764},{"style":173},[6765],{"type":58,"value":5861},{"type":52,"tag":160,"props":6767,"children":6768},{"class":162,"line":325},[6769,6773,6777],{"type":52,"tag":160,"props":6770,"children":6771},{"style":4570},[6772],{"type":58,"value":5869},{"type":52,"tag":160,"props":6774,"children":6775},{"style":4080},[6776],{"type":58,"value":4632},{"type":52,"tag":160,"props":6778,"children":6779},{"style":173},[6780],{"type":58,"value":6640},{"type":52,"tag":160,"props":6782,"children":6783},{"class":162,"line":334},[6784,6788,6792],{"type":52,"tag":160,"props":6785,"children":6786},{"style":4570},[6787],{"type":58,"value":5886},{"type":52,"tag":160,"props":6789,"children":6790},{"style":4080},[6791],{"type":58,"value":4632},{"type":52,"tag":160,"props":6793,"children":6794},{"style":173},[6795],{"type":58,"value":5895},{"type":52,"tag":259,"props":6797,"children":6798},{"v-slot:stripe-customers":7},[6799,6811],{"type":52,"tag":107,"props":6800,"children":6801},{},[6802],{"type":52,"tag":218,"props":6803,"children":6804},{},[6805],{"type":52,"tag":71,"props":6806,"children":6808},{"className":6807},[],[6809],{"type":58,"value":6810},"ecommerce\u002Fassets\u002Fstripe_customers.asset.yml",{"type":52,"tag":150,"props":6812,"children":6814},{"className":4558,"code":6813,"language":4560,"meta":7,"style":7},"name: raw.stripe_customers\ntype: ingestr\nparameters:\n  source_connection: stripe\n  source_table: customers\n  incremental_strategy: merge\n  incremental_key: created\n  primary_key: id\n",[6815],{"type":52,"tag":71,"props":6816,"children":6817},{"__ignoreMap":7},[6818,6834,6849,6860,6875,6890,6905,6920],{"type":52,"tag":160,"props":6819,"children":6820},{"class":162,"line":163},[6821,6825,6829],{"type":52,"tag":160,"props":6822,"children":6823},{"style":4570},[6824],{"type":58,"value":4627},{"type":52,"tag":160,"props":6826,"children":6827},{"style":4080},[6828],{"type":58,"value":4632},{"type":52,"tag":160,"props":6830,"children":6831},{"style":173},[6832],{"type":58,"value":6833},"raw.stripe_customers\n",{"type":52,"tag":160,"props":6835,"children":6836},{"class":162,"line":281},[6837,6841,6845],{"type":52,"tag":160,"props":6838,"children":6839},{"style":4570},[6840],{"type":58,"value":5772},{"type":52,"tag":160,"props":6842,"children":6843},{"style":4080},[6844],{"type":58,"value":4632},{"type":52,"tag":160,"props":6846,"children":6847},{"style":173},[6848],{"type":58,"value":5781},{"type":52,"tag":160,"props":6850,"children":6851},{"class":162,"line":290},[6852,6856],{"type":52,"tag":160,"props":6853,"children":6854},{"style":4570},[6855],{"type":58,"value":5789},{"type":52,"tag":160,"props":6857,"children":6858},{"style":4080},[6859],{"type":58,"value":4578},{"type":52,"tag":160,"props":6861,"children":6862},{"class":162,"line":299},[6863,6867,6871],{"type":52,"tag":160,"props":6864,"children":6865},{"style":4570},[6866],{"type":58,"value":5801},{"type":52,"tag":160,"props":6868,"children":6869},{"style":4080},[6870],{"type":58,"value":4632},{"type":52,"tag":160,"props":6872,"children":6873},{"style":173},[6874],{"type":58,"value":6593},{"type":52,"tag":160,"props":6876,"children":6877},{"class":162,"line":27},[6878,6882,6886],{"type":52,"tag":160,"props":6879,"children":6880},{"style":4570},[6881],{"type":58,"value":5818},{"type":52,"tag":160,"props":6883,"children":6884},{"style":4080},[6885],{"type":58,"value":4632},{"type":52,"tag":160,"props":6887,"children":6888},{"style":173},[6889],{"type":58,"value":5990},{"type":52,"tag":160,"props":6891,"children":6892},{"class":162,"line":316},[6893,6897,6901],{"type":52,"tag":160,"props":6894,"children":6895},{"style":4570},[6896],{"type":58,"value":5852},{"type":52,"tag":160,"props":6898,"children":6899},{"style":4080},[6900],{"type":58,"value":4632},{"type":52,"tag":160,"props":6902,"children":6903},{"style":173},[6904],{"type":58,"value":5861},{"type":52,"tag":160,"props":6906,"children":6907},{"class":162,"line":325},[6908,6912,6916],{"type":52,"tag":160,"props":6909,"children":6910},{"style":4570},[6911],{"type":58,"value":5869},{"type":52,"tag":160,"props":6913,"children":6914},{"style":4080},[6915],{"type":58,"value":4632},{"type":52,"tag":160,"props":6917,"children":6918},{"style":173},[6919],{"type":58,"value":6640},{"type":52,"tag":160,"props":6921,"children":6922},{"class":162,"line":334},[6923,6927,6931],{"type":52,"tag":160,"props":6924,"children":6925},{"style":4570},[6926],{"type":58,"value":5886},{"type":52,"tag":160,"props":6928,"children":6929},{"style":4080},[6930],{"type":58,"value":4632},{"type":52,"tag":160,"props":6932,"children":6933},{"style":173},[6934],{"type":58,"value":5895},{"type":52,"tag":259,"props":6936,"children":6937},{"v-slot:stripe-payouts":7},[6938,6950],{"type":52,"tag":107,"props":6939,"children":6940},{},[6941],{"type":52,"tag":218,"props":6942,"children":6943},{},[6944],{"type":52,"tag":71,"props":6945,"children":6947},{"className":6946},[],[6948],{"type":58,"value":6949},"ecommerce\u002Fassets\u002Fstripe_payouts.asset.yml",{"type":52,"tag":150,"props":6951,"children":6953},{"className":4558,"code":6952,"language":4560,"meta":7,"style":7},"name: raw.stripe_payouts\ntype: ingestr\nparameters:\n  source_connection: stripe\n  source_table: payouts\n  incremental_strategy: merge\n  incremental_key: created\n  primary_key: id\n",[6954],{"type":52,"tag":71,"props":6955,"children":6956},{"__ignoreMap":7},[6957,6973,6988,6999,7014,7030,7045,7060],{"type":52,"tag":160,"props":6958,"children":6959},{"class":162,"line":163},[6960,6964,6968],{"type":52,"tag":160,"props":6961,"children":6962},{"style":4570},[6963],{"type":58,"value":4627},{"type":52,"tag":160,"props":6965,"children":6966},{"style":4080},[6967],{"type":58,"value":4632},{"type":52,"tag":160,"props":6969,"children":6970},{"style":173},[6971],{"type":58,"value":6972},"raw.stripe_payouts\n",{"type":52,"tag":160,"props":6974,"children":6975},{"class":162,"line":281},[6976,6980,6984],{"type":52,"tag":160,"props":6977,"children":6978},{"style":4570},[6979],{"type":58,"value":5772},{"type":52,"tag":160,"props":6981,"children":6982},{"style":4080},[6983],{"type":58,"value":4632},{"type":52,"tag":160,"props":6985,"children":6986},{"style":173},[6987],{"type":58,"value":5781},{"type":52,"tag":160,"props":6989,"children":6990},{"class":162,"line":290},[6991,6995],{"type":52,"tag":160,"props":6992,"children":6993},{"style":4570},[6994],{"type":58,"value":5789},{"type":52,"tag":160,"props":6996,"children":6997},{"style":4080},[6998],{"type":58,"value":4578},{"type":52,"tag":160,"props":7000,"children":7001},{"class":162,"line":299},[7002,7006,7010],{"type":52,"tag":160,"props":7003,"children":7004},{"style":4570},[7005],{"type":58,"value":5801},{"type":52,"tag":160,"props":7007,"children":7008},{"style":4080},[7009],{"type":58,"value":4632},{"type":52,"tag":160,"props":7011,"children":7012},{"style":173},[7013],{"type":58,"value":6593},{"type":52,"tag":160,"props":7015,"children":7016},{"class":162,"line":27},[7017,7021,7025],{"type":52,"tag":160,"props":7018,"children":7019},{"style":4570},[7020],{"type":58,"value":5818},{"type":52,"tag":160,"props":7022,"children":7023},{"style":4080},[7024],{"type":58,"value":4632},{"type":52,"tag":160,"props":7026,"children":7027},{"style":173},[7028],{"type":58,"value":7029},"payouts\n",{"type":52,"tag":160,"props":7031,"children":7032},{"class":162,"line":316},[7033,7037,7041],{"type":52,"tag":160,"props":7034,"children":7035},{"style":4570},[7036],{"type":58,"value":5852},{"type":52,"tag":160,"props":7038,"children":7039},{"style":4080},[7040],{"type":58,"value":4632},{"type":52,"tag":160,"props":7042,"children":7043},{"style":173},[7044],{"type":58,"value":5861},{"type":52,"tag":160,"props":7046,"children":7047},{"class":162,"line":325},[7048,7052,7056],{"type":52,"tag":160,"props":7049,"children":7050},{"style":4570},[7051],{"type":58,"value":5869},{"type":52,"tag":160,"props":7053,"children":7054},{"style":4080},[7055],{"type":58,"value":4632},{"type":52,"tag":160,"props":7057,"children":7058},{"style":173},[7059],{"type":58,"value":6640},{"type":52,"tag":160,"props":7061,"children":7062},{"class":162,"line":334},[7063,7067,7071],{"type":52,"tag":160,"props":7064,"children":7065},{"style":4570},[7066],{"type":58,"value":5886},{"type":52,"tag":160,"props":7068,"children":7069},{"style":4080},[7070],{"type":58,"value":4632},{"type":52,"tag":160,"props":7072,"children":7073},{"style":173},[7074],{"type":58,"value":5895},{"type":52,"tag":4021,"props":7076,"children":7077},{"type":6334},[7078],{"type":52,"tag":107,"props":7079,"children":7080},{},[7081,7083,7089,7090,7096,7098,7104],{"type":58,"value":7082},"The Stripe MCP can help you explore which tables and fields are available. Ask Claude Code \"what data can I pull from Stripe?\" to see tables like ",{"type":52,"tag":71,"props":7084,"children":7086},{"className":7085},[],[7087],{"type":58,"value":7088},"subscriptions",{"type":58,"value":3976},{"type":52,"tag":71,"props":7091,"children":7093},{"className":7092},[],[7094],{"type":58,"value":7095},"disputes",{"type":58,"value":7097},", or ",{"type":52,"tag":71,"props":7099,"children":7101},{"className":7100},[],[7102],{"type":58,"value":7103},"balance_transactions",{"type":58,"value":3931},{"type":52,"tag":5605,"props":7106,"children":7107},{},[],{"type":52,"tag":131,"props":7109,"children":7111},{"id":7110},"email-marketing",[7112],{"type":58,"value":7113},"Email Marketing",{"type":52,"tag":253,"props":7115,"children":7118},{":variants":7116,"group":7117},"[{\"id\":\"klaviyo\",\"label\":\"Klaviyo\"},{\"id\":\"hubspot\",\"label\":\"HubSpot\"}]","marketing",[7119,7509],{"type":52,"tag":259,"props":7120,"children":7121},{"v-slot:klaviyo":7},[7122,7127,7132,7140,7161,7165,7203,7210],{"type":52,"tag":5704,"props":7123,"children":7125},{"id":7124},"klaviyo",[7126],{"type":58,"value":5358},{"type":52,"tag":107,"props":7128,"children":7129},{},[7130],{"type":58,"value":7131},"Klaviyo covers the marketing side: how your email and SMS campaigns are performing and which customers are engaging.",{"type":52,"tag":107,"props":7133,"children":7134},{},[7135],{"type":52,"tag":218,"props":7136,"children":7137},{},[7138],{"type":58,"value":7139},"Add the Klaviyo connection:",{"type":52,"tag":150,"props":7141,"children":7142},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[7143],{"type":52,"tag":71,"props":7144,"children":7145},{"__ignoreMap":7},[7146],{"type":52,"tag":160,"props":7147,"children":7148},{"class":162,"line":163},[7149,7153,7157],{"type":52,"tag":160,"props":7150,"children":7151},{"style":167},[7152],{"type":58,"value":170},{"type":52,"tag":160,"props":7154,"children":7155},{"style":173},[7156],{"type":58,"value":4292},{"type":52,"tag":160,"props":7158,"children":7159},{"style":173},[7160],{"type":58,"value":4297},{"type":52,"tag":107,"props":7162,"children":7163},{},[7164],{"type":58,"value":4302},{"type":52,"tag":2004,"props":7166,"children":7167},{},[7168,7181,7194],{"type":52,"tag":65,"props":7169,"children":7170},{},[7171,7175,7176],{"type":52,"tag":218,"props":7172,"children":7173},{},[7174],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":7177,"children":7179},{"className":7178},[],[7180],{"type":58,"value":7124},{"type":52,"tag":65,"props":7182,"children":7183},{},[7184,7188,7189],{"type":52,"tag":218,"props":7185,"children":7186},{},[7187],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":7190,"children":7192},{"className":7191},[],[7193],{"type":58,"value":7124},{"type":52,"tag":65,"props":7195,"children":7196},{},[7197,7201],{"type":52,"tag":218,"props":7198,"children":7199},{},[7200],{"type":58,"value":6492},{"type":58,"value":7202}," your Klaviyo private API key",{"type":52,"tag":107,"props":7204,"children":7205},{},[7206],{"type":52,"tag":218,"props":7207,"children":7208},{},[7209],{"type":58,"value":6509},{"type":52,"tag":253,"props":7211,"children":7213},{":variants":7212},"[{\"id\":\"klaviyo-campaigns\",\"label\":\"Campaigns\"},{\"id\":\"klaviyo-flows\",\"label\":\"Flows\"},{\"id\":\"klaviyo-metrics\",\"label\":\"Metrics\"}]",[7214,7313,7411],{"type":52,"tag":259,"props":7215,"children":7216},{"v-slot:klaviyo-campaigns":7},[7217],{"type":52,"tag":150,"props":7218,"children":7220},{"className":4558,"code":7219,"language":4560,"meta":7,"style":7},"name: raw.klaviyo_campaigns\ntype: ingestr\nparameters:\n  source_connection: klaviyo\n  source_table: campaigns\n  incremental_strategy: replace\n",[7221],{"type":52,"tag":71,"props":7222,"children":7223},{"__ignoreMap":7},[7224,7240,7255,7266,7282,7298],{"type":52,"tag":160,"props":7225,"children":7226},{"class":162,"line":163},[7227,7231,7235],{"type":52,"tag":160,"props":7228,"children":7229},{"style":4570},[7230],{"type":58,"value":4627},{"type":52,"tag":160,"props":7232,"children":7233},{"style":4080},[7234],{"type":58,"value":4632},{"type":52,"tag":160,"props":7236,"children":7237},{"style":173},[7238],{"type":58,"value":7239},"raw.klaviyo_campaigns\n",{"type":52,"tag":160,"props":7241,"children":7242},{"class":162,"line":281},[7243,7247,7251],{"type":52,"tag":160,"props":7244,"children":7245},{"style":4570},[7246],{"type":58,"value":5772},{"type":52,"tag":160,"props":7248,"children":7249},{"style":4080},[7250],{"type":58,"value":4632},{"type":52,"tag":160,"props":7252,"children":7253},{"style":173},[7254],{"type":58,"value":5781},{"type":52,"tag":160,"props":7256,"children":7257},{"class":162,"line":290},[7258,7262],{"type":52,"tag":160,"props":7259,"children":7260},{"style":4570},[7261],{"type":58,"value":5789},{"type":52,"tag":160,"props":7263,"children":7264},{"style":4080},[7265],{"type":58,"value":4578},{"type":52,"tag":160,"props":7267,"children":7268},{"class":162,"line":299},[7269,7273,7277],{"type":52,"tag":160,"props":7270,"children":7271},{"style":4570},[7272],{"type":58,"value":5801},{"type":52,"tag":160,"props":7274,"children":7275},{"style":4080},[7276],{"type":58,"value":4632},{"type":52,"tag":160,"props":7278,"children":7279},{"style":173},[7280],{"type":58,"value":7281},"klaviyo\n",{"type":52,"tag":160,"props":7283,"children":7284},{"class":162,"line":27},[7285,7289,7293],{"type":52,"tag":160,"props":7286,"children":7287},{"style":4570},[7288],{"type":58,"value":5818},{"type":52,"tag":160,"props":7290,"children":7291},{"style":4080},[7292],{"type":58,"value":4632},{"type":52,"tag":160,"props":7294,"children":7295},{"style":173},[7296],{"type":58,"value":7297},"campaigns\n",{"type":52,"tag":160,"props":7299,"children":7300},{"class":162,"line":316},[7301,7305,7309],{"type":52,"tag":160,"props":7302,"children":7303},{"style":4570},[7304],{"type":58,"value":5852},{"type":52,"tag":160,"props":7306,"children":7307},{"style":4080},[7308],{"type":58,"value":4632},{"type":52,"tag":160,"props":7310,"children":7311},{"style":173},[7312],{"type":58,"value":6331},{"type":52,"tag":259,"props":7314,"children":7315},{"v-slot:klaviyo-flows":7},[7316],{"type":52,"tag":150,"props":7317,"children":7319},{"className":4558,"code":7318,"language":4560,"meta":7,"style":7},"name: raw.klaviyo_flows\ntype: ingestr\nparameters:\n  source_connection: klaviyo\n  source_table: flows\n  incremental_strategy: replace\n",[7320],{"type":52,"tag":71,"props":7321,"children":7322},{"__ignoreMap":7},[7323,7339,7354,7365,7380,7396],{"type":52,"tag":160,"props":7324,"children":7325},{"class":162,"line":163},[7326,7330,7334],{"type":52,"tag":160,"props":7327,"children":7328},{"style":4570},[7329],{"type":58,"value":4627},{"type":52,"tag":160,"props":7331,"children":7332},{"style":4080},[7333],{"type":58,"value":4632},{"type":52,"tag":160,"props":7335,"children":7336},{"style":173},[7337],{"type":58,"value":7338},"raw.klaviyo_flows\n",{"type":52,"tag":160,"props":7340,"children":7341},{"class":162,"line":281},[7342,7346,7350],{"type":52,"tag":160,"props":7343,"children":7344},{"style":4570},[7345],{"type":58,"value":5772},{"type":52,"tag":160,"props":7347,"children":7348},{"style":4080},[7349],{"type":58,"value":4632},{"type":52,"tag":160,"props":7351,"children":7352},{"style":173},[7353],{"type":58,"value":5781},{"type":52,"tag":160,"props":7355,"children":7356},{"class":162,"line":290},[7357,7361],{"type":52,"tag":160,"props":7358,"children":7359},{"style":4570},[7360],{"type":58,"value":5789},{"type":52,"tag":160,"props":7362,"children":7363},{"style":4080},[7364],{"type":58,"value":4578},{"type":52,"tag":160,"props":7366,"children":7367},{"class":162,"line":299},[7368,7372,7376],{"type":52,"tag":160,"props":7369,"children":7370},{"style":4570},[7371],{"type":58,"value":5801},{"type":52,"tag":160,"props":7373,"children":7374},{"style":4080},[7375],{"type":58,"value":4632},{"type":52,"tag":160,"props":7377,"children":7378},{"style":173},[7379],{"type":58,"value":7281},{"type":52,"tag":160,"props":7381,"children":7382},{"class":162,"line":27},[7383,7387,7391],{"type":52,"tag":160,"props":7384,"children":7385},{"style":4570},[7386],{"type":58,"value":5818},{"type":52,"tag":160,"props":7388,"children":7389},{"style":4080},[7390],{"type":58,"value":4632},{"type":52,"tag":160,"props":7392,"children":7393},{"style":173},[7394],{"type":58,"value":7395},"flows\n",{"type":52,"tag":160,"props":7397,"children":7398},{"class":162,"line":316},[7399,7403,7407],{"type":52,"tag":160,"props":7400,"children":7401},{"style":4570},[7402],{"type":58,"value":5852},{"type":52,"tag":160,"props":7404,"children":7405},{"style":4080},[7406],{"type":58,"value":4632},{"type":52,"tag":160,"props":7408,"children":7409},{"style":173},[7410],{"type":58,"value":6331},{"type":52,"tag":259,"props":7412,"children":7413},{"v-slot:klaviyo-metrics":7},[7414],{"type":52,"tag":150,"props":7415,"children":7417},{"className":4558,"code":7416,"language":4560,"meta":7,"style":7},"name: raw.klaviyo_metrics\ntype: ingestr\nparameters:\n  source_connection: klaviyo\n  source_table: metrics\n  incremental_strategy: replace\n",[7418],{"type":52,"tag":71,"props":7419,"children":7420},{"__ignoreMap":7},[7421,7437,7452,7463,7478,7494],{"type":52,"tag":160,"props":7422,"children":7423},{"class":162,"line":163},[7424,7428,7432],{"type":52,"tag":160,"props":7425,"children":7426},{"style":4570},[7427],{"type":58,"value":4627},{"type":52,"tag":160,"props":7429,"children":7430},{"style":4080},[7431],{"type":58,"value":4632},{"type":52,"tag":160,"props":7433,"children":7434},{"style":173},[7435],{"type":58,"value":7436},"raw.klaviyo_metrics\n",{"type":52,"tag":160,"props":7438,"children":7439},{"class":162,"line":281},[7440,7444,7448],{"type":52,"tag":160,"props":7441,"children":7442},{"style":4570},[7443],{"type":58,"value":5772},{"type":52,"tag":160,"props":7445,"children":7446},{"style":4080},[7447],{"type":58,"value":4632},{"type":52,"tag":160,"props":7449,"children":7450},{"style":173},[7451],{"type":58,"value":5781},{"type":52,"tag":160,"props":7453,"children":7454},{"class":162,"line":290},[7455,7459],{"type":52,"tag":160,"props":7456,"children":7457},{"style":4570},[7458],{"type":58,"value":5789},{"type":52,"tag":160,"props":7460,"children":7461},{"style":4080},[7462],{"type":58,"value":4578},{"type":52,"tag":160,"props":7464,"children":7465},{"class":162,"line":299},[7466,7470,7474],{"type":52,"tag":160,"props":7467,"children":7468},{"style":4570},[7469],{"type":58,"value":5801},{"type":52,"tag":160,"props":7471,"children":7472},{"style":4080},[7473],{"type":58,"value":4632},{"type":52,"tag":160,"props":7475,"children":7476},{"style":173},[7477],{"type":58,"value":7281},{"type":52,"tag":160,"props":7479,"children":7480},{"class":162,"line":27},[7481,7485,7489],{"type":52,"tag":160,"props":7482,"children":7483},{"style":4570},[7484],{"type":58,"value":5818},{"type":52,"tag":160,"props":7486,"children":7487},{"style":4080},[7488],{"type":58,"value":4632},{"type":52,"tag":160,"props":7490,"children":7491},{"style":173},[7492],{"type":58,"value":7493},"metrics\n",{"type":52,"tag":160,"props":7495,"children":7496},{"class":162,"line":316},[7497,7501,7505],{"type":52,"tag":160,"props":7498,"children":7499},{"style":4570},[7500],{"type":58,"value":5852},{"type":52,"tag":160,"props":7502,"children":7503},{"style":4080},[7504],{"type":58,"value":4632},{"type":52,"tag":160,"props":7506,"children":7507},{"style":173},[7508],{"type":58,"value":6331},{"type":52,"tag":259,"props":7510,"children":7511},{"v-slot:hubspot":7},[7512,7517,7522,7530,7551,7555,7593,7600],{"type":52,"tag":5704,"props":7513,"children":7515},{"id":7514},"hubspot",[7516],{"type":58,"value":5359},{"type":52,"tag":107,"props":7518,"children":7519},{},[7520],{"type":58,"value":7521},"HubSpot covers your CRM and marketing data: contacts, deals, email campaigns, and marketing activity.",{"type":52,"tag":107,"props":7523,"children":7524},{},[7525],{"type":52,"tag":218,"props":7526,"children":7527},{},[7528],{"type":58,"value":7529},"Add the HubSpot connection:",{"type":52,"tag":150,"props":7531,"children":7532},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[7533],{"type":52,"tag":71,"props":7534,"children":7535},{"__ignoreMap":7},[7536],{"type":52,"tag":160,"props":7537,"children":7538},{"class":162,"line":163},[7539,7543,7547],{"type":52,"tag":160,"props":7540,"children":7541},{"style":167},[7542],{"type":58,"value":170},{"type":52,"tag":160,"props":7544,"children":7545},{"style":173},[7546],{"type":58,"value":4292},{"type":52,"tag":160,"props":7548,"children":7549},{"style":173},[7550],{"type":58,"value":4297},{"type":52,"tag":107,"props":7552,"children":7553},{},[7554],{"type":58,"value":4302},{"type":52,"tag":2004,"props":7556,"children":7557},{},[7558,7571,7584],{"type":52,"tag":65,"props":7559,"children":7560},{},[7561,7565,7566],{"type":52,"tag":218,"props":7562,"children":7563},{},[7564],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":7567,"children":7569},{"className":7568},[],[7570],{"type":58,"value":7514},{"type":52,"tag":65,"props":7572,"children":7573},{},[7574,7578,7579],{"type":52,"tag":218,"props":7575,"children":7576},{},[7577],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":7580,"children":7582},{"className":7581},[],[7583],{"type":58,"value":7514},{"type":52,"tag":65,"props":7585,"children":7586},{},[7587,7591],{"type":52,"tag":218,"props":7588,"children":7589},{},[7590],{"type":58,"value":6492},{"type":58,"value":7592}," your HubSpot private app access token",{"type":52,"tag":107,"props":7594,"children":7595},{},[7596],{"type":52,"tag":218,"props":7597,"children":7598},{},[7599],{"type":58,"value":6509},{"type":52,"tag":253,"props":7601,"children":7603},{":variants":7602},"[{\"id\":\"hubspot-contacts\",\"label\":\"Contacts\"},{\"id\":\"hubspot-deals\",\"label\":\"Deals\"},{\"id\":\"hubspot-campaigns\",\"label\":\"Campaigns\"}]",[7604,7734,7862],{"type":52,"tag":259,"props":7605,"children":7606},{"v-slot:hubspot-contacts":7},[7607],{"type":52,"tag":150,"props":7608,"children":7610},{"className":4558,"code":7609,"language":4560,"meta":7,"style":7},"name: raw.hubspot_contacts\ntype: ingestr\nparameters:\n  source_connection: hubspot\n  source_table: contacts\n  incremental_strategy: merge\n  incremental_key: updatedAt\n  primary_key: id\n",[7611],{"type":52,"tag":71,"props":7612,"children":7613},{"__ignoreMap":7},[7614,7630,7645,7656,7672,7688,7703,7719],{"type":52,"tag":160,"props":7615,"children":7616},{"class":162,"line":163},[7617,7621,7625],{"type":52,"tag":160,"props":7618,"children":7619},{"style":4570},[7620],{"type":58,"value":4627},{"type":52,"tag":160,"props":7622,"children":7623},{"style":4080},[7624],{"type":58,"value":4632},{"type":52,"tag":160,"props":7626,"children":7627},{"style":173},[7628],{"type":58,"value":7629},"raw.hubspot_contacts\n",{"type":52,"tag":160,"props":7631,"children":7632},{"class":162,"line":281},[7633,7637,7641],{"type":52,"tag":160,"props":7634,"children":7635},{"style":4570},[7636],{"type":58,"value":5772},{"type":52,"tag":160,"props":7638,"children":7639},{"style":4080},[7640],{"type":58,"value":4632},{"type":52,"tag":160,"props":7642,"children":7643},{"style":173},[7644],{"type":58,"value":5781},{"type":52,"tag":160,"props":7646,"children":7647},{"class":162,"line":290},[7648,7652],{"type":52,"tag":160,"props":7649,"children":7650},{"style":4570},[7651],{"type":58,"value":5789},{"type":52,"tag":160,"props":7653,"children":7654},{"style":4080},[7655],{"type":58,"value":4578},{"type":52,"tag":160,"props":7657,"children":7658},{"class":162,"line":299},[7659,7663,7667],{"type":52,"tag":160,"props":7660,"children":7661},{"style":4570},[7662],{"type":58,"value":5801},{"type":52,"tag":160,"props":7664,"children":7665},{"style":4080},[7666],{"type":58,"value":4632},{"type":52,"tag":160,"props":7668,"children":7669},{"style":173},[7670],{"type":58,"value":7671},"hubspot\n",{"type":52,"tag":160,"props":7673,"children":7674},{"class":162,"line":27},[7675,7679,7683],{"type":52,"tag":160,"props":7676,"children":7677},{"style":4570},[7678],{"type":58,"value":5818},{"type":52,"tag":160,"props":7680,"children":7681},{"style":4080},[7682],{"type":58,"value":4632},{"type":52,"tag":160,"props":7684,"children":7685},{"style":173},[7686],{"type":58,"value":7687},"contacts\n",{"type":52,"tag":160,"props":7689,"children":7690},{"class":162,"line":316},[7691,7695,7699],{"type":52,"tag":160,"props":7692,"children":7693},{"style":4570},[7694],{"type":58,"value":5852},{"type":52,"tag":160,"props":7696,"children":7697},{"style":4080},[7698],{"type":58,"value":4632},{"type":52,"tag":160,"props":7700,"children":7701},{"style":173},[7702],{"type":58,"value":5861},{"type":52,"tag":160,"props":7704,"children":7705},{"class":162,"line":325},[7706,7710,7714],{"type":52,"tag":160,"props":7707,"children":7708},{"style":4570},[7709],{"type":58,"value":5869},{"type":52,"tag":160,"props":7711,"children":7712},{"style":4080},[7713],{"type":58,"value":4632},{"type":52,"tag":160,"props":7715,"children":7716},{"style":173},[7717],{"type":58,"value":7718},"updatedAt\n",{"type":52,"tag":160,"props":7720,"children":7721},{"class":162,"line":334},[7722,7726,7730],{"type":52,"tag":160,"props":7723,"children":7724},{"style":4570},[7725],{"type":58,"value":5886},{"type":52,"tag":160,"props":7727,"children":7728},{"style":4080},[7729],{"type":58,"value":4632},{"type":52,"tag":160,"props":7731,"children":7732},{"style":173},[7733],{"type":58,"value":5895},{"type":52,"tag":259,"props":7735,"children":7736},{"v-slot:hubspot-deals":7},[7737],{"type":52,"tag":150,"props":7738,"children":7740},{"className":4558,"code":7739,"language":4560,"meta":7,"style":7},"name: raw.hubspot_deals\ntype: ingestr\nparameters:\n  source_connection: hubspot\n  source_table: deals\n  incremental_strategy: merge\n  incremental_key: updatedAt\n  primary_key: id\n",[7741],{"type":52,"tag":71,"props":7742,"children":7743},{"__ignoreMap":7},[7744,7760,7775,7786,7801,7817,7832,7847],{"type":52,"tag":160,"props":7745,"children":7746},{"class":162,"line":163},[7747,7751,7755],{"type":52,"tag":160,"props":7748,"children":7749},{"style":4570},[7750],{"type":58,"value":4627},{"type":52,"tag":160,"props":7752,"children":7753},{"style":4080},[7754],{"type":58,"value":4632},{"type":52,"tag":160,"props":7756,"children":7757},{"style":173},[7758],{"type":58,"value":7759},"raw.hubspot_deals\n",{"type":52,"tag":160,"props":7761,"children":7762},{"class":162,"line":281},[7763,7767,7771],{"type":52,"tag":160,"props":7764,"children":7765},{"style":4570},[7766],{"type":58,"value":5772},{"type":52,"tag":160,"props":7768,"children":7769},{"style":4080},[7770],{"type":58,"value":4632},{"type":52,"tag":160,"props":7772,"children":7773},{"style":173},[7774],{"type":58,"value":5781},{"type":52,"tag":160,"props":7776,"children":7777},{"class":162,"line":290},[7778,7782],{"type":52,"tag":160,"props":7779,"children":7780},{"style":4570},[7781],{"type":58,"value":5789},{"type":52,"tag":160,"props":7783,"children":7784},{"style":4080},[7785],{"type":58,"value":4578},{"type":52,"tag":160,"props":7787,"children":7788},{"class":162,"line":299},[7789,7793,7797],{"type":52,"tag":160,"props":7790,"children":7791},{"style":4570},[7792],{"type":58,"value":5801},{"type":52,"tag":160,"props":7794,"children":7795},{"style":4080},[7796],{"type":58,"value":4632},{"type":52,"tag":160,"props":7798,"children":7799},{"style":173},[7800],{"type":58,"value":7671},{"type":52,"tag":160,"props":7802,"children":7803},{"class":162,"line":27},[7804,7808,7812],{"type":52,"tag":160,"props":7805,"children":7806},{"style":4570},[7807],{"type":58,"value":5818},{"type":52,"tag":160,"props":7809,"children":7810},{"style":4080},[7811],{"type":58,"value":4632},{"type":52,"tag":160,"props":7813,"children":7814},{"style":173},[7815],{"type":58,"value":7816},"deals\n",{"type":52,"tag":160,"props":7818,"children":7819},{"class":162,"line":316},[7820,7824,7828],{"type":52,"tag":160,"props":7821,"children":7822},{"style":4570},[7823],{"type":58,"value":5852},{"type":52,"tag":160,"props":7825,"children":7826},{"style":4080},[7827],{"type":58,"value":4632},{"type":52,"tag":160,"props":7829,"children":7830},{"style":173},[7831],{"type":58,"value":5861},{"type":52,"tag":160,"props":7833,"children":7834},{"class":162,"line":325},[7835,7839,7843],{"type":52,"tag":160,"props":7836,"children":7837},{"style":4570},[7838],{"type":58,"value":5869},{"type":52,"tag":160,"props":7840,"children":7841},{"style":4080},[7842],{"type":58,"value":4632},{"type":52,"tag":160,"props":7844,"children":7845},{"style":173},[7846],{"type":58,"value":7718},{"type":52,"tag":160,"props":7848,"children":7849},{"class":162,"line":334},[7850,7854,7858],{"type":52,"tag":160,"props":7851,"children":7852},{"style":4570},[7853],{"type":58,"value":5886},{"type":52,"tag":160,"props":7855,"children":7856},{"style":4080},[7857],{"type":58,"value":4632},{"type":52,"tag":160,"props":7859,"children":7860},{"style":173},[7861],{"type":58,"value":5895},{"type":52,"tag":259,"props":7863,"children":7864},{"v-slot:hubspot-campaigns":7},[7865],{"type":52,"tag":150,"props":7866,"children":7868},{"className":4558,"code":7867,"language":4560,"meta":7,"style":7},"name: raw.hubspot_campaigns\ntype: ingestr\nparameters:\n  source_connection: hubspot\n  source_table: campaigns\n  incremental_strategy: replace\n",[7869],{"type":52,"tag":71,"props":7870,"children":7871},{"__ignoreMap":7},[7872,7888,7903,7914,7929,7944],{"type":52,"tag":160,"props":7873,"children":7874},{"class":162,"line":163},[7875,7879,7883],{"type":52,"tag":160,"props":7876,"children":7877},{"style":4570},[7878],{"type":58,"value":4627},{"type":52,"tag":160,"props":7880,"children":7881},{"style":4080},[7882],{"type":58,"value":4632},{"type":52,"tag":160,"props":7884,"children":7885},{"style":173},[7886],{"type":58,"value":7887},"raw.hubspot_campaigns\n",{"type":52,"tag":160,"props":7889,"children":7890},{"class":162,"line":281},[7891,7895,7899],{"type":52,"tag":160,"props":7892,"children":7893},{"style":4570},[7894],{"type":58,"value":5772},{"type":52,"tag":160,"props":7896,"children":7897},{"style":4080},[7898],{"type":58,"value":4632},{"type":52,"tag":160,"props":7900,"children":7901},{"style":173},[7902],{"type":58,"value":5781},{"type":52,"tag":160,"props":7904,"children":7905},{"class":162,"line":290},[7906,7910],{"type":52,"tag":160,"props":7907,"children":7908},{"style":4570},[7909],{"type":58,"value":5789},{"type":52,"tag":160,"props":7911,"children":7912},{"style":4080},[7913],{"type":58,"value":4578},{"type":52,"tag":160,"props":7915,"children":7916},{"class":162,"line":299},[7917,7921,7925],{"type":52,"tag":160,"props":7918,"children":7919},{"style":4570},[7920],{"type":58,"value":5801},{"type":52,"tag":160,"props":7922,"children":7923},{"style":4080},[7924],{"type":58,"value":4632},{"type":52,"tag":160,"props":7926,"children":7927},{"style":173},[7928],{"type":58,"value":7671},{"type":52,"tag":160,"props":7930,"children":7931},{"class":162,"line":27},[7932,7936,7940],{"type":52,"tag":160,"props":7933,"children":7934},{"style":4570},[7935],{"type":58,"value":5818},{"type":52,"tag":160,"props":7937,"children":7938},{"style":4080},[7939],{"type":58,"value":4632},{"type":52,"tag":160,"props":7941,"children":7942},{"style":173},[7943],{"type":58,"value":7297},{"type":52,"tag":160,"props":7945,"children":7946},{"class":162,"line":316},[7947,7951,7955],{"type":52,"tag":160,"props":7948,"children":7949},{"style":4570},[7950],{"type":58,"value":5852},{"type":52,"tag":160,"props":7952,"children":7953},{"style":4080},[7954],{"type":58,"value":4632},{"type":52,"tag":160,"props":7956,"children":7957},{"style":173},[7958],{"type":58,"value":6331},{"type":52,"tag":5605,"props":7960,"children":7961},{},[],{"type":52,"tag":131,"props":7963,"children":7965},{"id":7964},"advertising",[7966],{"type":58,"value":7967},"Advertising",{"type":52,"tag":253,"props":7969,"children":7972},{":variants":7970,"group":7971},"[{\"id\":\"facebook-ads\",\"label\":\"Facebook Ads\"},{\"id\":\"google-ads\",\"label\":\"Google Ads\"},{\"id\":\"tiktok-ads\",\"label\":\"TikTok Ads\"}]","ads",[7973,8315,8649],{"type":52,"tag":259,"props":7974,"children":7975},{"v-slot:facebook-ads":7},[7976,7981,7986,7994,8015,8019,8076,8083],{"type":52,"tag":5704,"props":7977,"children":7979},{"id":7978},"facebook-ads",[7980],{"type":58,"value":5360},{"type":52,"tag":107,"props":7982,"children":7983},{},[7984],{"type":58,"value":7985},"Facebook Ads shows you what you're spending on acquisition across Facebook and Instagram.",{"type":52,"tag":107,"props":7987,"children":7988},{},[7989],{"type":52,"tag":218,"props":7990,"children":7991},{},[7992],{"type":58,"value":7993},"Add the connection:",{"type":52,"tag":150,"props":7995,"children":7996},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[7997],{"type":52,"tag":71,"props":7998,"children":7999},{"__ignoreMap":7},[8000],{"type":52,"tag":160,"props":8001,"children":8002},{"class":162,"line":163},[8003,8007,8011],{"type":52,"tag":160,"props":8004,"children":8005},{"style":167},[8006],{"type":58,"value":170},{"type":52,"tag":160,"props":8008,"children":8009},{"style":173},[8010],{"type":58,"value":4292},{"type":52,"tag":160,"props":8012,"children":8013},{"style":173},[8014],{"type":58,"value":4297},{"type":52,"tag":107,"props":8016,"children":8017},{},[8018],{"type":58,"value":4302},{"type":52,"tag":2004,"props":8020,"children":8021},{},[8022,8036,8049,8066],{"type":52,"tag":65,"props":8023,"children":8024},{},[8025,8029,8030],{"type":52,"tag":218,"props":8026,"children":8027},{},[8028],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":8031,"children":8033},{"className":8032},[],[8034],{"type":58,"value":8035},"facebook_ads",{"type":52,"tag":65,"props":8037,"children":8038},{},[8039,8043,8044],{"type":52,"tag":218,"props":8040,"children":8041},{},[8042],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":8045,"children":8047},{"className":8046},[],[8048],{"type":58,"value":8035},{"type":52,"tag":65,"props":8050,"children":8051},{},[8052,8057,8059],{"type":52,"tag":218,"props":8053,"children":8054},{},[8055],{"type":58,"value":8056},"Access token:",{"type":58,"value":8058}," your ",{"type":52,"tag":1876,"props":8060,"children":8063},{"href":8061,"rel":8062},"https:\u002F\u002Fdevelopers.facebook.com\u002Fdocs\u002Fmarketing-api\u002Foverview\u002Fauthorization",[1880],[8064],{"type":58,"value":8065},"Facebook Marketing API access token",{"type":52,"tag":65,"props":8067,"children":8068},{},[8069,8074],{"type":52,"tag":218,"props":8070,"children":8071},{},[8072],{"type":58,"value":8073},"Account IDs:",{"type":58,"value":8075}," your ad account ID(s), comma-separated",{"type":52,"tag":107,"props":8077,"children":8078},{},[8079],{"type":52,"tag":218,"props":8080,"children":8081},{},[8082],{"type":58,"value":6509},{"type":52,"tag":253,"props":8084,"children":8086},{":variants":8085},"[{\"id\":\"fb-campaigns\",\"label\":\"Campaigns\"},{\"id\":\"fb-insights\",\"label\":\"Ad Insights\"}]",[8087,8185],{"type":52,"tag":259,"props":8088,"children":8089},{"v-slot:fb-campaigns":7},[8090],{"type":52,"tag":150,"props":8091,"children":8093},{"className":4558,"code":8092,"language":4560,"meta":7,"style":7},"name: raw.facebook_campaigns\ntype: ingestr\nparameters:\n  source_connection: facebook_ads\n  source_table: campaigns\n  incremental_strategy: replace\n",[8094],{"type":52,"tag":71,"props":8095,"children":8096},{"__ignoreMap":7},[8097,8113,8128,8139,8155,8170],{"type":52,"tag":160,"props":8098,"children":8099},{"class":162,"line":163},[8100,8104,8108],{"type":52,"tag":160,"props":8101,"children":8102},{"style":4570},[8103],{"type":58,"value":4627},{"type":52,"tag":160,"props":8105,"children":8106},{"style":4080},[8107],{"type":58,"value":4632},{"type":52,"tag":160,"props":8109,"children":8110},{"style":173},[8111],{"type":58,"value":8112},"raw.facebook_campaigns\n",{"type":52,"tag":160,"props":8114,"children":8115},{"class":162,"line":281},[8116,8120,8124],{"type":52,"tag":160,"props":8117,"children":8118},{"style":4570},[8119],{"type":58,"value":5772},{"type":52,"tag":160,"props":8121,"children":8122},{"style":4080},[8123],{"type":58,"value":4632},{"type":52,"tag":160,"props":8125,"children":8126},{"style":173},[8127],{"type":58,"value":5781},{"type":52,"tag":160,"props":8129,"children":8130},{"class":162,"line":290},[8131,8135],{"type":52,"tag":160,"props":8132,"children":8133},{"style":4570},[8134],{"type":58,"value":5789},{"type":52,"tag":160,"props":8136,"children":8137},{"style":4080},[8138],{"type":58,"value":4578},{"type":52,"tag":160,"props":8140,"children":8141},{"class":162,"line":299},[8142,8146,8150],{"type":52,"tag":160,"props":8143,"children":8144},{"style":4570},[8145],{"type":58,"value":5801},{"type":52,"tag":160,"props":8147,"children":8148},{"style":4080},[8149],{"type":58,"value":4632},{"type":52,"tag":160,"props":8151,"children":8152},{"style":173},[8153],{"type":58,"value":8154},"facebook_ads\n",{"type":52,"tag":160,"props":8156,"children":8157},{"class":162,"line":27},[8158,8162,8166],{"type":52,"tag":160,"props":8159,"children":8160},{"style":4570},[8161],{"type":58,"value":5818},{"type":52,"tag":160,"props":8163,"children":8164},{"style":4080},[8165],{"type":58,"value":4632},{"type":52,"tag":160,"props":8167,"children":8168},{"style":173},[8169],{"type":58,"value":7297},{"type":52,"tag":160,"props":8171,"children":8172},{"class":162,"line":316},[8173,8177,8181],{"type":52,"tag":160,"props":8174,"children":8175},{"style":4570},[8176],{"type":58,"value":5852},{"type":52,"tag":160,"props":8178,"children":8179},{"style":4080},[8180],{"type":58,"value":4632},{"type":52,"tag":160,"props":8182,"children":8183},{"style":173},[8184],{"type":58,"value":6331},{"type":52,"tag":259,"props":8186,"children":8187},{"v-slot:fb-insights":7},[8188],{"type":52,"tag":150,"props":8189,"children":8191},{"className":4558,"code":8190,"language":4560,"meta":7,"style":7},"name: raw.facebook_ad_insights\ntype: ingestr\nparameters:\n  source_connection: facebook_ads\n  source_table: insights\n  incremental_strategy: merge\n  incremental_key: date_start\n  primary_key: \"date_start,campaign_id\"\n",[8192],{"type":52,"tag":71,"props":8193,"children":8194},{"__ignoreMap":7},[8195,8211,8226,8237,8252,8268,8283,8299],{"type":52,"tag":160,"props":8196,"children":8197},{"class":162,"line":163},[8198,8202,8206],{"type":52,"tag":160,"props":8199,"children":8200},{"style":4570},[8201],{"type":58,"value":4627},{"type":52,"tag":160,"props":8203,"children":8204},{"style":4080},[8205],{"type":58,"value":4632},{"type":52,"tag":160,"props":8207,"children":8208},{"style":173},[8209],{"type":58,"value":8210},"raw.facebook_ad_insights\n",{"type":52,"tag":160,"props":8212,"children":8213},{"class":162,"line":281},[8214,8218,8222],{"type":52,"tag":160,"props":8215,"children":8216},{"style":4570},[8217],{"type":58,"value":5772},{"type":52,"tag":160,"props":8219,"children":8220},{"style":4080},[8221],{"type":58,"value":4632},{"type":52,"tag":160,"props":8223,"children":8224},{"style":173},[8225],{"type":58,"value":5781},{"type":52,"tag":160,"props":8227,"children":8228},{"class":162,"line":290},[8229,8233],{"type":52,"tag":160,"props":8230,"children":8231},{"style":4570},[8232],{"type":58,"value":5789},{"type":52,"tag":160,"props":8234,"children":8235},{"style":4080},[8236],{"type":58,"value":4578},{"type":52,"tag":160,"props":8238,"children":8239},{"class":162,"line":299},[8240,8244,8248],{"type":52,"tag":160,"props":8241,"children":8242},{"style":4570},[8243],{"type":58,"value":5801},{"type":52,"tag":160,"props":8245,"children":8246},{"style":4080},[8247],{"type":58,"value":4632},{"type":52,"tag":160,"props":8249,"children":8250},{"style":173},[8251],{"type":58,"value":8154},{"type":52,"tag":160,"props":8253,"children":8254},{"class":162,"line":27},[8255,8259,8263],{"type":52,"tag":160,"props":8256,"children":8257},{"style":4570},[8258],{"type":58,"value":5818},{"type":52,"tag":160,"props":8260,"children":8261},{"style":4080},[8262],{"type":58,"value":4632},{"type":52,"tag":160,"props":8264,"children":8265},{"style":173},[8266],{"type":58,"value":8267},"insights\n",{"type":52,"tag":160,"props":8269,"children":8270},{"class":162,"line":316},[8271,8275,8279],{"type":52,"tag":160,"props":8272,"children":8273},{"style":4570},[8274],{"type":58,"value":5852},{"type":52,"tag":160,"props":8276,"children":8277},{"style":4080},[8278],{"type":58,"value":4632},{"type":52,"tag":160,"props":8280,"children":8281},{"style":173},[8282],{"type":58,"value":5861},{"type":52,"tag":160,"props":8284,"children":8285},{"class":162,"line":325},[8286,8290,8294],{"type":52,"tag":160,"props":8287,"children":8288},{"style":4570},[8289],{"type":58,"value":5869},{"type":52,"tag":160,"props":8291,"children":8292},{"style":4080},[8293],{"type":58,"value":4632},{"type":52,"tag":160,"props":8295,"children":8296},{"style":173},[8297],{"type":58,"value":8298},"date_start\n",{"type":52,"tag":160,"props":8300,"children":8301},{"class":162,"line":334},[8302,8306,8310],{"type":52,"tag":160,"props":8303,"children":8304},{"style":4570},[8305],{"type":58,"value":5886},{"type":52,"tag":160,"props":8307,"children":8308},{"style":4080},[8309],{"type":58,"value":4632},{"type":52,"tag":160,"props":8311,"children":8312},{"style":173},[8313],{"type":58,"value":8314},"\"date_start,campaign_id\"\n",{"type":52,"tag":259,"props":8316,"children":8317},{"v-slot:google-ads":7},[8318,8323,8328,8335,8356,8360,8410,8417],{"type":52,"tag":5704,"props":8319,"children":8321},{"id":8320},"google-ads",[8322],{"type":58,"value":5361},{"type":52,"tag":107,"props":8324,"children":8325},{},[8326],{"type":58,"value":8327},"Google Ads covers your search and display ad spend and performance.",{"type":52,"tag":107,"props":8329,"children":8330},{},[8331],{"type":52,"tag":218,"props":8332,"children":8333},{},[8334],{"type":58,"value":7993},{"type":52,"tag":150,"props":8336,"children":8337},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[8338],{"type":52,"tag":71,"props":8339,"children":8340},{"__ignoreMap":7},[8341],{"type":52,"tag":160,"props":8342,"children":8343},{"class":162,"line":163},[8344,8348,8352],{"type":52,"tag":160,"props":8345,"children":8346},{"style":167},[8347],{"type":58,"value":170},{"type":52,"tag":160,"props":8349,"children":8350},{"style":173},[8351],{"type":58,"value":4292},{"type":52,"tag":160,"props":8353,"children":8354},{"style":173},[8355],{"type":58,"value":4297},{"type":52,"tag":107,"props":8357,"children":8358},{},[8359],{"type":58,"value":4302},{"type":52,"tag":2004,"props":8361,"children":8362},{},[8363,8377,8390,8400],{"type":52,"tag":65,"props":8364,"children":8365},{},[8366,8370,8371],{"type":52,"tag":218,"props":8367,"children":8368},{},[8369],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":8372,"children":8374},{"className":8373},[],[8375],{"type":58,"value":8376},"google_ads",{"type":52,"tag":65,"props":8378,"children":8379},{},[8380,8384,8385],{"type":52,"tag":218,"props":8381,"children":8382},{},[8383],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":8386,"children":8388},{"className":8387},[],[8389],{"type":58,"value":8376},{"type":52,"tag":65,"props":8391,"children":8392},{},[8393,8398],{"type":52,"tag":218,"props":8394,"children":8395},{},[8396],{"type":58,"value":8397},"Customer ID:",{"type":58,"value":8399}," your Google Ads customer ID",{"type":52,"tag":65,"props":8401,"children":8402},{},[8403,8408],{"type":52,"tag":218,"props":8404,"children":8405},{},[8406],{"type":58,"value":8407},"Credentials:",{"type":58,"value":8409}," path to your Google OAuth credentials JSON",{"type":52,"tag":107,"props":8411,"children":8412},{},[8413],{"type":52,"tag":218,"props":8414,"children":8415},{},[8416],{"type":58,"value":6509},{"type":52,"tag":253,"props":8418,"children":8420},{":variants":8419},"[{\"id\":\"gads-campaigns\",\"label\":\"Campaigns\"},{\"id\":\"gads-insights\",\"label\":\"Ad Insights\"}]",[8421,8519],{"type":52,"tag":259,"props":8422,"children":8423},{"v-slot:gads-campaigns":7},[8424],{"type":52,"tag":150,"props":8425,"children":8427},{"className":4558,"code":8426,"language":4560,"meta":7,"style":7},"name: raw.google_campaigns\ntype: ingestr\nparameters:\n  source_connection: google_ads\n  source_table: campaigns\n  incremental_strategy: replace\n",[8428],{"type":52,"tag":71,"props":8429,"children":8430},{"__ignoreMap":7},[8431,8447,8462,8473,8489,8504],{"type":52,"tag":160,"props":8432,"children":8433},{"class":162,"line":163},[8434,8438,8442],{"type":52,"tag":160,"props":8435,"children":8436},{"style":4570},[8437],{"type":58,"value":4627},{"type":52,"tag":160,"props":8439,"children":8440},{"style":4080},[8441],{"type":58,"value":4632},{"type":52,"tag":160,"props":8443,"children":8444},{"style":173},[8445],{"type":58,"value":8446},"raw.google_campaigns\n",{"type":52,"tag":160,"props":8448,"children":8449},{"class":162,"line":281},[8450,8454,8458],{"type":52,"tag":160,"props":8451,"children":8452},{"style":4570},[8453],{"type":58,"value":5772},{"type":52,"tag":160,"props":8455,"children":8456},{"style":4080},[8457],{"type":58,"value":4632},{"type":52,"tag":160,"props":8459,"children":8460},{"style":173},[8461],{"type":58,"value":5781},{"type":52,"tag":160,"props":8463,"children":8464},{"class":162,"line":290},[8465,8469],{"type":52,"tag":160,"props":8466,"children":8467},{"style":4570},[8468],{"type":58,"value":5789},{"type":52,"tag":160,"props":8470,"children":8471},{"style":4080},[8472],{"type":58,"value":4578},{"type":52,"tag":160,"props":8474,"children":8475},{"class":162,"line":299},[8476,8480,8484],{"type":52,"tag":160,"props":8477,"children":8478},{"style":4570},[8479],{"type":58,"value":5801},{"type":52,"tag":160,"props":8481,"children":8482},{"style":4080},[8483],{"type":58,"value":4632},{"type":52,"tag":160,"props":8485,"children":8486},{"style":173},[8487],{"type":58,"value":8488},"google_ads\n",{"type":52,"tag":160,"props":8490,"children":8491},{"class":162,"line":27},[8492,8496,8500],{"type":52,"tag":160,"props":8493,"children":8494},{"style":4570},[8495],{"type":58,"value":5818},{"type":52,"tag":160,"props":8497,"children":8498},{"style":4080},[8499],{"type":58,"value":4632},{"type":52,"tag":160,"props":8501,"children":8502},{"style":173},[8503],{"type":58,"value":7297},{"type":52,"tag":160,"props":8505,"children":8506},{"class":162,"line":316},[8507,8511,8515],{"type":52,"tag":160,"props":8508,"children":8509},{"style":4570},[8510],{"type":58,"value":5852},{"type":52,"tag":160,"props":8512,"children":8513},{"style":4080},[8514],{"type":58,"value":4632},{"type":52,"tag":160,"props":8516,"children":8517},{"style":173},[8518],{"type":58,"value":6331},{"type":52,"tag":259,"props":8520,"children":8521},{"v-slot:gads-insights":7},[8522],{"type":52,"tag":150,"props":8523,"children":8525},{"className":4558,"code":8524,"language":4560,"meta":7,"style":7},"name: raw.google_ad_insights\ntype: ingestr\nparameters:\n  source_connection: google_ads\n  source_table: campaign_performance\n  incremental_strategy: merge\n  incremental_key: date\n  primary_key: \"date,campaign_id\"\n",[8526],{"type":52,"tag":71,"props":8527,"children":8528},{"__ignoreMap":7},[8529,8545,8560,8571,8586,8602,8617,8633],{"type":52,"tag":160,"props":8530,"children":8531},{"class":162,"line":163},[8532,8536,8540],{"type":52,"tag":160,"props":8533,"children":8534},{"style":4570},[8535],{"type":58,"value":4627},{"type":52,"tag":160,"props":8537,"children":8538},{"style":4080},[8539],{"type":58,"value":4632},{"type":52,"tag":160,"props":8541,"children":8542},{"style":173},[8543],{"type":58,"value":8544},"raw.google_ad_insights\n",{"type":52,"tag":160,"props":8546,"children":8547},{"class":162,"line":281},[8548,8552,8556],{"type":52,"tag":160,"props":8549,"children":8550},{"style":4570},[8551],{"type":58,"value":5772},{"type":52,"tag":160,"props":8553,"children":8554},{"style":4080},[8555],{"type":58,"value":4632},{"type":52,"tag":160,"props":8557,"children":8558},{"style":173},[8559],{"type":58,"value":5781},{"type":52,"tag":160,"props":8561,"children":8562},{"class":162,"line":290},[8563,8567],{"type":52,"tag":160,"props":8564,"children":8565},{"style":4570},[8566],{"type":58,"value":5789},{"type":52,"tag":160,"props":8568,"children":8569},{"style":4080},[8570],{"type":58,"value":4578},{"type":52,"tag":160,"props":8572,"children":8573},{"class":162,"line":299},[8574,8578,8582],{"type":52,"tag":160,"props":8575,"children":8576},{"style":4570},[8577],{"type":58,"value":5801},{"type":52,"tag":160,"props":8579,"children":8580},{"style":4080},[8581],{"type":58,"value":4632},{"type":52,"tag":160,"props":8583,"children":8584},{"style":173},[8585],{"type":58,"value":8488},{"type":52,"tag":160,"props":8587,"children":8588},{"class":162,"line":27},[8589,8593,8597],{"type":52,"tag":160,"props":8590,"children":8591},{"style":4570},[8592],{"type":58,"value":5818},{"type":52,"tag":160,"props":8594,"children":8595},{"style":4080},[8596],{"type":58,"value":4632},{"type":52,"tag":160,"props":8598,"children":8599},{"style":173},[8600],{"type":58,"value":8601},"campaign_performance\n",{"type":52,"tag":160,"props":8603,"children":8604},{"class":162,"line":316},[8605,8609,8613],{"type":52,"tag":160,"props":8606,"children":8607},{"style":4570},[8608],{"type":58,"value":5852},{"type":52,"tag":160,"props":8610,"children":8611},{"style":4080},[8612],{"type":58,"value":4632},{"type":52,"tag":160,"props":8614,"children":8615},{"style":173},[8616],{"type":58,"value":5861},{"type":52,"tag":160,"props":8618,"children":8619},{"class":162,"line":325},[8620,8624,8628],{"type":52,"tag":160,"props":8621,"children":8622},{"style":4570},[8623],{"type":58,"value":5869},{"type":52,"tag":160,"props":8625,"children":8626},{"style":4080},[8627],{"type":58,"value":4632},{"type":52,"tag":160,"props":8629,"children":8630},{"style":173},[8631],{"type":58,"value":8632},"date\n",{"type":52,"tag":160,"props":8634,"children":8635},{"class":162,"line":334},[8636,8640,8644],{"type":52,"tag":160,"props":8637,"children":8638},{"style":4570},[8639],{"type":58,"value":5886},{"type":52,"tag":160,"props":8641,"children":8642},{"style":4080},[8643],{"type":58,"value":4632},{"type":52,"tag":160,"props":8645,"children":8646},{"style":173},[8647],{"type":58,"value":8648},"\"date,campaign_id\"\n",{"type":52,"tag":259,"props":8650,"children":8651},{"v-slot:tiktok-ads":7},[8652,8657,8662,8669,8690,8694,8743,8750],{"type":52,"tag":5704,"props":8653,"children":8655},{"id":8654},"tiktok-ads",[8656],{"type":58,"value":5362},{"type":52,"tag":107,"props":8658,"children":8659},{},[8660],{"type":58,"value":8661},"TikTok Ads covers your TikTok video ad spend and performance.",{"type":52,"tag":107,"props":8663,"children":8664},{},[8665],{"type":52,"tag":218,"props":8666,"children":8667},{},[8668],{"type":58,"value":7993},{"type":52,"tag":150,"props":8670,"children":8671},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[8672],{"type":52,"tag":71,"props":8673,"children":8674},{"__ignoreMap":7},[8675],{"type":52,"tag":160,"props":8676,"children":8677},{"class":162,"line":163},[8678,8682,8686],{"type":52,"tag":160,"props":8679,"children":8680},{"style":167},[8681],{"type":58,"value":170},{"type":52,"tag":160,"props":8683,"children":8684},{"style":173},[8685],{"type":58,"value":4292},{"type":52,"tag":160,"props":8687,"children":8688},{"style":173},[8689],{"type":58,"value":4297},{"type":52,"tag":107,"props":8691,"children":8692},{},[8693],{"type":58,"value":4302},{"type":52,"tag":2004,"props":8695,"children":8696},{},[8697,8711,8724,8733],{"type":52,"tag":65,"props":8698,"children":8699},{},[8700,8704,8705],{"type":52,"tag":218,"props":8701,"children":8702},{},[8703],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":8706,"children":8708},{"className":8707},[],[8709],{"type":58,"value":8710},"tiktok_ads",{"type":52,"tag":65,"props":8712,"children":8713},{},[8714,8718,8719],{"type":52,"tag":218,"props":8715,"children":8716},{},[8717],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":8720,"children":8722},{"className":8721},[],[8723],{"type":58,"value":8710},{"type":52,"tag":65,"props":8725,"children":8726},{},[8727,8731],{"type":52,"tag":218,"props":8728,"children":8729},{},[8730],{"type":58,"value":8056},{"type":58,"value":8732}," your TikTok Marketing API access token",{"type":52,"tag":65,"props":8734,"children":8735},{},[8736,8741],{"type":52,"tag":218,"props":8737,"children":8738},{},[8739],{"type":58,"value":8740},"Advertiser ID:",{"type":58,"value":8742}," your TikTok advertiser ID",{"type":52,"tag":107,"props":8744,"children":8745},{},[8746],{"type":52,"tag":218,"props":8747,"children":8748},{},[8749],{"type":58,"value":6509},{"type":52,"tag":253,"props":8751,"children":8753},{":variants":8752},"[{\"id\":\"tt-campaigns\",\"label\":\"Campaigns\"},{\"id\":\"tt-insights\",\"label\":\"Ad Insights\"}]",[8754,8852],{"type":52,"tag":259,"props":8755,"children":8756},{"v-slot:tt-campaigns":7},[8757],{"type":52,"tag":150,"props":8758,"children":8760},{"className":4558,"code":8759,"language":4560,"meta":7,"style":7},"name: raw.tiktok_campaigns\ntype: ingestr\nparameters:\n  source_connection: tiktok_ads\n  source_table: campaigns\n  incremental_strategy: replace\n",[8761],{"type":52,"tag":71,"props":8762,"children":8763},{"__ignoreMap":7},[8764,8780,8795,8806,8822,8837],{"type":52,"tag":160,"props":8765,"children":8766},{"class":162,"line":163},[8767,8771,8775],{"type":52,"tag":160,"props":8768,"children":8769},{"style":4570},[8770],{"type":58,"value":4627},{"type":52,"tag":160,"props":8772,"children":8773},{"style":4080},[8774],{"type":58,"value":4632},{"type":52,"tag":160,"props":8776,"children":8777},{"style":173},[8778],{"type":58,"value":8779},"raw.tiktok_campaigns\n",{"type":52,"tag":160,"props":8781,"children":8782},{"class":162,"line":281},[8783,8787,8791],{"type":52,"tag":160,"props":8784,"children":8785},{"style":4570},[8786],{"type":58,"value":5772},{"type":52,"tag":160,"props":8788,"children":8789},{"style":4080},[8790],{"type":58,"value":4632},{"type":52,"tag":160,"props":8792,"children":8793},{"style":173},[8794],{"type":58,"value":5781},{"type":52,"tag":160,"props":8796,"children":8797},{"class":162,"line":290},[8798,8802],{"type":52,"tag":160,"props":8799,"children":8800},{"style":4570},[8801],{"type":58,"value":5789},{"type":52,"tag":160,"props":8803,"children":8804},{"style":4080},[8805],{"type":58,"value":4578},{"type":52,"tag":160,"props":8807,"children":8808},{"class":162,"line":299},[8809,8813,8817],{"type":52,"tag":160,"props":8810,"children":8811},{"style":4570},[8812],{"type":58,"value":5801},{"type":52,"tag":160,"props":8814,"children":8815},{"style":4080},[8816],{"type":58,"value":4632},{"type":52,"tag":160,"props":8818,"children":8819},{"style":173},[8820],{"type":58,"value":8821},"tiktok_ads\n",{"type":52,"tag":160,"props":8823,"children":8824},{"class":162,"line":27},[8825,8829,8833],{"type":52,"tag":160,"props":8826,"children":8827},{"style":4570},[8828],{"type":58,"value":5818},{"type":52,"tag":160,"props":8830,"children":8831},{"style":4080},[8832],{"type":58,"value":4632},{"type":52,"tag":160,"props":8834,"children":8835},{"style":173},[8836],{"type":58,"value":7297},{"type":52,"tag":160,"props":8838,"children":8839},{"class":162,"line":316},[8840,8844,8848],{"type":52,"tag":160,"props":8841,"children":8842},{"style":4570},[8843],{"type":58,"value":5852},{"type":52,"tag":160,"props":8845,"children":8846},{"style":4080},[8847],{"type":58,"value":4632},{"type":52,"tag":160,"props":8849,"children":8850},{"style":173},[8851],{"type":58,"value":6331},{"type":52,"tag":259,"props":8853,"children":8854},{"v-slot:tt-insights":7},[8855],{"type":52,"tag":150,"props":8856,"children":8858},{"className":4558,"code":8857,"language":4560,"meta":7,"style":7},"name: raw.tiktok_ad_insights\ntype: ingestr\nparameters:\n  source_connection: tiktok_ads\n  source_table: ads\n  incremental_strategy: merge\n  incremental_key: stat_datetime\n  primary_key: \"stat_datetime,campaign_id\"\n",[8859],{"type":52,"tag":71,"props":8860,"children":8861},{"__ignoreMap":7},[8862,8878,8893,8904,8919,8935,8950,8966],{"type":52,"tag":160,"props":8863,"children":8864},{"class":162,"line":163},[8865,8869,8873],{"type":52,"tag":160,"props":8866,"children":8867},{"style":4570},[8868],{"type":58,"value":4627},{"type":52,"tag":160,"props":8870,"children":8871},{"style":4080},[8872],{"type":58,"value":4632},{"type":52,"tag":160,"props":8874,"children":8875},{"style":173},[8876],{"type":58,"value":8877},"raw.tiktok_ad_insights\n",{"type":52,"tag":160,"props":8879,"children":8880},{"class":162,"line":281},[8881,8885,8889],{"type":52,"tag":160,"props":8882,"children":8883},{"style":4570},[8884],{"type":58,"value":5772},{"type":52,"tag":160,"props":8886,"children":8887},{"style":4080},[8888],{"type":58,"value":4632},{"type":52,"tag":160,"props":8890,"children":8891},{"style":173},[8892],{"type":58,"value":5781},{"type":52,"tag":160,"props":8894,"children":8895},{"class":162,"line":290},[8896,8900],{"type":52,"tag":160,"props":8897,"children":8898},{"style":4570},[8899],{"type":58,"value":5789},{"type":52,"tag":160,"props":8901,"children":8902},{"style":4080},[8903],{"type":58,"value":4578},{"type":52,"tag":160,"props":8905,"children":8906},{"class":162,"line":299},[8907,8911,8915],{"type":52,"tag":160,"props":8908,"children":8909},{"style":4570},[8910],{"type":58,"value":5801},{"type":52,"tag":160,"props":8912,"children":8913},{"style":4080},[8914],{"type":58,"value":4632},{"type":52,"tag":160,"props":8916,"children":8917},{"style":173},[8918],{"type":58,"value":8821},{"type":52,"tag":160,"props":8920,"children":8921},{"class":162,"line":27},[8922,8926,8930],{"type":52,"tag":160,"props":8923,"children":8924},{"style":4570},[8925],{"type":58,"value":5818},{"type":52,"tag":160,"props":8927,"children":8928},{"style":4080},[8929],{"type":58,"value":4632},{"type":52,"tag":160,"props":8931,"children":8932},{"style":173},[8933],{"type":58,"value":8934},"ads\n",{"type":52,"tag":160,"props":8936,"children":8937},{"class":162,"line":316},[8938,8942,8946],{"type":52,"tag":160,"props":8939,"children":8940},{"style":4570},[8941],{"type":58,"value":5852},{"type":52,"tag":160,"props":8943,"children":8944},{"style":4080},[8945],{"type":58,"value":4632},{"type":52,"tag":160,"props":8947,"children":8948},{"style":173},[8949],{"type":58,"value":5861},{"type":52,"tag":160,"props":8951,"children":8952},{"class":162,"line":325},[8953,8957,8961],{"type":52,"tag":160,"props":8954,"children":8955},{"style":4570},[8956],{"type":58,"value":5869},{"type":52,"tag":160,"props":8958,"children":8959},{"style":4080},[8960],{"type":58,"value":4632},{"type":52,"tag":160,"props":8962,"children":8963},{"style":173},[8964],{"type":58,"value":8965},"stat_datetime\n",{"type":52,"tag":160,"props":8967,"children":8968},{"class":162,"line":334},[8969,8973,8977],{"type":52,"tag":160,"props":8970,"children":8971},{"style":4570},[8972],{"type":58,"value":5886},{"type":52,"tag":160,"props":8974,"children":8975},{"style":4080},[8976],{"type":58,"value":4632},{"type":52,"tag":160,"props":8978,"children":8979},{"style":173},[8980],{"type":58,"value":8981},"\"stat_datetime,campaign_id\"\n",{"type":52,"tag":5605,"props":8983,"children":8984},{},[],{"type":52,"tag":131,"props":8986,"children":8988},{"id":8987},"web-analytics",[8989],{"type":58,"value":8990},"Web Analytics",{"type":52,"tag":253,"props":8992,"children":8995},{":variants":8993,"group":8994},"[{\"id\":\"ga4\",\"label\":\"GA4\"},{\"id\":\"mixpanel\",\"label\":\"Mixpanel\"}]","analytics",[8996,9367],{"type":52,"tag":259,"props":8997,"children":8998},{"v-slot:ga4":7},[8999,9004,9009,9016,9037,9041,9098,9105],{"type":52,"tag":5704,"props":9000,"children":9002},{"id":9001},"ga4",[9003],{"type":58,"value":5366},{"type":52,"tag":107,"props":9005,"children":9006},{},[9007],{"type":58,"value":9008},"GA4 gives you the website funnel: who's visiting, where they come from, and what they do.",{"type":52,"tag":107,"props":9010,"children":9011},{},[9012],{"type":52,"tag":218,"props":9013,"children":9014},{},[9015],{"type":58,"value":7993},{"type":52,"tag":150,"props":9017,"children":9018},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[9019],{"type":52,"tag":71,"props":9020,"children":9021},{"__ignoreMap":7},[9022],{"type":52,"tag":160,"props":9023,"children":9024},{"class":162,"line":163},[9025,9029,9033],{"type":52,"tag":160,"props":9026,"children":9027},{"style":167},[9028],{"type":58,"value":170},{"type":52,"tag":160,"props":9030,"children":9031},{"style":173},[9032],{"type":58,"value":4292},{"type":52,"tag":160,"props":9034,"children":9035},{"style":173},[9036],{"type":58,"value":4297},{"type":52,"tag":107,"props":9038,"children":9039},{},[9040],{"type":58,"value":4302},{"type":52,"tag":2004,"props":9042,"children":9043},{},[9044,9058,9071,9088],{"type":52,"tag":65,"props":9045,"children":9046},{},[9047,9051,9052],{"type":52,"tag":218,"props":9048,"children":9049},{},[9050],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":9053,"children":9055},{"className":9054},[],[9056],{"type":58,"value":9057},"google_analytics",{"type":52,"tag":65,"props":9059,"children":9060},{},[9061,9065,9066],{"type":52,"tag":218,"props":9062,"children":9063},{},[9064],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":9067,"children":9069},{"className":9068},[],[9070],{"type":58,"value":9057},{"type":52,"tag":65,"props":9072,"children":9073},{},[9074,9079,9081],{"type":52,"tag":218,"props":9075,"children":9076},{},[9077],{"type":58,"value":9078},"Credentials path:",{"type":58,"value":9080}," path to your ",{"type":52,"tag":1876,"props":9082,"children":9085},{"href":9083,"rel":9084},"https:\u002F\u002Fcloud.google.com\u002Fiam\u002Fdocs\u002Fkeys-create-delete",[1880],[9086],{"type":58,"value":9087},"Google service account JSON",{"type":52,"tag":65,"props":9089,"children":9090},{},[9091,9096],{"type":52,"tag":218,"props":9092,"children":9093},{},[9094],{"type":58,"value":9095},"Property ID:",{"type":58,"value":9097}," your GA4 property ID (found in GA4 Admin > Property Settings)",{"type":52,"tag":107,"props":9099,"children":9100},{},[9101],{"type":52,"tag":218,"props":9102,"children":9103},{},[9104],{"type":58,"value":6509},{"type":52,"tag":253,"props":9106,"children":9108},{":variants":9107},"[{\"id\":\"ga4-events\",\"label\":\"Events\"},{\"id\":\"ga4-sessions\",\"label\":\"Sessions\"}]",[9109,9239],{"type":52,"tag":259,"props":9110,"children":9111},{"v-slot:ga4-events":7},[9112],{"type":52,"tag":150,"props":9113,"children":9115},{"className":4558,"code":9114,"language":4560,"meta":7,"style":7},"name: raw.ga4_events\ntype: ingestr\nparameters:\n  source_connection: google_analytics\n  source_table: events\n  incremental_strategy: merge\n  incremental_key: date\n  primary_key: \"date,event_name\"\n",[9116],{"type":52,"tag":71,"props":9117,"children":9118},{"__ignoreMap":7},[9119,9135,9150,9161,9177,9193,9208,9223],{"type":52,"tag":160,"props":9120,"children":9121},{"class":162,"line":163},[9122,9126,9130],{"type":52,"tag":160,"props":9123,"children":9124},{"style":4570},[9125],{"type":58,"value":4627},{"type":52,"tag":160,"props":9127,"children":9128},{"style":4080},[9129],{"type":58,"value":4632},{"type":52,"tag":160,"props":9131,"children":9132},{"style":173},[9133],{"type":58,"value":9134},"raw.ga4_events\n",{"type":52,"tag":160,"props":9136,"children":9137},{"class":162,"line":281},[9138,9142,9146],{"type":52,"tag":160,"props":9139,"children":9140},{"style":4570},[9141],{"type":58,"value":5772},{"type":52,"tag":160,"props":9143,"children":9144},{"style":4080},[9145],{"type":58,"value":4632},{"type":52,"tag":160,"props":9147,"children":9148},{"style":173},[9149],{"type":58,"value":5781},{"type":52,"tag":160,"props":9151,"children":9152},{"class":162,"line":290},[9153,9157],{"type":52,"tag":160,"props":9154,"children":9155},{"style":4570},[9156],{"type":58,"value":5789},{"type":52,"tag":160,"props":9158,"children":9159},{"style":4080},[9160],{"type":58,"value":4578},{"type":52,"tag":160,"props":9162,"children":9163},{"class":162,"line":299},[9164,9168,9172],{"type":52,"tag":160,"props":9165,"children":9166},{"style":4570},[9167],{"type":58,"value":5801},{"type":52,"tag":160,"props":9169,"children":9170},{"style":4080},[9171],{"type":58,"value":4632},{"type":52,"tag":160,"props":9173,"children":9174},{"style":173},[9175],{"type":58,"value":9176},"google_analytics\n",{"type":52,"tag":160,"props":9178,"children":9179},{"class":162,"line":27},[9180,9184,9188],{"type":52,"tag":160,"props":9181,"children":9182},{"style":4570},[9183],{"type":58,"value":5818},{"type":52,"tag":160,"props":9185,"children":9186},{"style":4080},[9187],{"type":58,"value":4632},{"type":52,"tag":160,"props":9189,"children":9190},{"style":173},[9191],{"type":58,"value":9192},"events\n",{"type":52,"tag":160,"props":9194,"children":9195},{"class":162,"line":316},[9196,9200,9204],{"type":52,"tag":160,"props":9197,"children":9198},{"style":4570},[9199],{"type":58,"value":5852},{"type":52,"tag":160,"props":9201,"children":9202},{"style":4080},[9203],{"type":58,"value":4632},{"type":52,"tag":160,"props":9205,"children":9206},{"style":173},[9207],{"type":58,"value":5861},{"type":52,"tag":160,"props":9209,"children":9210},{"class":162,"line":325},[9211,9215,9219],{"type":52,"tag":160,"props":9212,"children":9213},{"style":4570},[9214],{"type":58,"value":5869},{"type":52,"tag":160,"props":9216,"children":9217},{"style":4080},[9218],{"type":58,"value":4632},{"type":52,"tag":160,"props":9220,"children":9221},{"style":173},[9222],{"type":58,"value":8632},{"type":52,"tag":160,"props":9224,"children":9225},{"class":162,"line":334},[9226,9230,9234],{"type":52,"tag":160,"props":9227,"children":9228},{"style":4570},[9229],{"type":58,"value":5886},{"type":52,"tag":160,"props":9231,"children":9232},{"style":4080},[9233],{"type":58,"value":4632},{"type":52,"tag":160,"props":9235,"children":9236},{"style":173},[9237],{"type":58,"value":9238},"\"date,event_name\"\n",{"type":52,"tag":259,"props":9240,"children":9241},{"v-slot:ga4-sessions":7},[9242],{"type":52,"tag":150,"props":9243,"children":9245},{"className":4558,"code":9244,"language":4560,"meta":7,"style":7},"name: raw.ga4_sessions\ntype: ingestr\nparameters:\n  source_connection: google_analytics\n  source_table: sessions\n  incremental_strategy: merge\n  incremental_key: date\n  primary_key: date\n",[9246],{"type":52,"tag":71,"props":9247,"children":9248},{"__ignoreMap":7},[9249,9265,9280,9291,9306,9322,9337,9352],{"type":52,"tag":160,"props":9250,"children":9251},{"class":162,"line":163},[9252,9256,9260],{"type":52,"tag":160,"props":9253,"children":9254},{"style":4570},[9255],{"type":58,"value":4627},{"type":52,"tag":160,"props":9257,"children":9258},{"style":4080},[9259],{"type":58,"value":4632},{"type":52,"tag":160,"props":9261,"children":9262},{"style":173},[9263],{"type":58,"value":9264},"raw.ga4_sessions\n",{"type":52,"tag":160,"props":9266,"children":9267},{"class":162,"line":281},[9268,9272,9276],{"type":52,"tag":160,"props":9269,"children":9270},{"style":4570},[9271],{"type":58,"value":5772},{"type":52,"tag":160,"props":9273,"children":9274},{"style":4080},[9275],{"type":58,"value":4632},{"type":52,"tag":160,"props":9277,"children":9278},{"style":173},[9279],{"type":58,"value":5781},{"type":52,"tag":160,"props":9281,"children":9282},{"class":162,"line":290},[9283,9287],{"type":52,"tag":160,"props":9284,"children":9285},{"style":4570},[9286],{"type":58,"value":5789},{"type":52,"tag":160,"props":9288,"children":9289},{"style":4080},[9290],{"type":58,"value":4578},{"type":52,"tag":160,"props":9292,"children":9293},{"class":162,"line":299},[9294,9298,9302],{"type":52,"tag":160,"props":9295,"children":9296},{"style":4570},[9297],{"type":58,"value":5801},{"type":52,"tag":160,"props":9299,"children":9300},{"style":4080},[9301],{"type":58,"value":4632},{"type":52,"tag":160,"props":9303,"children":9304},{"style":173},[9305],{"type":58,"value":9176},{"type":52,"tag":160,"props":9307,"children":9308},{"class":162,"line":27},[9309,9313,9317],{"type":52,"tag":160,"props":9310,"children":9311},{"style":4570},[9312],{"type":58,"value":5818},{"type":52,"tag":160,"props":9314,"children":9315},{"style":4080},[9316],{"type":58,"value":4632},{"type":52,"tag":160,"props":9318,"children":9319},{"style":173},[9320],{"type":58,"value":9321},"sessions\n",{"type":52,"tag":160,"props":9323,"children":9324},{"class":162,"line":316},[9325,9329,9333],{"type":52,"tag":160,"props":9326,"children":9327},{"style":4570},[9328],{"type":58,"value":5852},{"type":52,"tag":160,"props":9330,"children":9331},{"style":4080},[9332],{"type":58,"value":4632},{"type":52,"tag":160,"props":9334,"children":9335},{"style":173},[9336],{"type":58,"value":5861},{"type":52,"tag":160,"props":9338,"children":9339},{"class":162,"line":325},[9340,9344,9348],{"type":52,"tag":160,"props":9341,"children":9342},{"style":4570},[9343],{"type":58,"value":5869},{"type":52,"tag":160,"props":9345,"children":9346},{"style":4080},[9347],{"type":58,"value":4632},{"type":52,"tag":160,"props":9349,"children":9350},{"style":173},[9351],{"type":58,"value":8632},{"type":52,"tag":160,"props":9353,"children":9354},{"class":162,"line":334},[9355,9359,9363],{"type":52,"tag":160,"props":9356,"children":9357},{"style":4570},[9358],{"type":58,"value":5886},{"type":52,"tag":160,"props":9360,"children":9361},{"style":4080},[9362],{"type":58,"value":4632},{"type":52,"tag":160,"props":9364,"children":9365},{"style":173},[9366],{"type":58,"value":8632},{"type":52,"tag":259,"props":9368,"children":9369},{"v-slot:mixpanel":7},[9370,9375,9380,9387,9408,9412,9451,9458],{"type":52,"tag":5704,"props":9371,"children":9373},{"id":9372},"mixpanel",[9374],{"type":58,"value":5364},{"type":52,"tag":107,"props":9376,"children":9377},{},[9378],{"type":58,"value":9379},"Mixpanel gives you product analytics: user events, funnels, and engagement data.",{"type":52,"tag":107,"props":9381,"children":9382},{},[9383],{"type":52,"tag":218,"props":9384,"children":9385},{},[9386],{"type":58,"value":7993},{"type":52,"tag":150,"props":9388,"children":9389},{"className":152,"code":4276,"language":154,"meta":7,"style":7},[9390],{"type":52,"tag":71,"props":9391,"children":9392},{"__ignoreMap":7},[9393],{"type":52,"tag":160,"props":9394,"children":9395},{"class":162,"line":163},[9396,9400,9404],{"type":52,"tag":160,"props":9397,"children":9398},{"style":167},[9399],{"type":58,"value":170},{"type":52,"tag":160,"props":9401,"children":9402},{"style":173},[9403],{"type":58,"value":4292},{"type":52,"tag":160,"props":9405,"children":9406},{"style":173},[9407],{"type":58,"value":4297},{"type":52,"tag":107,"props":9409,"children":9410},{},[9411],{"type":58,"value":4302},{"type":52,"tag":2004,"props":9413,"children":9414},{},[9415,9428,9441],{"type":52,"tag":65,"props":9416,"children":9417},{},[9418,9422,9423],{"type":52,"tag":218,"props":9419,"children":9420},{},[9421],{"type":58,"value":4313},{"type":58,"value":1725},{"type":52,"tag":71,"props":9424,"children":9426},{"className":9425},[],[9427],{"type":58,"value":9372},{"type":52,"tag":65,"props":9429,"children":9430},{},[9431,9435,9436],{"type":52,"tag":218,"props":9432,"children":9433},{},[9434],{"type":58,"value":4327},{"type":58,"value":1725},{"type":52,"tag":71,"props":9437,"children":9439},{"className":9438},[],[9440],{"type":58,"value":9372},{"type":52,"tag":65,"props":9442,"children":9443},{},[9444,9449],{"type":52,"tag":218,"props":9445,"children":9446},{},[9447],{"type":58,"value":9448},"API secret:",{"type":58,"value":9450}," your Mixpanel API secret (found in Project Settings)",{"type":52,"tag":107,"props":9452,"children":9453},{},[9454],{"type":52,"tag":218,"props":9455,"children":9456},{},[9457],{"type":58,"value":6509},{"type":52,"tag":253,"props":9459,"children":9461},{":variants":9460},"[{\"id\":\"mp-events\",\"label\":\"Events\"},{\"id\":\"mp-funnels\",\"label\":\"Funnels\"}]",[9462,9592],{"type":52,"tag":259,"props":9463,"children":9464},{"v-slot:mp-events":7},[9465],{"type":52,"tag":150,"props":9466,"children":9468},{"className":4558,"code":9467,"language":4560,"meta":7,"style":7},"name: raw.mixpanel_events\ntype: ingestr\nparameters:\n  source_connection: mixpanel\n  source_table: events\n  incremental_strategy: merge\n  incremental_key: time\n  primary_key: \"distinct_id,time\"\n",[9469],{"type":52,"tag":71,"props":9470,"children":9471},{"__ignoreMap":7},[9472,9488,9503,9514,9530,9545,9560,9576],{"type":52,"tag":160,"props":9473,"children":9474},{"class":162,"line":163},[9475,9479,9483],{"type":52,"tag":160,"props":9476,"children":9477},{"style":4570},[9478],{"type":58,"value":4627},{"type":52,"tag":160,"props":9480,"children":9481},{"style":4080},[9482],{"type":58,"value":4632},{"type":52,"tag":160,"props":9484,"children":9485},{"style":173},[9486],{"type":58,"value":9487},"raw.mixpanel_events\n",{"type":52,"tag":160,"props":9489,"children":9490},{"class":162,"line":281},[9491,9495,9499],{"type":52,"tag":160,"props":9492,"children":9493},{"style":4570},[9494],{"type":58,"value":5772},{"type":52,"tag":160,"props":9496,"children":9497},{"style":4080},[9498],{"type":58,"value":4632},{"type":52,"tag":160,"props":9500,"children":9501},{"style":173},[9502],{"type":58,"value":5781},{"type":52,"tag":160,"props":9504,"children":9505},{"class":162,"line":290},[9506,9510],{"type":52,"tag":160,"props":9507,"children":9508},{"style":4570},[9509],{"type":58,"value":5789},{"type":52,"tag":160,"props":9511,"children":9512},{"style":4080},[9513],{"type":58,"value":4578},{"type":52,"tag":160,"props":9515,"children":9516},{"class":162,"line":299},[9517,9521,9525],{"type":52,"tag":160,"props":9518,"children":9519},{"style":4570},[9520],{"type":58,"value":5801},{"type":52,"tag":160,"props":9522,"children":9523},{"style":4080},[9524],{"type":58,"value":4632},{"type":52,"tag":160,"props":9526,"children":9527},{"style":173},[9528],{"type":58,"value":9529},"mixpanel\n",{"type":52,"tag":160,"props":9531,"children":9532},{"class":162,"line":27},[9533,9537,9541],{"type":52,"tag":160,"props":9534,"children":9535},{"style":4570},[9536],{"type":58,"value":5818},{"type":52,"tag":160,"props":9538,"children":9539},{"style":4080},[9540],{"type":58,"value":4632},{"type":52,"tag":160,"props":9542,"children":9543},{"style":173},[9544],{"type":58,"value":9192},{"type":52,"tag":160,"props":9546,"children":9547},{"class":162,"line":316},[9548,9552,9556],{"type":52,"tag":160,"props":9549,"children":9550},{"style":4570},[9551],{"type":58,"value":5852},{"type":52,"tag":160,"props":9553,"children":9554},{"style":4080},[9555],{"type":58,"value":4632},{"type":52,"tag":160,"props":9557,"children":9558},{"style":173},[9559],{"type":58,"value":5861},{"type":52,"tag":160,"props":9561,"children":9562},{"class":162,"line":325},[9563,9567,9571],{"type":52,"tag":160,"props":9564,"children":9565},{"style":4570},[9566],{"type":58,"value":5869},{"type":52,"tag":160,"props":9568,"children":9569},{"style":4080},[9570],{"type":58,"value":4632},{"type":52,"tag":160,"props":9572,"children":9573},{"style":173},[9574],{"type":58,"value":9575},"time\n",{"type":52,"tag":160,"props":9577,"children":9578},{"class":162,"line":334},[9579,9583,9587],{"type":52,"tag":160,"props":9580,"children":9581},{"style":4570},[9582],{"type":58,"value":5886},{"type":52,"tag":160,"props":9584,"children":9585},{"style":4080},[9586],{"type":58,"value":4632},{"type":52,"tag":160,"props":9588,"children":9589},{"style":173},[9590],{"type":58,"value":9591},"\"distinct_id,time\"\n",{"type":52,"tag":259,"props":9593,"children":9594},{"v-slot:mp-funnels":7},[9595],{"type":52,"tag":150,"props":9596,"children":9598},{"className":4558,"code":9597,"language":4560,"meta":7,"style":7},"name: raw.mixpanel_funnels\ntype: ingestr\nparameters:\n  source_connection: mixpanel\n  source_table: funnels\n  incremental_strategy: replace\n",[9599],{"type":52,"tag":71,"props":9600,"children":9601},{"__ignoreMap":7},[9602,9618,9633,9644,9659,9675],{"type":52,"tag":160,"props":9603,"children":9604},{"class":162,"line":163},[9605,9609,9613],{"type":52,"tag":160,"props":9606,"children":9607},{"style":4570},[9608],{"type":58,"value":4627},{"type":52,"tag":160,"props":9610,"children":9611},{"style":4080},[9612],{"type":58,"value":4632},{"type":52,"tag":160,"props":9614,"children":9615},{"style":173},[9616],{"type":58,"value":9617},"raw.mixpanel_funnels\n",{"type":52,"tag":160,"props":9619,"children":9620},{"class":162,"line":281},[9621,9625,9629],{"type":52,"tag":160,"props":9622,"children":9623},{"style":4570},[9624],{"type":58,"value":5772},{"type":52,"tag":160,"props":9626,"children":9627},{"style":4080},[9628],{"type":58,"value":4632},{"type":52,"tag":160,"props":9630,"children":9631},{"style":173},[9632],{"type":58,"value":5781},{"type":52,"tag":160,"props":9634,"children":9635},{"class":162,"line":290},[9636,9640],{"type":52,"tag":160,"props":9637,"children":9638},{"style":4570},[9639],{"type":58,"value":5789},{"type":52,"tag":160,"props":9641,"children":9642},{"style":4080},[9643],{"type":58,"value":4578},{"type":52,"tag":160,"props":9645,"children":9646},{"class":162,"line":299},[9647,9651,9655],{"type":52,"tag":160,"props":9648,"children":9649},{"style":4570},[9650],{"type":58,"value":5801},{"type":52,"tag":160,"props":9652,"children":9653},{"style":4080},[9654],{"type":58,"value":4632},{"type":52,"tag":160,"props":9656,"children":9657},{"style":173},[9658],{"type":58,"value":9529},{"type":52,"tag":160,"props":9660,"children":9661},{"class":162,"line":27},[9662,9666,9670],{"type":52,"tag":160,"props":9663,"children":9664},{"style":4570},[9665],{"type":58,"value":5818},{"type":52,"tag":160,"props":9667,"children":9668},{"style":4080},[9669],{"type":58,"value":4632},{"type":52,"tag":160,"props":9671,"children":9672},{"style":173},[9673],{"type":58,"value":9674},"funnels\n",{"type":52,"tag":160,"props":9676,"children":9677},{"class":162,"line":316},[9678,9682,9686],{"type":52,"tag":160,"props":9679,"children":9680},{"style":4570},[9681],{"type":58,"value":5852},{"type":52,"tag":160,"props":9683,"children":9684},{"style":4080},[9685],{"type":58,"value":4632},{"type":52,"tag":160,"props":9687,"children":9688},{"style":173},[9689],{"type":58,"value":6331},{"type":52,"tag":5605,"props":9691,"children":9692},{},[],{"type":52,"tag":131,"props":9694,"children":9696},{"id":9695},"validate-and-run",[9697],{"type":58,"value":9698},"Validate and run",{"type":52,"tag":107,"props":9700,"children":9701},{},[9702],{"type":58,"value":9703},"Validate that all your asset definitions are correct:",{"type":52,"tag":150,"props":9705,"children":9706},{"className":152,"code":5280,"language":154,"meta":7,"style":7},[9707],{"type":52,"tag":71,"props":9708,"children":9709},{"__ignoreMap":7},[9710],{"type":52,"tag":160,"props":9711,"children":9712},{"class":162,"line":163},[9713,9717,9721],{"type":52,"tag":160,"props":9714,"children":9715},{"style":167},[9716],{"type":58,"value":170},{"type":52,"tag":160,"props":9718,"children":9719},{"style":173},[9720],{"type":58,"value":5296},{"type":52,"tag":160,"props":9722,"children":9723},{"style":173},[9724],{"type":58,"value":5301},{"type":52,"tag":107,"props":9726,"children":9727},{},[9728],{"type":58,"value":9729},"Or ask Claude Code:",{"type":52,"tag":239,"props":9731,"children":9732},{},[9733],{"type":52,"tag":107,"props":9734,"children":9735},{},[9736],{"type":58,"value":9737},"Run bruin validate and fix any issues you find in the asset files.",{"type":52,"tag":107,"props":9739,"children":9740},{},[9741],{"type":58,"value":9742},"Fix any errors - the most common issue is a typo in a connection name or a missing required field.",{"type":52,"tag":107,"props":9744,"children":9745},{},[9746],{"type":58,"value":9747},"Then run the pipeline. For your first run, start with a small date range (about a month) to verify everything works before doing a full backfill:",{"type":52,"tag":150,"props":9749,"children":9751},{"className":152,"code":9750,"language":154,"meta":7,"style":7},"bruin run --start-date 2025-01-01 --end-date 2025-02-01 .\n",[9752],{"type":52,"tag":71,"props":9753,"children":9754},{"__ignoreMap":7},[9755],{"type":52,"tag":160,"props":9756,"children":9757},{"class":162,"line":163},[9758,9762,9767,9772,9777,9782,9787],{"type":52,"tag":160,"props":9759,"children":9760},{"style":167},[9761],{"type":58,"value":170},{"type":52,"tag":160,"props":9763,"children":9764},{"style":173},[9765],{"type":58,"value":9766}," run",{"type":52,"tag":160,"props":9768,"children":9769},{"style":1771},[9770],{"type":58,"value":9771}," --start-date",{"type":52,"tag":160,"props":9773,"children":9774},{"style":173},[9775],{"type":58,"value":9776}," 2025-01-01",{"type":52,"tag":160,"props":9778,"children":9779},{"style":1771},[9780],{"type":58,"value":9781}," --end-date",{"type":52,"tag":160,"props":9783,"children":9784},{"style":173},[9785],{"type":58,"value":9786}," 2025-02-01",{"type":52,"tag":160,"props":9788,"children":9789},{"style":173},[9790],{"type":58,"value":5301},{"type":52,"tag":107,"props":9792,"children":9793},{},[9794,9796,9802,9804,9810,9812,9817,9818,9822],{"type":58,"value":9795},"This tells Bruin to only pull data within that interval. The ",{"type":52,"tag":71,"props":9797,"children":9799},{"className":9798},[],[9800],{"type":58,"value":9801},"--start-date",{"type":58,"value":9803}," and ",{"type":52,"tag":71,"props":9805,"children":9807},{"className":9806},[],[9808],{"type":58,"value":9809},"--end-date",{"type":58,"value":9811}," flags control the date range passed to each ",{"type":52,"tag":1876,"props":9813,"children":9814},{"href":3986},[9815],{"type":58,"value":9816},"ingestor asset",{"type":58,"value":5543},{"type":52,"tag":1876,"props":9819,"children":9820},{"href":4001},[9821],{"type":58,"value":4004},{"type":58,"value":9823}," for all available flags.",{"type":52,"tag":107,"props":9825,"children":9826},{},[9827,9829,9835,9836,9842],{"type":58,"value":9828},"If you have multiple environments (e.g. ",{"type":52,"tag":71,"props":9830,"children":9832},{"className":9831},[],[9833],{"type":58,"value":9834},"dev",{"type":58,"value":9803},{"type":52,"tag":71,"props":9837,"children":9839},{"className":9838},[],[9840],{"type":58,"value":9841},"prod",{"type":58,"value":9843},"), you can specify which one to use:",{"type":52,"tag":150,"props":9845,"children":9847},{"className":152,"code":9846,"language":154,"meta":7,"style":7},"bruin run --start-date 2025-01-01 --end-date 2025-02-01 -e default .\n",[9848],{"type":52,"tag":71,"props":9849,"children":9850},{"__ignoreMap":7},[9851],{"type":52,"tag":160,"props":9852,"children":9853},{"class":162,"line":163},[9854,9858,9862,9866,9870,9874,9878,9883,9888],{"type":52,"tag":160,"props":9855,"children":9856},{"style":167},[9857],{"type":58,"value":170},{"type":52,"tag":160,"props":9859,"children":9860},{"style":173},[9861],{"type":58,"value":9766},{"type":52,"tag":160,"props":9863,"children":9864},{"style":1771},[9865],{"type":58,"value":9771},{"type":52,"tag":160,"props":9867,"children":9868},{"style":173},[9869],{"type":58,"value":9776},{"type":52,"tag":160,"props":9871,"children":9872},{"style":1771},[9873],{"type":58,"value":9781},{"type":52,"tag":160,"props":9875,"children":9876},{"style":173},[9877],{"type":58,"value":9786},{"type":52,"tag":160,"props":9879,"children":9880},{"style":1771},[9881],{"type":58,"value":9882}," -e",{"type":52,"tag":160,"props":9884,"children":9885},{"style":173},[9886],{"type":58,"value":9887}," default",{"type":52,"tag":160,"props":9889,"children":9890},{"style":173},[9891],{"type":58,"value":5301},{"type":52,"tag":107,"props":9893,"children":9894},{},[9895],{"type":58,"value":9896},"Once you've confirmed the data looks right, do a full backfill with a wider range:",{"type":52,"tag":150,"props":9898,"children":9900},{"className":152,"code":9899,"language":154,"meta":7,"style":7},"bruin run --start-date 2024-01-01 --end-date 2026-04-01 .\n",[9901],{"type":52,"tag":71,"props":9902,"children":9903},{"__ignoreMap":7},[9904],{"type":52,"tag":160,"props":9905,"children":9906},{"class":162,"line":163},[9907,9911,9915,9919,9924,9928,9933],{"type":52,"tag":160,"props":9908,"children":9909},{"style":167},[9910],{"type":58,"value":170},{"type":52,"tag":160,"props":9912,"children":9913},{"style":173},[9914],{"type":58,"value":9766},{"type":52,"tag":160,"props":9916,"children":9917},{"style":1771},[9918],{"type":58,"value":9771},{"type":52,"tag":160,"props":9920,"children":9921},{"style":173},[9922],{"type":58,"value":9923}," 2024-01-01",{"type":52,"tag":160,"props":9925,"children":9926},{"style":1771},[9927],{"type":58,"value":9781},{"type":52,"tag":160,"props":9929,"children":9930},{"style":173},[9931],{"type":58,"value":9932}," 2026-04-01",{"type":52,"tag":160,"props":9934,"children":9935},{"style":173},[9936],{"type":58,"value":5301},{"type":52,"tag":131,"props":9938,"children":9940},{"id":9939},"verify-data-landed",[9941],{"type":58,"value":9942},"Verify data landed",{"type":52,"tag":107,"props":9944,"children":9945},{},[9946],{"type":58,"value":9947},"Ask Claude Code to check all your tables at once:",{"type":52,"tag":239,"props":9949,"children":9950},{},[9951],{"type":52,"tag":107,"props":9952,"children":9953},{},[9954],{"type":58,"value":9955},"Query each raw table in the warehouse and give me the row count for every source we ingested.",{"type":52,"tag":107,"props":9957,"children":9958},{},[9959],{"type":58,"value":9960},"If you see row counts greater than zero, your ingestion is working. If a table is empty, ask Claude Code to troubleshoot:",{"type":52,"tag":239,"props":9962,"children":9963},{},[9964],{"type":52,"tag":107,"props":9965,"children":9966},{},[9967],{"type":58,"value":9968},"The raw.shopify_orders table is empty after running the pipeline. Check the asset definition and connection, and tell me what might be wrong.",{"type":52,"tag":53,"props":9970,"children":9971},{"id":1999},[9972],{"type":58,"value":2002},{"type":52,"tag":107,"props":9974,"children":9975},{},[9976,9978,9982],{"type":58,"value":9977},"You now have raw ecommerce data flowing from your SaaS sources into your warehouse. Each ",{"type":52,"tag":1876,"props":9979,"children":9980},{"href":3986},[9981],{"type":58,"value":9816},{"type":58,"value":9983}," uses incremental loading - on subsequent runs, it only pulls new and updated records instead of re-fetching everything.",{"type":52,"tag":107,"props":9985,"children":9986},{},[9987],{"type":58,"value":9988},"Next, you'll build a staging layer on top of this raw data to clean, join, and deduplicate across sources.",{"type":52,"tag":2059,"props":9990,"children":9991},{},[9992],{"type":58,"value":2063},{"title":7,"searchDepth":281,"depth":281,"links":9994},[9995,9996,9999,10009],{"id":55,"depth":281,"text":59},{"id":102,"depth":281,"text":105,"children":9997},[9998],{"id":5414,"depth":290,"text":5417},{"id":126,"depth":281,"text":129,"children":10000},[10001,10002,10003,10004,10005,10006,10007,10008],{"id":5442,"depth":290,"text":5445},{"id":5610,"depth":290,"text":5613},{"id":6361,"depth":290,"text":6364},{"id":7110,"depth":290,"text":7113},{"id":7964,"depth":290,"text":7967},{"id":8987,"depth":290,"text":8990},{"id":9695,"depth":290,"text":9698},{"id":9939,"depth":290,"text":9942},{"id":1999,"depth":281,"text":2002},"content:tutorials:ecommerce-pipeline:ingest-data.md","tutorials\u002Fecommerce-pipeline\u002Fingest-data.md","tutorials\u002Fecommerce-pipeline\u002Fingest-data",{"_path":10014,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":10015,"description":10016,"date":10,"readingTime":395,"category":12,"tags":10017,"difficulty":25,"module":5,"subSteps":26,"step":290,"variants":10019,"journeys":10020,"learnMore":10021,"author":10031,"body":10032,"_type":266,"_id":17965,"_source":2077,"_file":17966,"_stem":17967,"_extension":2080},"\u002Ftutorials\u002Fecommerce-pipeline\u002Fdata-preparation","Clean & Join Your Data","Build a staging layer that cleans, deduplicates, and joins data across Shopify, Stripe, and your marketing, ads, and analytics sources into consistent, analysis-ready tables.",[14,15,10018,19,20,21,23],"SQL",[19,20,21],[29,30],[10022,10025,10028],{"label":10023,"url":10024},"Materialization strategies","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fassets\u002Fmaterialization.html",{"label":10026,"url":10027},"Quality checks","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fquality\u002Foverview.html",{"label":10029,"url":10030},"Asset dependencies","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fassets\u002Fdefinition-schema.html",{"name":45,"role":46,"image":47},{"type":49,"children":10033,"toc":17945},[10034,10038,10043,10047,10052,10057,10061,10074,10098,10104,10109,10117,10122,10127,10275,10287,10292,10380,10396,13099,13119,13131,13165,13235,13249,13918,13936,13948,13967,13997,14011,14328,14340,14345,14359,14387,14393,15414,15420,15433,16040,16070,16082,16087,16101,16107,16135,17167,17173,17206,17690,17698,17704,17725,17730,17767,17778,17817,17823,17828,17836,17841,17849,17853,17929,17941],{"type":52,"tag":53,"props":10035,"children":10036},{"id":55},[10037],{"type":58,"value":59},{"type":52,"tag":107,"props":10039,"children":10040},{},[10041],{"type":58,"value":10042},"Write SQL assets that clean and join the raw data from Step 2 into a staging layer - five consistent tables that the report layer builds on.",{"type":52,"tag":53,"props":10044,"children":10045},{"id":102},[10046],{"type":58,"value":105},{"type":52,"tag":107,"props":10048,"children":10049},{},[10050],{"type":58,"value":10051},"Raw data from five different SaaS tools has different formats, timestamps, IDs, and conventions. Shopify stores amounts in dollars, Stripe stores them in cents. Your email platform tracks opens, your ads platform tracks impressions - both are \"engagement\" but they look nothing alike.",{"type":52,"tag":107,"props":10053,"children":10054},{},[10055],{"type":58,"value":10056},"The staging layer normalizes everything into a consistent format so that reports are accurate and trustworthy.",{"type":52,"tag":53,"props":10058,"children":10059},{"id":126},[10060],{"type":58,"value":129},{"type":52,"tag":107,"props":10062,"children":10063},{},[10064,10066,10072],{"type":58,"value":10065},"Create a ",{"type":52,"tag":71,"props":10067,"children":10069},{"className":10068},[],[10070],{"type":58,"value":10071},"staging\u002F",{"type":58,"value":10073}," subfolder to keep your staging assets organized:",{"type":52,"tag":150,"props":10075,"children":10077},{"className":152,"code":10076,"language":154,"meta":7,"style":7},"mkdir -p ecommerce\u002Fassets\u002Fstaging\n",[10078],{"type":52,"tag":71,"props":10079,"children":10080},{"__ignoreMap":7},[10081],{"type":52,"tag":160,"props":10082,"children":10083},{"class":162,"line":163},[10084,10088,10093],{"type":52,"tag":160,"props":10085,"children":10086},{"style":167},[10087],{"type":58,"value":4072},{"type":52,"tag":160,"props":10089,"children":10090},{"style":1771},[10091],{"type":58,"value":10092}," -p",{"type":52,"tag":160,"props":10094,"children":10095},{"style":173},[10096],{"type":58,"value":10097}," ecommerce\u002Fassets\u002Fstaging\n",{"type":52,"tag":131,"props":10099,"children":10101},{"id":10100},"using-claude-code-to-write-staging-sql",[10102],{"type":58,"value":10103},"Using Claude Code to write staging SQL",{"type":52,"tag":107,"props":10105,"children":10106},{},[10107],{"type":58,"value":10108},"This is where Claude Code really helps. Instead of writing every SQL file from scratch, you can ask Claude Code to look at your raw tables and generate the staging queries for you:",{"type":52,"tag":239,"props":10110,"children":10111},{},[10112],{"type":52,"tag":107,"props":10113,"children":10114},{},[10115],{"type":58,"value":10116},"Look at the schemas for raw.shopify_orders and raw.stripe_charges in my warehouse. Write a Bruin SQL asset that joins them into a staging.stg_orders table - deduplicate, convert Stripe cents to dollars, and add not_null and unique checks on order_id. Put it in ecommerce\u002Fassets\u002Fstaging\u002Fstg_orders.sql.",{"type":52,"tag":107,"props":10118,"children":10119},{},[10120],{"type":58,"value":10121},"Claude Code will use the Bruin MCP to inspect the actual column names and types in your warehouse, then write SQL that matches your real data. You can do this for each staging table below.",{"type":52,"tag":107,"props":10123,"children":10124},{},[10125],{"type":58,"value":10126},"The SQL examples below are what the files should look like. You can create them manually, or have Claude Code generate them and just review the output.",{"type":52,"tag":4021,"props":10128,"children":10129},{"type":6334},[10130,10140],{"type":52,"tag":107,"props":10131,"children":10132},{},[10133,10138],{"type":52,"tag":218,"props":10134,"children":10135},{},[10136],{"type":58,"value":10137},"Production tips from a real Shopify pipeline:",{"type":58,"value":10139}," Shopify's raw data has some quirks to handle in staging:",{"type":52,"tag":2004,"props":10141,"children":10142},{},[10143,10161,10179,10219,10245],{"type":52,"tag":65,"props":10144,"children":10145},{},[10146,10151,10153,10159],{"type":52,"tag":218,"props":10147,"children":10148},{},[10149],{"type":58,"value":10150},"Test orders:",{"type":58,"value":10152}," Filter with ",{"type":52,"tag":71,"props":10154,"children":10156},{"className":10155},[],[10157],{"type":58,"value":10158},"WHERE test IS NOT TRUE",{"type":58,"value":10160}," to exclude test transactions",{"type":52,"tag":65,"props":10162,"children":10163},{},[10164,10169,10171,10177],{"type":52,"tag":218,"props":10165,"children":10166},{},[10167],{"type":58,"value":10168},"Deduplication:",{"type":58,"value":10170}," Shopify can send the same order multiple times. Add ",{"type":52,"tag":71,"props":10172,"children":10174},{"className":10173},[],[10175],{"type":58,"value":10176},"QUALIFY ROW_NUMBER() OVER (PARTITION BY id ORDER BY updated_at DESC) = 1",{"type":58,"value":10178}," to keep only the latest version",{"type":52,"tag":65,"props":10180,"children":10181},{},[10182,10187,10189,10195,10196,10202,10203,10209,10211,10217],{"type":52,"tag":218,"props":10183,"children":10184},{},[10185],{"type":58,"value":10186},"JSON fields:",{"type":58,"value":10188}," Fields like ",{"type":52,"tag":71,"props":10190,"children":10192},{"className":10191},[],[10193],{"type":58,"value":10194},"customer",{"type":58,"value":3976},{"type":52,"tag":71,"props":10197,"children":10199},{"className":10198},[],[10200],{"type":58,"value":10201},"shipping_address",{"type":58,"value":3998},{"type":52,"tag":71,"props":10204,"children":10206},{"className":10205},[],[10207],{"type":58,"value":10208},"line_items",{"type":58,"value":10210}," are nested JSON. Extract them with ",{"type":52,"tag":71,"props":10212,"children":10214},{"className":10213},[],[10215],{"type":58,"value":10216},"JSON_EXTRACT_SCALAR(customer, '$.id')",{"type":58,"value":10218}," (BigQuery) or equivalent",{"type":52,"tag":65,"props":10220,"children":10221},{},[10222,10227,10229,10235,10237,10243],{"type":52,"tag":218,"props":10223,"children":10224},{},[10225],{"type":58,"value":10226},"Product IDs:",{"type":58,"value":10228}," Shopify product IDs come in GID format (",{"type":52,"tag":71,"props":10230,"children":10232},{"className":10231},[],[10233],{"type":58,"value":10234},"gid:\u002F\u002Fshopify\u002FProduct\u002F123456789",{"type":58,"value":10236},"). Parse with ",{"type":52,"tag":71,"props":10238,"children":10240},{"className":10239},[],[10241],{"type":58,"value":10242},"REPLACE(id, 'gid:\u002F\u002Fshopify\u002FProduct\u002F', '')",{"type":58,"value":10244}," in your products staging table",{"type":52,"tag":65,"props":10246,"children":10247},{},[10248,10253,10255,10260,10262,10267,10269],{"type":52,"tag":218,"props":10249,"children":10250},{},[10251],{"type":58,"value":10252},"Line items:",{"type":58,"value":10254}," For product-level analytics, create a ",{"type":52,"tag":71,"props":10256,"children":10258},{"className":10257},[],[10259],{"type":58,"value":1611},{"type":58,"value":10261}," table that flattens the ",{"type":52,"tag":71,"props":10263,"children":10265},{"className":10264},[],[10266],{"type":58,"value":10208},{"type":58,"value":10268}," JSON array using ",{"type":52,"tag":71,"props":10270,"children":10272},{"className":10271},[],[10273],{"type":58,"value":10274},"UNNEST(JSON_EXTRACT_ARRAY(line_items))",{"type":52,"tag":131,"props":10276,"children":10278},{"id":10277},"_1-staged-orders-stg_orderssql",[10279,10281],{"type":58,"value":10280},"1) Staged orders - ",{"type":52,"tag":71,"props":10282,"children":10284},{"className":10283},[],[10285],{"type":58,"value":10286},"stg_orders.sql",{"type":52,"tag":107,"props":10288,"children":10289},{},[10290],{"type":58,"value":10291},"This is the core table: every order, enriched with Stripe payment data.",{"type":52,"tag":4021,"props":10293,"children":10295},{"type":10294},"warning",[10296],{"type":52,"tag":107,"props":10297,"children":10298},{},[10299,10301,10307,10309,10315,10317,10323,10325,10329,10331,10336,10338,10343,10345,10350,10352,10358,10360,10365,10367,10372,10373,10378],{"type":58,"value":10300},"The SQL below includes a ",{"type":52,"tag":71,"props":10302,"children":10304},{"className":10303},[],[10305],{"type":58,"value":10306},"LEFT JOIN",{"type":58,"value":10308}," to ",{"type":52,"tag":71,"props":10310,"children":10312},{"className":10311},[],[10313],{"type":58,"value":10314},"raw.stripe_charges",{"type":58,"value":10316}," and lists it in ",{"type":52,"tag":71,"props":10318,"children":10320},{"className":10319},[],[10321],{"type":58,"value":10322},"depends",{"type":58,"value":10324},". This only applies if you set up Stripe in Step 2. If you're using ",{"type":52,"tag":218,"props":10326,"children":10327},{},[10328],{"type":58,"value":6377},{"type":58,"value":10330},", remove ",{"type":52,"tag":71,"props":10332,"children":10334},{"className":10333},[],[10335],{"type":58,"value":10314},{"type":58,"value":10337}," from the ",{"type":52,"tag":71,"props":10339,"children":10341},{"className":10340},[],[10342],{"type":58,"value":10322},{"type":58,"value":10344}," list and remove the ",{"type":52,"tag":71,"props":10346,"children":10348},{"className":10347},[],[10349],{"type":58,"value":10306},{"type":58,"value":10351}," and the three ",{"type":52,"tag":71,"props":10353,"children":10355},{"className":10354},[],[10356],{"type":58,"value":10357},"stripe_*",{"type":58,"value":10359}," columns from the SELECT. The payment data is already in ",{"type":52,"tag":71,"props":10361,"children":10363},{"className":10362},[],[10364],{"type":58,"value":6408},{"type":58,"value":10366}," (the ",{"type":52,"tag":71,"props":10368,"children":10370},{"className":10369},[],[10371],{"type":58,"value":6388},{"type":58,"value":9803},{"type":52,"tag":71,"props":10374,"children":10376},{"className":10375},[],[10377],{"type":58,"value":6395},{"type":58,"value":10379}," fields). Ask Claude Code to adjust the query for you if needed.",{"type":52,"tag":107,"props":10381,"children":10382},{},[10383,10385,10394],{"type":58,"value":10384},"Create ",{"type":52,"tag":218,"props":10386,"children":10387},{},[10388],{"type":52,"tag":71,"props":10389,"children":10391},{"className":10390},[],[10392],{"type":58,"value":10393},"ecommerce\u002Fassets\u002Fstaging\u002Fstg_orders.sql",{"type":58,"value":10395},":",{"type":52,"tag":253,"props":10397,"children":10398},{":variants":255,"group":256},[10399,11308,12271],{"type":52,"tag":259,"props":10400,"children":10401},{"v-slot:clickhouse":7},[10402],{"type":52,"tag":150,"props":10403,"children":10407},{"className":10404,"code":10405,"language":10406,"meta":7,"style":7},"language-sql shiki shiki-themes github-dark","\u002F* @bruin\nname: staging.stg_orders\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.shopify_orders\n  - raw.stripe_charges\ncolumns:\n  - name: order_id\n    type: varchar\n    checks:\n      - name: not_null\n      - name: unique\n  - name: order_date\n    type: timestamp\n    checks:\n      - name: not_null\ncustom_checks:\n  - name: has_rows\n    query: \"SELECT count(*) > 0 FROM staging.stg_orders\"\n    value: 1\n@bruin *\u002F\n\nSELECT\n    o.id AS order_id,\n    o.order_number,\n    o.email AS customer_email,\n    o.created_at AS order_date,\n    o.financial_status AS payment_status,\n    o.fulfillment_status,\n    CAST(o.total_price AS DECIMAL(12,2)) AS order_total,\n    CAST(o.subtotal_price AS DECIMAL(12,2)) AS subtotal,\n    CAST(o.total_tax AS DECIMAL(12,2)) AS tax_amount,\n    CAST(o.total_discounts AS DECIMAL(12,2)) AS discount_amount,\n    o.currency,\n    o.cancel_reason,\n    o.cancelled_at,\n    c.amount \u002F 100.0 AS stripe_charge_amount,\n    c.status AS stripe_status,\n    c.paid AS stripe_paid\nFROM raw.shopify_orders o\nLEFT JOIN raw.stripe_charges c\n    ON o.email = c.receipt_email\n    AND toDate(o.created_at) = toDate(c.created)\n","sql",[10408],{"type":52,"tag":71,"props":10409,"children":10410},{"__ignoreMap":7},[10411,10420,10428,10436,10444,10452,10460,10468,10476,10484,10492,10500,10508,10516,10524,10532,10540,10547,10554,10562,10570,10578,10586,10594,10601,10609,10636,10657,10682,10707,10731,10751,10820,10881,10942,11003,11023,11043,11063,11108,11133,11158,11185,11210,11250],{"type":52,"tag":160,"props":10412,"children":10413},{"class":162,"line":163},[10414],{"type":52,"tag":160,"props":10415,"children":10417},{"style":10416},"--shiki-default:#6A737D",[10418],{"type":58,"value":10419},"\u002F* @bruin\n",{"type":52,"tag":160,"props":10421,"children":10422},{"class":162,"line":281},[10423],{"type":52,"tag":160,"props":10424,"children":10425},{"style":10416},[10426],{"type":58,"value":10427},"name: staging.stg_orders\n",{"type":52,"tag":160,"props":10429,"children":10430},{"class":162,"line":290},[10431],{"type":52,"tag":160,"props":10432,"children":10433},{"style":10416},[10434],{"type":58,"value":10435},"type: sql\n",{"type":52,"tag":160,"props":10437,"children":10438},{"class":162,"line":299},[10439],{"type":52,"tag":160,"props":10440,"children":10441},{"style":10416},[10442],{"type":58,"value":10443},"materialization:\n",{"type":52,"tag":160,"props":10445,"children":10446},{"class":162,"line":27},[10447],{"type":52,"tag":160,"props":10448,"children":10449},{"style":10416},[10450],{"type":58,"value":10451},"  type: table\n",{"type":52,"tag":160,"props":10453,"children":10454},{"class":162,"line":316},[10455],{"type":52,"tag":160,"props":10456,"children":10457},{"style":10416},[10458],{"type":58,"value":10459},"depends:\n",{"type":52,"tag":160,"props":10461,"children":10462},{"class":162,"line":325},[10463],{"type":52,"tag":160,"props":10464,"children":10465},{"style":10416},[10466],{"type":58,"value":10467},"  - raw.shopify_orders\n",{"type":52,"tag":160,"props":10469,"children":10470},{"class":162,"line":334},[10471],{"type":52,"tag":160,"props":10472,"children":10473},{"style":10416},[10474],{"type":58,"value":10475},"  - raw.stripe_charges\n",{"type":52,"tag":160,"props":10477,"children":10478},{"class":162,"line":343},[10479],{"type":52,"tag":160,"props":10480,"children":10481},{"style":10416},[10482],{"type":58,"value":10483},"columns:\n",{"type":52,"tag":160,"props":10485,"children":10486},{"class":162,"line":11},[10487],{"type":52,"tag":160,"props":10488,"children":10489},{"style":10416},[10490],{"type":58,"value":10491},"  - name: order_id\n",{"type":52,"tag":160,"props":10493,"children":10494},{"class":162,"line":359},[10495],{"type":52,"tag":160,"props":10496,"children":10497},{"style":10416},[10498],{"type":58,"value":10499},"    type: varchar\n",{"type":52,"tag":160,"props":10501,"children":10502},{"class":162,"line":368},[10503],{"type":52,"tag":160,"props":10504,"children":10505},{"style":10416},[10506],{"type":58,"value":10507},"    checks:\n",{"type":52,"tag":160,"props":10509,"children":10510},{"class":162,"line":377},[10511],{"type":52,"tag":160,"props":10512,"children":10513},{"style":10416},[10514],{"type":58,"value":10515},"      - name: not_null\n",{"type":52,"tag":160,"props":10517,"children":10518},{"class":162,"line":386},[10519],{"type":52,"tag":160,"props":10520,"children":10521},{"style":10416},[10522],{"type":58,"value":10523},"      - name: unique\n",{"type":52,"tag":160,"props":10525,"children":10526},{"class":162,"line":395},[10527],{"type":52,"tag":160,"props":10528,"children":10529},{"style":10416},[10530],{"type":58,"value":10531},"  - name: order_date\n",{"type":52,"tag":160,"props":10533,"children":10534},{"class":162,"line":404},[10535],{"type":52,"tag":160,"props":10536,"children":10537},{"style":10416},[10538],{"type":58,"value":10539},"    type: timestamp\n",{"type":52,"tag":160,"props":10541,"children":10542},{"class":162,"line":413},[10543],{"type":52,"tag":160,"props":10544,"children":10545},{"style":10416},[10546],{"type":58,"value":10507},{"type":52,"tag":160,"props":10548,"children":10549},{"class":162,"line":422},[10550],{"type":52,"tag":160,"props":10551,"children":10552},{"style":10416},[10553],{"type":58,"value":10515},{"type":52,"tag":160,"props":10555,"children":10556},{"class":162,"line":430},[10557],{"type":52,"tag":160,"props":10558,"children":10559},{"style":10416},[10560],{"type":58,"value":10561},"custom_checks:\n",{"type":52,"tag":160,"props":10563,"children":10564},{"class":162,"line":439},[10565],{"type":52,"tag":160,"props":10566,"children":10567},{"style":10416},[10568],{"type":58,"value":10569},"  - name: has_rows\n",{"type":52,"tag":160,"props":10571,"children":10572},{"class":162,"line":448},[10573],{"type":52,"tag":160,"props":10574,"children":10575},{"style":10416},[10576],{"type":58,"value":10577},"    query: \"SELECT count(*) > 0 FROM staging.stg_orders\"\n",{"type":52,"tag":160,"props":10579,"children":10580},{"class":162,"line":457},[10581],{"type":52,"tag":160,"props":10582,"children":10583},{"style":10416},[10584],{"type":58,"value":10585},"    value: 1\n",{"type":52,"tag":160,"props":10587,"children":10588},{"class":162,"line":466},[10589],{"type":52,"tag":160,"props":10590,"children":10591},{"style":10416},[10592],{"type":58,"value":10593},"@bruin *\u002F\n",{"type":52,"tag":160,"props":10595,"children":10596},{"class":162,"line":474},[10597],{"type":52,"tag":160,"props":10598,"children":10599},{"emptyLinePlaceholder":26},[10600],{"type":58,"value":287},{"type":52,"tag":160,"props":10602,"children":10603},{"class":162,"line":483},[10604],{"type":52,"tag":160,"props":10605,"children":10606},{"style":4181},[10607],{"type":58,"value":10608},"SELECT\n",{"type":52,"tag":160,"props":10610,"children":10611},{"class":162,"line":492},[10612,10617,10621,10626,10631],{"type":52,"tag":160,"props":10613,"children":10614},{"style":1771},[10615],{"type":58,"value":10616},"    o",{"type":52,"tag":160,"props":10618,"children":10619},{"style":4080},[10620],{"type":58,"value":3931},{"type":52,"tag":160,"props":10622,"children":10623},{"style":1771},[10624],{"type":58,"value":10625},"id",{"type":52,"tag":160,"props":10627,"children":10628},{"style":4181},[10629],{"type":58,"value":10630}," AS",{"type":52,"tag":160,"props":10632,"children":10633},{"style":4080},[10634],{"type":58,"value":10635}," order_id,\n",{"type":52,"tag":160,"props":10637,"children":10638},{"class":162,"line":501},[10639,10643,10647,10652],{"type":52,"tag":160,"props":10640,"children":10641},{"style":1771},[10642],{"type":58,"value":10616},{"type":52,"tag":160,"props":10644,"children":10645},{"style":4080},[10646],{"type":58,"value":3931},{"type":52,"tag":160,"props":10648,"children":10649},{"style":1771},[10650],{"type":58,"value":10651},"order_number",{"type":52,"tag":160,"props":10653,"children":10654},{"style":4080},[10655],{"type":58,"value":10656},",\n",{"type":52,"tag":160,"props":10658,"children":10659},{"class":162,"line":510},[10660,10664,10668,10673,10677],{"type":52,"tag":160,"props":10661,"children":10662},{"style":1771},[10663],{"type":58,"value":10616},{"type":52,"tag":160,"props":10665,"children":10666},{"style":4080},[10667],{"type":58,"value":3931},{"type":52,"tag":160,"props":10669,"children":10670},{"style":1771},[10671],{"type":58,"value":10672},"email",{"type":52,"tag":160,"props":10674,"children":10675},{"style":4181},[10676],{"type":58,"value":10630},{"type":52,"tag":160,"props":10678,"children":10679},{"style":4080},[10680],{"type":58,"value":10681}," customer_email,\n",{"type":52,"tag":160,"props":10683,"children":10684},{"class":162,"line":519},[10685,10689,10693,10698,10702],{"type":52,"tag":160,"props":10686,"children":10687},{"style":1771},[10688],{"type":58,"value":10616},{"type":52,"tag":160,"props":10690,"children":10691},{"style":4080},[10692],{"type":58,"value":3931},{"type":52,"tag":160,"props":10694,"children":10695},{"style":1771},[10696],{"type":58,"value":10697},"created_at",{"type":52,"tag":160,"props":10699,"children":10700},{"style":4181},[10701],{"type":58,"value":10630},{"type":52,"tag":160,"props":10703,"children":10704},{"style":4080},[10705],{"type":58,"value":10706}," order_date,\n",{"type":52,"tag":160,"props":10708,"children":10709},{"class":162,"line":528},[10710,10714,10718,10722,10726],{"type":52,"tag":160,"props":10711,"children":10712},{"style":1771},[10713],{"type":58,"value":10616},{"type":52,"tag":160,"props":10715,"children":10716},{"style":4080},[10717],{"type":58,"value":3931},{"type":52,"tag":160,"props":10719,"children":10720},{"style":1771},[10721],{"type":58,"value":6388},{"type":52,"tag":160,"props":10723,"children":10724},{"style":4181},[10725],{"type":58,"value":10630},{"type":52,"tag":160,"props":10727,"children":10728},{"style":4080},[10729],{"type":58,"value":10730}," payment_status,\n",{"type":52,"tag":160,"props":10732,"children":10733},{"class":162,"line":537},[10734,10738,10742,10747],{"type":52,"tag":160,"props":10735,"children":10736},{"style":1771},[10737],{"type":58,"value":10616},{"type":52,"tag":160,"props":10739,"children":10740},{"style":4080},[10741],{"type":58,"value":3931},{"type":52,"tag":160,"props":10743,"children":10744},{"style":1771},[10745],{"type":58,"value":10746},"fulfillment_status",{"type":52,"tag":160,"props":10748,"children":10749},{"style":4080},[10750],{"type":58,"value":10656},{"type":52,"tag":160,"props":10752,"children":10753},{"class":162,"line":546},[10754,10759,10764,10769,10773,10777,10781,10786,10790,10795,10800,10805,10810,10815],{"type":52,"tag":160,"props":10755,"children":10756},{"style":1771},[10757],{"type":58,"value":10758},"    CAST",{"type":52,"tag":160,"props":10760,"children":10761},{"style":4080},[10762],{"type":58,"value":10763},"(",{"type":52,"tag":160,"props":10765,"children":10766},{"style":1771},[10767],{"type":58,"value":10768},"o",{"type":52,"tag":160,"props":10770,"children":10771},{"style":4080},[10772],{"type":58,"value":3931},{"type":52,"tag":160,"props":10774,"children":10775},{"style":1771},[10776],{"type":58,"value":6395},{"type":52,"tag":160,"props":10778,"children":10779},{"style":4181},[10780],{"type":58,"value":10630},{"type":52,"tag":160,"props":10782,"children":10783},{"style":4181},[10784],{"type":58,"value":10785}," DECIMAL",{"type":52,"tag":160,"props":10787,"children":10788},{"style":4080},[10789],{"type":58,"value":10763},{"type":52,"tag":160,"props":10791,"children":10792},{"style":1771},[10793],{"type":58,"value":10794},"12",{"type":52,"tag":160,"props":10796,"children":10797},{"style":4080},[10798],{"type":58,"value":10799},",",{"type":52,"tag":160,"props":10801,"children":10802},{"style":1771},[10803],{"type":58,"value":10804},"2",{"type":52,"tag":160,"props":10806,"children":10807},{"style":4080},[10808],{"type":58,"value":10809},")) ",{"type":52,"tag":160,"props":10811,"children":10812},{"style":4181},[10813],{"type":58,"value":10814},"AS",{"type":52,"tag":160,"props":10816,"children":10817},{"style":4080},[10818],{"type":58,"value":10819}," order_total,\n",{"type":52,"tag":160,"props":10821,"children":10822},{"class":162,"line":555},[10823,10827,10831,10835,10839,10844,10848,10852,10856,10860,10864,10868,10872,10876],{"type":52,"tag":160,"props":10824,"children":10825},{"style":1771},[10826],{"type":58,"value":10758},{"type":52,"tag":160,"props":10828,"children":10829},{"style":4080},[10830],{"type":58,"value":10763},{"type":52,"tag":160,"props":10832,"children":10833},{"style":1771},[10834],{"type":58,"value":10768},{"type":52,"tag":160,"props":10836,"children":10837},{"style":4080},[10838],{"type":58,"value":3931},{"type":52,"tag":160,"props":10840,"children":10841},{"style":1771},[10842],{"type":58,"value":10843},"subtotal_price",{"type":52,"tag":160,"props":10845,"children":10846},{"style":4181},[10847],{"type":58,"value":10630},{"type":52,"tag":160,"props":10849,"children":10850},{"style":4181},[10851],{"type":58,"value":10785},{"type":52,"tag":160,"props":10853,"children":10854},{"style":4080},[10855],{"type":58,"value":10763},{"type":52,"tag":160,"props":10857,"children":10858},{"style":1771},[10859],{"type":58,"value":10794},{"type":52,"tag":160,"props":10861,"children":10862},{"style":4080},[10863],{"type":58,"value":10799},{"type":52,"tag":160,"props":10865,"children":10866},{"style":1771},[10867],{"type":58,"value":10804},{"type":52,"tag":160,"props":10869,"children":10870},{"style":4080},[10871],{"type":58,"value":10809},{"type":52,"tag":160,"props":10873,"children":10874},{"style":4181},[10875],{"type":58,"value":10814},{"type":52,"tag":160,"props":10877,"children":10878},{"style":4080},[10879],{"type":58,"value":10880}," subtotal,\n",{"type":52,"tag":160,"props":10882,"children":10883},{"class":162,"line":564},[10884,10888,10892,10896,10900,10905,10909,10913,10917,10921,10925,10929,10933,10937],{"type":52,"tag":160,"props":10885,"children":10886},{"style":1771},[10887],{"type":58,"value":10758},{"type":52,"tag":160,"props":10889,"children":10890},{"style":4080},[10891],{"type":58,"value":10763},{"type":52,"tag":160,"props":10893,"children":10894},{"style":1771},[10895],{"type":58,"value":10768},{"type":52,"tag":160,"props":10897,"children":10898},{"style":4080},[10899],{"type":58,"value":3931},{"type":52,"tag":160,"props":10901,"children":10902},{"style":1771},[10903],{"type":58,"value":10904},"total_tax",{"type":52,"tag":160,"props":10906,"children":10907},{"style":4181},[10908],{"type":58,"value":10630},{"type":52,"tag":160,"props":10910,"children":10911},{"style":4181},[10912],{"type":58,"value":10785},{"type":52,"tag":160,"props":10914,"children":10915},{"style":4080},[10916],{"type":58,"value":10763},{"type":52,"tag":160,"props":10918,"children":10919},{"style":1771},[10920],{"type":58,"value":10794},{"type":52,"tag":160,"props":10922,"children":10923},{"style":4080},[10924],{"type":58,"value":10799},{"type":52,"tag":160,"props":10926,"children":10927},{"style":1771},[10928],{"type":58,"value":10804},{"type":52,"tag":160,"props":10930,"children":10931},{"style":4080},[10932],{"type":58,"value":10809},{"type":52,"tag":160,"props":10934,"children":10935},{"style":4181},[10936],{"type":58,"value":10814},{"type":52,"tag":160,"props":10938,"children":10939},{"style":4080},[10940],{"type":58,"value":10941}," tax_amount,\n",{"type":52,"tag":160,"props":10943,"children":10944},{"class":162,"line":573},[10945,10949,10953,10957,10961,10966,10970,10974,10978,10982,10986,10990,10994,10998],{"type":52,"tag":160,"props":10946,"children":10947},{"style":1771},[10948],{"type":58,"value":10758},{"type":52,"tag":160,"props":10950,"children":10951},{"style":4080},[10952],{"type":58,"value":10763},{"type":52,"tag":160,"props":10954,"children":10955},{"style":1771},[10956],{"type":58,"value":10768},{"type":52,"tag":160,"props":10958,"children":10959},{"style":4080},[10960],{"type":58,"value":3931},{"type":52,"tag":160,"props":10962,"children":10963},{"style":1771},[10964],{"type":58,"value":10965},"total_discounts",{"type":52,"tag":160,"props":10967,"children":10968},{"style":4181},[10969],{"type":58,"value":10630},{"type":52,"tag":160,"props":10971,"children":10972},{"style":4181},[10973],{"type":58,"value":10785},{"type":52,"tag":160,"props":10975,"children":10976},{"style":4080},[10977],{"type":58,"value":10763},{"type":52,"tag":160,"props":10979,"children":10980},{"style":1771},[10981],{"type":58,"value":10794},{"type":52,"tag":160,"props":10983,"children":10984},{"style":4080},[10985],{"type":58,"value":10799},{"type":52,"tag":160,"props":10987,"children":10988},{"style":1771},[10989],{"type":58,"value":10804},{"type":52,"tag":160,"props":10991,"children":10992},{"style":4080},[10993],{"type":58,"value":10809},{"type":52,"tag":160,"props":10995,"children":10996},{"style":4181},[10997],{"type":58,"value":10814},{"type":52,"tag":160,"props":10999,"children":11000},{"style":4080},[11001],{"type":58,"value":11002}," discount_amount,\n",{"type":52,"tag":160,"props":11004,"children":11005},{"class":162,"line":582},[11006,11010,11014,11019],{"type":52,"tag":160,"props":11007,"children":11008},{"style":1771},[11009],{"type":58,"value":10616},{"type":52,"tag":160,"props":11011,"children":11012},{"style":4080},[11013],{"type":58,"value":3931},{"type":52,"tag":160,"props":11015,"children":11016},{"style":1771},[11017],{"type":58,"value":11018},"currency",{"type":52,"tag":160,"props":11020,"children":11021},{"style":4080},[11022],{"type":58,"value":10656},{"type":52,"tag":160,"props":11024,"children":11025},{"class":162,"line":591},[11026,11030,11034,11039],{"type":52,"tag":160,"props":11027,"children":11028},{"style":1771},[11029],{"type":58,"value":10616},{"type":52,"tag":160,"props":11031,"children":11032},{"style":4080},[11033],{"type":58,"value":3931},{"type":52,"tag":160,"props":11035,"children":11036},{"style":1771},[11037],{"type":58,"value":11038},"cancel_reason",{"type":52,"tag":160,"props":11040,"children":11041},{"style":4080},[11042],{"type":58,"value":10656},{"type":52,"tag":160,"props":11044,"children":11045},{"class":162,"line":599},[11046,11050,11054,11059],{"type":52,"tag":160,"props":11047,"children":11048},{"style":1771},[11049],{"type":58,"value":10616},{"type":52,"tag":160,"props":11051,"children":11052},{"style":4080},[11053],{"type":58,"value":3931},{"type":52,"tag":160,"props":11055,"children":11056},{"style":1771},[11057],{"type":58,"value":11058},"cancelled_at",{"type":52,"tag":160,"props":11060,"children":11061},{"style":4080},[11062],{"type":58,"value":10656},{"type":52,"tag":160,"props":11064,"children":11065},{"class":162,"line":608},[11066,11071,11075,11080,11085,11090,11094,11099,11103],{"type":52,"tag":160,"props":11067,"children":11068},{"style":1771},[11069],{"type":58,"value":11070},"    c",{"type":52,"tag":160,"props":11072,"children":11073},{"style":4080},[11074],{"type":58,"value":3931},{"type":52,"tag":160,"props":11076,"children":11077},{"style":1771},[11078],{"type":58,"value":11079},"amount",{"type":52,"tag":160,"props":11081,"children":11082},{"style":4181},[11083],{"type":58,"value":11084}," \u002F",{"type":52,"tag":160,"props":11086,"children":11087},{"style":1771},[11088],{"type":58,"value":11089}," 100",{"type":52,"tag":160,"props":11091,"children":11092},{"style":4080},[11093],{"type":58,"value":3931},{"type":52,"tag":160,"props":11095,"children":11096},{"style":1771},[11097],{"type":58,"value":11098},"0",{"type":52,"tag":160,"props":11100,"children":11101},{"style":4181},[11102],{"type":58,"value":10630},{"type":52,"tag":160,"props":11104,"children":11105},{"style":4080},[11106],{"type":58,"value":11107}," stripe_charge_amount,\n",{"type":52,"tag":160,"props":11109,"children":11110},{"class":162,"line":617},[11111,11115,11119,11124,11128],{"type":52,"tag":160,"props":11112,"children":11113},{"style":1771},[11114],{"type":58,"value":11070},{"type":52,"tag":160,"props":11116,"children":11117},{"style":4080},[11118],{"type":58,"value":3931},{"type":52,"tag":160,"props":11120,"children":11121},{"style":1771},[11122],{"type":58,"value":11123},"status",{"type":52,"tag":160,"props":11125,"children":11126},{"style":4181},[11127],{"type":58,"value":10630},{"type":52,"tag":160,"props":11129,"children":11130},{"style":4080},[11131],{"type":58,"value":11132}," stripe_status,\n",{"type":52,"tag":160,"props":11134,"children":11135},{"class":162,"line":626},[11136,11140,11144,11149,11153],{"type":52,"tag":160,"props":11137,"children":11138},{"style":1771},[11139],{"type":58,"value":11070},{"type":52,"tag":160,"props":11141,"children":11142},{"style":4080},[11143],{"type":58,"value":3931},{"type":52,"tag":160,"props":11145,"children":11146},{"style":1771},[11147],{"type":58,"value":11148},"paid",{"type":52,"tag":160,"props":11150,"children":11151},{"style":4181},[11152],{"type":58,"value":10630},{"type":52,"tag":160,"props":11154,"children":11155},{"style":4080},[11156],{"type":58,"value":11157}," stripe_paid\n",{"type":52,"tag":160,"props":11159,"children":11160},{"class":162,"line":635},[11161,11166,11171,11175,11180],{"type":52,"tag":160,"props":11162,"children":11163},{"style":4181},[11164],{"type":58,"value":11165},"FROM",{"type":52,"tag":160,"props":11167,"children":11168},{"style":1771},[11169],{"type":58,"value":11170}," raw",{"type":52,"tag":160,"props":11172,"children":11173},{"style":4080},[11174],{"type":58,"value":3931},{"type":52,"tag":160,"props":11176,"children":11177},{"style":1771},[11178],{"type":58,"value":11179},"shopify_orders",{"type":52,"tag":160,"props":11181,"children":11182},{"style":4080},[11183],{"type":58,"value":11184}," o\n",{"type":52,"tag":160,"props":11186,"children":11187},{"class":162,"line":644},[11188,11192,11196,11200,11205],{"type":52,"tag":160,"props":11189,"children":11190},{"style":4181},[11191],{"type":58,"value":10306},{"type":52,"tag":160,"props":11193,"children":11194},{"style":1771},[11195],{"type":58,"value":11170},{"type":52,"tag":160,"props":11197,"children":11198},{"style":4080},[11199],{"type":58,"value":3931},{"type":52,"tag":160,"props":11201,"children":11202},{"style":1771},[11203],{"type":58,"value":11204},"stripe_charges",{"type":52,"tag":160,"props":11206,"children":11207},{"style":4080},[11208],{"type":58,"value":11209}," c\n",{"type":52,"tag":160,"props":11211,"children":11212},{"class":162,"line":653},[11213,11218,11223,11227,11231,11236,11241,11245],{"type":52,"tag":160,"props":11214,"children":11215},{"style":4181},[11216],{"type":58,"value":11217},"    ON",{"type":52,"tag":160,"props":11219,"children":11220},{"style":1771},[11221],{"type":58,"value":11222}," o",{"type":52,"tag":160,"props":11224,"children":11225},{"style":4080},[11226],{"type":58,"value":3931},{"type":52,"tag":160,"props":11228,"children":11229},{"style":1771},[11230],{"type":58,"value":10672},{"type":52,"tag":160,"props":11232,"children":11233},{"style":4181},[11234],{"type":58,"value":11235}," =",{"type":52,"tag":160,"props":11237,"children":11238},{"style":1771},[11239],{"type":58,"value":11240}," c",{"type":52,"tag":160,"props":11242,"children":11243},{"style":4080},[11244],{"type":58,"value":3931},{"type":52,"tag":160,"props":11246,"children":11247},{"style":1771},[11248],{"type":58,"value":11249},"receipt_email\n",{"type":52,"tag":160,"props":11251,"children":11252},{"class":162,"line":662},[11253,11258,11263,11267,11271,11275,11280,11285,11289,11294,11298,11303],{"type":52,"tag":160,"props":11254,"children":11255},{"style":4181},[11256],{"type":58,"value":11257},"    AND",{"type":52,"tag":160,"props":11259,"children":11260},{"style":4080},[11261],{"type":58,"value":11262}," toDate(",{"type":52,"tag":160,"props":11264,"children":11265},{"style":1771},[11266],{"type":58,"value":10768},{"type":52,"tag":160,"props":11268,"children":11269},{"style":4080},[11270],{"type":58,"value":3931},{"type":52,"tag":160,"props":11272,"children":11273},{"style":1771},[11274],{"type":58,"value":10697},{"type":52,"tag":160,"props":11276,"children":11277},{"style":4080},[11278],{"type":58,"value":11279},") ",{"type":52,"tag":160,"props":11281,"children":11282},{"style":4181},[11283],{"type":58,"value":11284},"=",{"type":52,"tag":160,"props":11286,"children":11287},{"style":4080},[11288],{"type":58,"value":11262},{"type":52,"tag":160,"props":11290,"children":11291},{"style":1771},[11292],{"type":58,"value":11293},"c",{"type":52,"tag":160,"props":11295,"children":11296},{"style":4080},[11297],{"type":58,"value":3931},{"type":52,"tag":160,"props":11299,"children":11300},{"style":1771},[11301],{"type":58,"value":11302},"created",{"type":52,"tag":160,"props":11304,"children":11305},{"style":4080},[11306],{"type":58,"value":11307},")\n",{"type":52,"tag":259,"props":11309,"children":11310},{"v-slot:bigquery":7},[11311],{"type":52,"tag":150,"props":11312,"children":11314},{"className":10404,"code":11313,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_orders\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.shopify_orders\n  - raw.stripe_charges\ncolumns:\n  - name: order_id\n    type: varchar\n    checks:\n      - name: not_null\n      - name: unique\n  - name: order_date\n    type: timestamp\n    checks:\n      - name: not_null\ncustom_checks:\n  - name: has_rows\n    query: \"SELECT count(*) > 0 FROM staging.stg_orders\"\n    value: 1\n@bruin *\u002F\n\nSELECT\n    o.id AS order_id,\n    o.order_number,\n    o.email AS customer_email,\n    o.created_at AS order_date,\n    o.financial_status AS payment_status,\n    o.fulfillment_status,\n    SAFE_CAST(o.total_price AS DECIMAL(12,2)) AS order_total,\n    SAFE_CAST(o.subtotal_price AS DECIMAL(12,2)) AS subtotal,\n    SAFE_CAST(o.total_tax AS DECIMAL(12,2)) AS tax_amount,\n    SAFE_CAST(o.total_discounts AS DECIMAL(12,2)) AS discount_amount,\n    o.currency,\n    o.cancel_reason,\n    o.cancelled_at,\n    c.amount \u002F 100.0 AS stripe_charge_amount,\n    c.status AS stripe_status,\n    c.paid AS stripe_paid\nFROM raw.shopify_orders o\nLEFT JOIN raw.stripe_charges c\n    ON o.email = c.receipt_email\n    AND DATE(o.created_at) = DATE(c.created)\nWHERE o.test IS NOT TRUE AND o.financial_status IS NOT NULL\nQUALIFY ROW_NUMBER() OVER (PARTITION BY o.id ORDER BY o.updated_at DESC) = 1\n",[11315],{"type":52,"tag":71,"props":11316,"children":11317},{"__ignoreMap":7},[11318,11325,11332,11339,11346,11353,11360,11367,11374,11381,11388,11395,11402,11409,11416,11423,11430,11437,11444,11451,11458,11465,11472,11479,11486,11493,11516,11535,11558,11581,11604,11623,11679,11734,11789,11844,11863,11882,11901,11940,11963,11986,12009,12032,12067,12127,12185],{"type":52,"tag":160,"props":11319,"children":11320},{"class":162,"line":163},[11321],{"type":52,"tag":160,"props":11322,"children":11323},{"style":10416},[11324],{"type":58,"value":10419},{"type":52,"tag":160,"props":11326,"children":11327},{"class":162,"line":281},[11328],{"type":52,"tag":160,"props":11329,"children":11330},{"style":10416},[11331],{"type":58,"value":10427},{"type":52,"tag":160,"props":11333,"children":11334},{"class":162,"line":290},[11335],{"type":52,"tag":160,"props":11336,"children":11337},{"style":10416},[11338],{"type":58,"value":10435},{"type":52,"tag":160,"props":11340,"children":11341},{"class":162,"line":299},[11342],{"type":52,"tag":160,"props":11343,"children":11344},{"style":10416},[11345],{"type":58,"value":10443},{"type":52,"tag":160,"props":11347,"children":11348},{"class":162,"line":27},[11349],{"type":52,"tag":160,"props":11350,"children":11351},{"style":10416},[11352],{"type":58,"value":10451},{"type":52,"tag":160,"props":11354,"children":11355},{"class":162,"line":316},[11356],{"type":52,"tag":160,"props":11357,"children":11358},{"style":10416},[11359],{"type":58,"value":10459},{"type":52,"tag":160,"props":11361,"children":11362},{"class":162,"line":325},[11363],{"type":52,"tag":160,"props":11364,"children":11365},{"style":10416},[11366],{"type":58,"value":10467},{"type":52,"tag":160,"props":11368,"children":11369},{"class":162,"line":334},[11370],{"type":52,"tag":160,"props":11371,"children":11372},{"style":10416},[11373],{"type":58,"value":10475},{"type":52,"tag":160,"props":11375,"children":11376},{"class":162,"line":343},[11377],{"type":52,"tag":160,"props":11378,"children":11379},{"style":10416},[11380],{"type":58,"value":10483},{"type":52,"tag":160,"props":11382,"children":11383},{"class":162,"line":11},[11384],{"type":52,"tag":160,"props":11385,"children":11386},{"style":10416},[11387],{"type":58,"value":10491},{"type":52,"tag":160,"props":11389,"children":11390},{"class":162,"line":359},[11391],{"type":52,"tag":160,"props":11392,"children":11393},{"style":10416},[11394],{"type":58,"value":10499},{"type":52,"tag":160,"props":11396,"children":11397},{"class":162,"line":368},[11398],{"type":52,"tag":160,"props":11399,"children":11400},{"style":10416},[11401],{"type":58,"value":10507},{"type":52,"tag":160,"props":11403,"children":11404},{"class":162,"line":377},[11405],{"type":52,"tag":160,"props":11406,"children":11407},{"style":10416},[11408],{"type":58,"value":10515},{"type":52,"tag":160,"props":11410,"children":11411},{"class":162,"line":386},[11412],{"type":52,"tag":160,"props":11413,"children":11414},{"style":10416},[11415],{"type":58,"value":10523},{"type":52,"tag":160,"props":11417,"children":11418},{"class":162,"line":395},[11419],{"type":52,"tag":160,"props":11420,"children":11421},{"style":10416},[11422],{"type":58,"value":10531},{"type":52,"tag":160,"props":11424,"children":11425},{"class":162,"line":404},[11426],{"type":52,"tag":160,"props":11427,"children":11428},{"style":10416},[11429],{"type":58,"value":10539},{"type":52,"tag":160,"props":11431,"children":11432},{"class":162,"line":413},[11433],{"type":52,"tag":160,"props":11434,"children":11435},{"style":10416},[11436],{"type":58,"value":10507},{"type":52,"tag":160,"props":11438,"children":11439},{"class":162,"line":422},[11440],{"type":52,"tag":160,"props":11441,"children":11442},{"style":10416},[11443],{"type":58,"value":10515},{"type":52,"tag":160,"props":11445,"children":11446},{"class":162,"line":430},[11447],{"type":52,"tag":160,"props":11448,"children":11449},{"style":10416},[11450],{"type":58,"value":10561},{"type":52,"tag":160,"props":11452,"children":11453},{"class":162,"line":439},[11454],{"type":52,"tag":160,"props":11455,"children":11456},{"style":10416},[11457],{"type":58,"value":10569},{"type":52,"tag":160,"props":11459,"children":11460},{"class":162,"line":448},[11461],{"type":52,"tag":160,"props":11462,"children":11463},{"style":10416},[11464],{"type":58,"value":10577},{"type":52,"tag":160,"props":11466,"children":11467},{"class":162,"line":457},[11468],{"type":52,"tag":160,"props":11469,"children":11470},{"style":10416},[11471],{"type":58,"value":10585},{"type":52,"tag":160,"props":11473,"children":11474},{"class":162,"line":466},[11475],{"type":52,"tag":160,"props":11476,"children":11477},{"style":10416},[11478],{"type":58,"value":10593},{"type":52,"tag":160,"props":11480,"children":11481},{"class":162,"line":474},[11482],{"type":52,"tag":160,"props":11483,"children":11484},{"emptyLinePlaceholder":26},[11485],{"type":58,"value":287},{"type":52,"tag":160,"props":11487,"children":11488},{"class":162,"line":483},[11489],{"type":52,"tag":160,"props":11490,"children":11491},{"style":4181},[11492],{"type":58,"value":10608},{"type":52,"tag":160,"props":11494,"children":11495},{"class":162,"line":492},[11496,11500,11504,11508,11512],{"type":52,"tag":160,"props":11497,"children":11498},{"style":1771},[11499],{"type":58,"value":10616},{"type":52,"tag":160,"props":11501,"children":11502},{"style":4080},[11503],{"type":58,"value":3931},{"type":52,"tag":160,"props":11505,"children":11506},{"style":1771},[11507],{"type":58,"value":10625},{"type":52,"tag":160,"props":11509,"children":11510},{"style":4181},[11511],{"type":58,"value":10630},{"type":52,"tag":160,"props":11513,"children":11514},{"style":4080},[11515],{"type":58,"value":10635},{"type":52,"tag":160,"props":11517,"children":11518},{"class":162,"line":501},[11519,11523,11527,11531],{"type":52,"tag":160,"props":11520,"children":11521},{"style":1771},[11522],{"type":58,"value":10616},{"type":52,"tag":160,"props":11524,"children":11525},{"style":4080},[11526],{"type":58,"value":3931},{"type":52,"tag":160,"props":11528,"children":11529},{"style":1771},[11530],{"type":58,"value":10651},{"type":52,"tag":160,"props":11532,"children":11533},{"style":4080},[11534],{"type":58,"value":10656},{"type":52,"tag":160,"props":11536,"children":11537},{"class":162,"line":510},[11538,11542,11546,11550,11554],{"type":52,"tag":160,"props":11539,"children":11540},{"style":1771},[11541],{"type":58,"value":10616},{"type":52,"tag":160,"props":11543,"children":11544},{"style":4080},[11545],{"type":58,"value":3931},{"type":52,"tag":160,"props":11547,"children":11548},{"style":1771},[11549],{"type":58,"value":10672},{"type":52,"tag":160,"props":11551,"children":11552},{"style":4181},[11553],{"type":58,"value":10630},{"type":52,"tag":160,"props":11555,"children":11556},{"style":4080},[11557],{"type":58,"value":10681},{"type":52,"tag":160,"props":11559,"children":11560},{"class":162,"line":519},[11561,11565,11569,11573,11577],{"type":52,"tag":160,"props":11562,"children":11563},{"style":1771},[11564],{"type":58,"value":10616},{"type":52,"tag":160,"props":11566,"children":11567},{"style":4080},[11568],{"type":58,"value":3931},{"type":52,"tag":160,"props":11570,"children":11571},{"style":1771},[11572],{"type":58,"value":10697},{"type":52,"tag":160,"props":11574,"children":11575},{"style":4181},[11576],{"type":58,"value":10630},{"type":52,"tag":160,"props":11578,"children":11579},{"style":4080},[11580],{"type":58,"value":10706},{"type":52,"tag":160,"props":11582,"children":11583},{"class":162,"line":528},[11584,11588,11592,11596,11600],{"type":52,"tag":160,"props":11585,"children":11586},{"style":1771},[11587],{"type":58,"value":10616},{"type":52,"tag":160,"props":11589,"children":11590},{"style":4080},[11591],{"type":58,"value":3931},{"type":52,"tag":160,"props":11593,"children":11594},{"style":1771},[11595],{"type":58,"value":6388},{"type":52,"tag":160,"props":11597,"children":11598},{"style":4181},[11599],{"type":58,"value":10630},{"type":52,"tag":160,"props":11601,"children":11602},{"style":4080},[11603],{"type":58,"value":10730},{"type":52,"tag":160,"props":11605,"children":11606},{"class":162,"line":537},[11607,11611,11615,11619],{"type":52,"tag":160,"props":11608,"children":11609},{"style":1771},[11610],{"type":58,"value":10616},{"type":52,"tag":160,"props":11612,"children":11613},{"style":4080},[11614],{"type":58,"value":3931},{"type":52,"tag":160,"props":11616,"children":11617},{"style":1771},[11618],{"type":58,"value":10746},{"type":52,"tag":160,"props":11620,"children":11621},{"style":4080},[11622],{"type":58,"value":10656},{"type":52,"tag":160,"props":11624,"children":11625},{"class":162,"line":546},[11626,11631,11635,11639,11643,11647,11651,11655,11659,11663,11667,11671,11675],{"type":52,"tag":160,"props":11627,"children":11628},{"style":4080},[11629],{"type":58,"value":11630},"    SAFE_CAST(",{"type":52,"tag":160,"props":11632,"children":11633},{"style":1771},[11634],{"type":58,"value":10768},{"type":52,"tag":160,"props":11636,"children":11637},{"style":4080},[11638],{"type":58,"value":3931},{"type":52,"tag":160,"props":11640,"children":11641},{"style":1771},[11642],{"type":58,"value":6395},{"type":52,"tag":160,"props":11644,"children":11645},{"style":4181},[11646],{"type":58,"value":10630},{"type":52,"tag":160,"props":11648,"children":11649},{"style":4181},[11650],{"type":58,"value":10785},{"type":52,"tag":160,"props":11652,"children":11653},{"style":4080},[11654],{"type":58,"value":10763},{"type":52,"tag":160,"props":11656,"children":11657},{"style":1771},[11658],{"type":58,"value":10794},{"type":52,"tag":160,"props":11660,"children":11661},{"style":4080},[11662],{"type":58,"value":10799},{"type":52,"tag":160,"props":11664,"children":11665},{"style":1771},[11666],{"type":58,"value":10804},{"type":52,"tag":160,"props":11668,"children":11669},{"style":4080},[11670],{"type":58,"value":10809},{"type":52,"tag":160,"props":11672,"children":11673},{"style":4181},[11674],{"type":58,"value":10814},{"type":52,"tag":160,"props":11676,"children":11677},{"style":4080},[11678],{"type":58,"value":10819},{"type":52,"tag":160,"props":11680,"children":11681},{"class":162,"line":555},[11682,11686,11690,11694,11698,11702,11706,11710,11714,11718,11722,11726,11730],{"type":52,"tag":160,"props":11683,"children":11684},{"style":4080},[11685],{"type":58,"value":11630},{"type":52,"tag":160,"props":11687,"children":11688},{"style":1771},[11689],{"type":58,"value":10768},{"type":52,"tag":160,"props":11691,"children":11692},{"style":4080},[11693],{"type":58,"value":3931},{"type":52,"tag":160,"props":11695,"children":11696},{"style":1771},[11697],{"type":58,"value":10843},{"type":52,"tag":160,"props":11699,"children":11700},{"style":4181},[11701],{"type":58,"value":10630},{"type":52,"tag":160,"props":11703,"children":11704},{"style":4181},[11705],{"type":58,"value":10785},{"type":52,"tag":160,"props":11707,"children":11708},{"style":4080},[11709],{"type":58,"value":10763},{"type":52,"tag":160,"props":11711,"children":11712},{"style":1771},[11713],{"type":58,"value":10794},{"type":52,"tag":160,"props":11715,"children":11716},{"style":4080},[11717],{"type":58,"value":10799},{"type":52,"tag":160,"props":11719,"children":11720},{"style":1771},[11721],{"type":58,"value":10804},{"type":52,"tag":160,"props":11723,"children":11724},{"style":4080},[11725],{"type":58,"value":10809},{"type":52,"tag":160,"props":11727,"children":11728},{"style":4181},[11729],{"type":58,"value":10814},{"type":52,"tag":160,"props":11731,"children":11732},{"style":4080},[11733],{"type":58,"value":10880},{"type":52,"tag":160,"props":11735,"children":11736},{"class":162,"line":564},[11737,11741,11745,11749,11753,11757,11761,11765,11769,11773,11777,11781,11785],{"type":52,"tag":160,"props":11738,"children":11739},{"style":4080},[11740],{"type":58,"value":11630},{"type":52,"tag":160,"props":11742,"children":11743},{"style":1771},[11744],{"type":58,"value":10768},{"type":52,"tag":160,"props":11746,"children":11747},{"style":4080},[11748],{"type":58,"value":3931},{"type":52,"tag":160,"props":11750,"children":11751},{"style":1771},[11752],{"type":58,"value":10904},{"type":52,"tag":160,"props":11754,"children":11755},{"style":4181},[11756],{"type":58,"value":10630},{"type":52,"tag":160,"props":11758,"children":11759},{"style":4181},[11760],{"type":58,"value":10785},{"type":52,"tag":160,"props":11762,"children":11763},{"style":4080},[11764],{"type":58,"value":10763},{"type":52,"tag":160,"props":11766,"children":11767},{"style":1771},[11768],{"type":58,"value":10794},{"type":52,"tag":160,"props":11770,"children":11771},{"style":4080},[11772],{"type":58,"value":10799},{"type":52,"tag":160,"props":11774,"children":11775},{"style":1771},[11776],{"type":58,"value":10804},{"type":52,"tag":160,"props":11778,"children":11779},{"style":4080},[11780],{"type":58,"value":10809},{"type":52,"tag":160,"props":11782,"children":11783},{"style":4181},[11784],{"type":58,"value":10814},{"type":52,"tag":160,"props":11786,"children":11787},{"style":4080},[11788],{"type":58,"value":10941},{"type":52,"tag":160,"props":11790,"children":11791},{"class":162,"line":573},[11792,11796,11800,11804,11808,11812,11816,11820,11824,11828,11832,11836,11840],{"type":52,"tag":160,"props":11793,"children":11794},{"style":4080},[11795],{"type":58,"value":11630},{"type":52,"tag":160,"props":11797,"children":11798},{"style":1771},[11799],{"type":58,"value":10768},{"type":52,"tag":160,"props":11801,"children":11802},{"style":4080},[11803],{"type":58,"value":3931},{"type":52,"tag":160,"props":11805,"children":11806},{"style":1771},[11807],{"type":58,"value":10965},{"type":52,"tag":160,"props":11809,"children":11810},{"style":4181},[11811],{"type":58,"value":10630},{"type":52,"tag":160,"props":11813,"children":11814},{"style":4181},[11815],{"type":58,"value":10785},{"type":52,"tag":160,"props":11817,"children":11818},{"style":4080},[11819],{"type":58,"value":10763},{"type":52,"tag":160,"props":11821,"children":11822},{"style":1771},[11823],{"type":58,"value":10794},{"type":52,"tag":160,"props":11825,"children":11826},{"style":4080},[11827],{"type":58,"value":10799},{"type":52,"tag":160,"props":11829,"children":11830},{"style":1771},[11831],{"type":58,"value":10804},{"type":52,"tag":160,"props":11833,"children":11834},{"style":4080},[11835],{"type":58,"value":10809},{"type":52,"tag":160,"props":11837,"children":11838},{"style":4181},[11839],{"type":58,"value":10814},{"type":52,"tag":160,"props":11841,"children":11842},{"style":4080},[11843],{"type":58,"value":11002},{"type":52,"tag":160,"props":11845,"children":11846},{"class":162,"line":582},[11847,11851,11855,11859],{"type":52,"tag":160,"props":11848,"children":11849},{"style":1771},[11850],{"type":58,"value":10616},{"type":52,"tag":160,"props":11852,"children":11853},{"style":4080},[11854],{"type":58,"value":3931},{"type":52,"tag":160,"props":11856,"children":11857},{"style":1771},[11858],{"type":58,"value":11018},{"type":52,"tag":160,"props":11860,"children":11861},{"style":4080},[11862],{"type":58,"value":10656},{"type":52,"tag":160,"props":11864,"children":11865},{"class":162,"line":591},[11866,11870,11874,11878],{"type":52,"tag":160,"props":11867,"children":11868},{"style":1771},[11869],{"type":58,"value":10616},{"type":52,"tag":160,"props":11871,"children":11872},{"style":4080},[11873],{"type":58,"value":3931},{"type":52,"tag":160,"props":11875,"children":11876},{"style":1771},[11877],{"type":58,"value":11038},{"type":52,"tag":160,"props":11879,"children":11880},{"style":4080},[11881],{"type":58,"value":10656},{"type":52,"tag":160,"props":11883,"children":11884},{"class":162,"line":599},[11885,11889,11893,11897],{"type":52,"tag":160,"props":11886,"children":11887},{"style":1771},[11888],{"type":58,"value":10616},{"type":52,"tag":160,"props":11890,"children":11891},{"style":4080},[11892],{"type":58,"value":3931},{"type":52,"tag":160,"props":11894,"children":11895},{"style":1771},[11896],{"type":58,"value":11058},{"type":52,"tag":160,"props":11898,"children":11899},{"style":4080},[11900],{"type":58,"value":10656},{"type":52,"tag":160,"props":11902,"children":11903},{"class":162,"line":608},[11904,11908,11912,11916,11920,11924,11928,11932,11936],{"type":52,"tag":160,"props":11905,"children":11906},{"style":1771},[11907],{"type":58,"value":11070},{"type":52,"tag":160,"props":11909,"children":11910},{"style":4080},[11911],{"type":58,"value":3931},{"type":52,"tag":160,"props":11913,"children":11914},{"style":1771},[11915],{"type":58,"value":11079},{"type":52,"tag":160,"props":11917,"children":11918},{"style":4181},[11919],{"type":58,"value":11084},{"type":52,"tag":160,"props":11921,"children":11922},{"style":1771},[11923],{"type":58,"value":11089},{"type":52,"tag":160,"props":11925,"children":11926},{"style":4080},[11927],{"type":58,"value":3931},{"type":52,"tag":160,"props":11929,"children":11930},{"style":1771},[11931],{"type":58,"value":11098},{"type":52,"tag":160,"props":11933,"children":11934},{"style":4181},[11935],{"type":58,"value":10630},{"type":52,"tag":160,"props":11937,"children":11938},{"style":4080},[11939],{"type":58,"value":11107},{"type":52,"tag":160,"props":11941,"children":11942},{"class":162,"line":617},[11943,11947,11951,11955,11959],{"type":52,"tag":160,"props":11944,"children":11945},{"style":1771},[11946],{"type":58,"value":11070},{"type":52,"tag":160,"props":11948,"children":11949},{"style":4080},[11950],{"type":58,"value":3931},{"type":52,"tag":160,"props":11952,"children":11953},{"style":1771},[11954],{"type":58,"value":11123},{"type":52,"tag":160,"props":11956,"children":11957},{"style":4181},[11958],{"type":58,"value":10630},{"type":52,"tag":160,"props":11960,"children":11961},{"style":4080},[11962],{"type":58,"value":11132},{"type":52,"tag":160,"props":11964,"children":11965},{"class":162,"line":626},[11966,11970,11974,11978,11982],{"type":52,"tag":160,"props":11967,"children":11968},{"style":1771},[11969],{"type":58,"value":11070},{"type":52,"tag":160,"props":11971,"children":11972},{"style":4080},[11973],{"type":58,"value":3931},{"type":52,"tag":160,"props":11975,"children":11976},{"style":1771},[11977],{"type":58,"value":11148},{"type":52,"tag":160,"props":11979,"children":11980},{"style":4181},[11981],{"type":58,"value":10630},{"type":52,"tag":160,"props":11983,"children":11984},{"style":4080},[11985],{"type":58,"value":11157},{"type":52,"tag":160,"props":11987,"children":11988},{"class":162,"line":635},[11989,11993,11997,12001,12005],{"type":52,"tag":160,"props":11990,"children":11991},{"style":4181},[11992],{"type":58,"value":11165},{"type":52,"tag":160,"props":11994,"children":11995},{"style":1771},[11996],{"type":58,"value":11170},{"type":52,"tag":160,"props":11998,"children":11999},{"style":4080},[12000],{"type":58,"value":3931},{"type":52,"tag":160,"props":12002,"children":12003},{"style":1771},[12004],{"type":58,"value":11179},{"type":52,"tag":160,"props":12006,"children":12007},{"style":4080},[12008],{"type":58,"value":11184},{"type":52,"tag":160,"props":12010,"children":12011},{"class":162,"line":644},[12012,12016,12020,12024,12028],{"type":52,"tag":160,"props":12013,"children":12014},{"style":4181},[12015],{"type":58,"value":10306},{"type":52,"tag":160,"props":12017,"children":12018},{"style":1771},[12019],{"type":58,"value":11170},{"type":52,"tag":160,"props":12021,"children":12022},{"style":4080},[12023],{"type":58,"value":3931},{"type":52,"tag":160,"props":12025,"children":12026},{"style":1771},[12027],{"type":58,"value":11204},{"type":52,"tag":160,"props":12029,"children":12030},{"style":4080},[12031],{"type":58,"value":11209},{"type":52,"tag":160,"props":12033,"children":12034},{"class":162,"line":653},[12035,12039,12043,12047,12051,12055,12059,12063],{"type":52,"tag":160,"props":12036,"children":12037},{"style":4181},[12038],{"type":58,"value":11217},{"type":52,"tag":160,"props":12040,"children":12041},{"style":1771},[12042],{"type":58,"value":11222},{"type":52,"tag":160,"props":12044,"children":12045},{"style":4080},[12046],{"type":58,"value":3931},{"type":52,"tag":160,"props":12048,"children":12049},{"style":1771},[12050],{"type":58,"value":10672},{"type":52,"tag":160,"props":12052,"children":12053},{"style":4181},[12054],{"type":58,"value":11235},{"type":52,"tag":160,"props":12056,"children":12057},{"style":1771},[12058],{"type":58,"value":11240},{"type":52,"tag":160,"props":12060,"children":12061},{"style":4080},[12062],{"type":58,"value":3931},{"type":52,"tag":160,"props":12064,"children":12065},{"style":1771},[12066],{"type":58,"value":11249},{"type":52,"tag":160,"props":12068,"children":12069},{"class":162,"line":662},[12070,12074,12079,12083,12087,12091,12095,12099,12103,12107,12111,12115,12119,12123],{"type":52,"tag":160,"props":12071,"children":12072},{"style":4181},[12073],{"type":58,"value":11257},{"type":52,"tag":160,"props":12075,"children":12076},{"style":4181},[12077],{"type":58,"value":12078}," DATE",{"type":52,"tag":160,"props":12080,"children":12081},{"style":4080},[12082],{"type":58,"value":10763},{"type":52,"tag":160,"props":12084,"children":12085},{"style":1771},[12086],{"type":58,"value":10768},{"type":52,"tag":160,"props":12088,"children":12089},{"style":4080},[12090],{"type":58,"value":3931},{"type":52,"tag":160,"props":12092,"children":12093},{"style":1771},[12094],{"type":58,"value":10697},{"type":52,"tag":160,"props":12096,"children":12097},{"style":4080},[12098],{"type":58,"value":11279},{"type":52,"tag":160,"props":12100,"children":12101},{"style":4181},[12102],{"type":58,"value":11284},{"type":52,"tag":160,"props":12104,"children":12105},{"style":4181},[12106],{"type":58,"value":12078},{"type":52,"tag":160,"props":12108,"children":12109},{"style":4080},[12110],{"type":58,"value":10763},{"type":52,"tag":160,"props":12112,"children":12113},{"style":1771},[12114],{"type":58,"value":11293},{"type":52,"tag":160,"props":12116,"children":12117},{"style":4080},[12118],{"type":58,"value":3931},{"type":52,"tag":160,"props":12120,"children":12121},{"style":1771},[12122],{"type":58,"value":11302},{"type":52,"tag":160,"props":12124,"children":12125},{"style":4080},[12126],{"type":58,"value":11307},{"type":52,"tag":160,"props":12128,"children":12129},{"class":162,"line":671},[12130,12135,12139,12143,12148,12153,12158,12163,12168,12172,12176,12180],{"type":52,"tag":160,"props":12131,"children":12132},{"style":4181},[12133],{"type":58,"value":12134},"WHERE",{"type":52,"tag":160,"props":12136,"children":12137},{"style":1771},[12138],{"type":58,"value":11222},{"type":52,"tag":160,"props":12140,"children":12141},{"style":4080},[12142],{"type":58,"value":3931},{"type":52,"tag":160,"props":12144,"children":12145},{"style":1771},[12146],{"type":58,"value":12147},"test",{"type":52,"tag":160,"props":12149,"children":12150},{"style":4181},[12151],{"type":58,"value":12152}," IS",{"type":52,"tag":160,"props":12154,"children":12155},{"style":4181},[12156],{"type":58,"value":12157}," NOT",{"type":52,"tag":160,"props":12159,"children":12160},{"style":4080},[12161],{"type":58,"value":12162}," TRUE ",{"type":52,"tag":160,"props":12164,"children":12165},{"style":4181},[12166],{"type":58,"value":12167},"AND",{"type":52,"tag":160,"props":12169,"children":12170},{"style":1771},[12171],{"type":58,"value":11222},{"type":52,"tag":160,"props":12173,"children":12174},{"style":4080},[12175],{"type":58,"value":3931},{"type":52,"tag":160,"props":12177,"children":12178},{"style":1771},[12179],{"type":58,"value":6388},{"type":52,"tag":160,"props":12181,"children":12182},{"style":4181},[12183],{"type":58,"value":12184}," IS NOT NULL\n",{"type":52,"tag":160,"props":12186,"children":12187},{"class":162,"line":680},[12188,12193,12198,12203,12208,12213,12218,12223,12227,12231,12235,12240,12244,12248,12253,12258,12262,12266],{"type":52,"tag":160,"props":12189,"children":12190},{"style":4080},[12191],{"type":58,"value":12192},"QUALIFY ",{"type":52,"tag":160,"props":12194,"children":12195},{"style":1771},[12196],{"type":58,"value":12197},"ROW_NUMBER",{"type":52,"tag":160,"props":12199,"children":12200},{"style":4080},[12201],{"type":58,"value":12202},"() ",{"type":52,"tag":160,"props":12204,"children":12205},{"style":4181},[12206],{"type":58,"value":12207},"OVER",{"type":52,"tag":160,"props":12209,"children":12210},{"style":4080},[12211],{"type":58,"value":12212}," (",{"type":52,"tag":160,"props":12214,"children":12215},{"style":4181},[12216],{"type":58,"value":12217},"PARTITION",{"type":52,"tag":160,"props":12219,"children":12220},{"style":4181},[12221],{"type":58,"value":12222}," BY",{"type":52,"tag":160,"props":12224,"children":12225},{"style":1771},[12226],{"type":58,"value":11222},{"type":52,"tag":160,"props":12228,"children":12229},{"style":4080},[12230],{"type":58,"value":3931},{"type":52,"tag":160,"props":12232,"children":12233},{"style":1771},[12234],{"type":58,"value":10625},{"type":52,"tag":160,"props":12236,"children":12237},{"style":4181},[12238],{"type":58,"value":12239}," ORDER BY",{"type":52,"tag":160,"props":12241,"children":12242},{"style":1771},[12243],{"type":58,"value":11222},{"type":52,"tag":160,"props":12245,"children":12246},{"style":4080},[12247],{"type":58,"value":3931},{"type":52,"tag":160,"props":12249,"children":12250},{"style":1771},[12251],{"type":58,"value":12252},"updated_at",{"type":52,"tag":160,"props":12254,"children":12255},{"style":4181},[12256],{"type":58,"value":12257}," DESC",{"type":52,"tag":160,"props":12259,"children":12260},{"style":4080},[12261],{"type":58,"value":11279},{"type":52,"tag":160,"props":12263,"children":12264},{"style":4181},[12265],{"type":58,"value":11284},{"type":52,"tag":160,"props":12267,"children":12268},{"style":1771},[12269],{"type":58,"value":12270}," 1\n",{"type":52,"tag":259,"props":12272,"children":12273},{"v-slot:snowflake":7},[12274],{"type":52,"tag":150,"props":12275,"children":12277},{"className":10404,"code":12276,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_orders\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.shopify_orders\n  - raw.stripe_charges\ncolumns:\n  - name: order_id\n    type: varchar\n    checks:\n      - name: not_null\n      - name: unique\n  - name: order_date\n    type: timestamp\n    checks:\n      - name: not_null\ncustom_checks:\n  - name: has_rows\n    query: \"SELECT count(*) > 0 FROM staging.stg_orders\"\n    value: 1\n@bruin *\u002F\n\nSELECT\n    o.id AS order_id,\n    o.order_number,\n    o.email AS customer_email,\n    o.created_at AS order_date,\n    o.financial_status AS payment_status,\n    o.fulfillment_status,\n    CAST(o.total_price AS DECIMAL(12,2)) AS order_total,\n    CAST(o.subtotal_price AS DECIMAL(12,2)) AS subtotal,\n    CAST(o.total_tax AS DECIMAL(12,2)) AS tax_amount,\n    CAST(o.total_discounts AS DECIMAL(12,2)) AS discount_amount,\n    o.currency,\n    o.cancel_reason,\n    o.cancelled_at,\n    c.amount \u002F 100.0 AS stripe_charge_amount,\n    c.status AS stripe_status,\n    c.paid AS stripe_paid\nFROM raw.shopify_orders o\nLEFT JOIN raw.stripe_charges c\n    ON o.email = c.receipt_email\n    AND o.created_at::DATE = c.created::DATE\n",[12278],{"type":52,"tag":71,"props":12279,"children":12280},{"__ignoreMap":7},[12281,12288,12295,12302,12309,12316,12323,12330,12337,12344,12351,12358,12365,12372,12379,12386,12393,12400,12407,12414,12421,12428,12435,12442,12449,12456,12479,12498,12521,12544,12567,12586,12645,12704,12763,12822,12841,12860,12879,12918,12941,12964,12987,13010,13045],{"type":52,"tag":160,"props":12282,"children":12283},{"class":162,"line":163},[12284],{"type":52,"tag":160,"props":12285,"children":12286},{"style":10416},[12287],{"type":58,"value":10419},{"type":52,"tag":160,"props":12289,"children":12290},{"class":162,"line":281},[12291],{"type":52,"tag":160,"props":12292,"children":12293},{"style":10416},[12294],{"type":58,"value":10427},{"type":52,"tag":160,"props":12296,"children":12297},{"class":162,"line":290},[12298],{"type":52,"tag":160,"props":12299,"children":12300},{"style":10416},[12301],{"type":58,"value":10435},{"type":52,"tag":160,"props":12303,"children":12304},{"class":162,"line":299},[12305],{"type":52,"tag":160,"props":12306,"children":12307},{"style":10416},[12308],{"type":58,"value":10443},{"type":52,"tag":160,"props":12310,"children":12311},{"class":162,"line":27},[12312],{"type":52,"tag":160,"props":12313,"children":12314},{"style":10416},[12315],{"type":58,"value":10451},{"type":52,"tag":160,"props":12317,"children":12318},{"class":162,"line":316},[12319],{"type":52,"tag":160,"props":12320,"children":12321},{"style":10416},[12322],{"type":58,"value":10459},{"type":52,"tag":160,"props":12324,"children":12325},{"class":162,"line":325},[12326],{"type":52,"tag":160,"props":12327,"children":12328},{"style":10416},[12329],{"type":58,"value":10467},{"type":52,"tag":160,"props":12331,"children":12332},{"class":162,"line":334},[12333],{"type":52,"tag":160,"props":12334,"children":12335},{"style":10416},[12336],{"type":58,"value":10475},{"type":52,"tag":160,"props":12338,"children":12339},{"class":162,"line":343},[12340],{"type":52,"tag":160,"props":12341,"children":12342},{"style":10416},[12343],{"type":58,"value":10483},{"type":52,"tag":160,"props":12345,"children":12346},{"class":162,"line":11},[12347],{"type":52,"tag":160,"props":12348,"children":12349},{"style":10416},[12350],{"type":58,"value":10491},{"type":52,"tag":160,"props":12352,"children":12353},{"class":162,"line":359},[12354],{"type":52,"tag":160,"props":12355,"children":12356},{"style":10416},[12357],{"type":58,"value":10499},{"type":52,"tag":160,"props":12359,"children":12360},{"class":162,"line":368},[12361],{"type":52,"tag":160,"props":12362,"children":12363},{"style":10416},[12364],{"type":58,"value":10507},{"type":52,"tag":160,"props":12366,"children":12367},{"class":162,"line":377},[12368],{"type":52,"tag":160,"props":12369,"children":12370},{"style":10416},[12371],{"type":58,"value":10515},{"type":52,"tag":160,"props":12373,"children":12374},{"class":162,"line":386},[12375],{"type":52,"tag":160,"props":12376,"children":12377},{"style":10416},[12378],{"type":58,"value":10523},{"type":52,"tag":160,"props":12380,"children":12381},{"class":162,"line":395},[12382],{"type":52,"tag":160,"props":12383,"children":12384},{"style":10416},[12385],{"type":58,"value":10531},{"type":52,"tag":160,"props":12387,"children":12388},{"class":162,"line":404},[12389],{"type":52,"tag":160,"props":12390,"children":12391},{"style":10416},[12392],{"type":58,"value":10539},{"type":52,"tag":160,"props":12394,"children":12395},{"class":162,"line":413},[12396],{"type":52,"tag":160,"props":12397,"children":12398},{"style":10416},[12399],{"type":58,"value":10507},{"type":52,"tag":160,"props":12401,"children":12402},{"class":162,"line":422},[12403],{"type":52,"tag":160,"props":12404,"children":12405},{"style":10416},[12406],{"type":58,"value":10515},{"type":52,"tag":160,"props":12408,"children":12409},{"class":162,"line":430},[12410],{"type":52,"tag":160,"props":12411,"children":12412},{"style":10416},[12413],{"type":58,"value":10561},{"type":52,"tag":160,"props":12415,"children":12416},{"class":162,"line":439},[12417],{"type":52,"tag":160,"props":12418,"children":12419},{"style":10416},[12420],{"type":58,"value":10569},{"type":52,"tag":160,"props":12422,"children":12423},{"class":162,"line":448},[12424],{"type":52,"tag":160,"props":12425,"children":12426},{"style":10416},[12427],{"type":58,"value":10577},{"type":52,"tag":160,"props":12429,"children":12430},{"class":162,"line":457},[12431],{"type":52,"tag":160,"props":12432,"children":12433},{"style":10416},[12434],{"type":58,"value":10585},{"type":52,"tag":160,"props":12436,"children":12437},{"class":162,"line":466},[12438],{"type":52,"tag":160,"props":12439,"children":12440},{"style":10416},[12441],{"type":58,"value":10593},{"type":52,"tag":160,"props":12443,"children":12444},{"class":162,"line":474},[12445],{"type":52,"tag":160,"props":12446,"children":12447},{"emptyLinePlaceholder":26},[12448],{"type":58,"value":287},{"type":52,"tag":160,"props":12450,"children":12451},{"class":162,"line":483},[12452],{"type":52,"tag":160,"props":12453,"children":12454},{"style":4181},[12455],{"type":58,"value":10608},{"type":52,"tag":160,"props":12457,"children":12458},{"class":162,"line":492},[12459,12463,12467,12471,12475],{"type":52,"tag":160,"props":12460,"children":12461},{"style":1771},[12462],{"type":58,"value":10616},{"type":52,"tag":160,"props":12464,"children":12465},{"style":4080},[12466],{"type":58,"value":3931},{"type":52,"tag":160,"props":12468,"children":12469},{"style":1771},[12470],{"type":58,"value":10625},{"type":52,"tag":160,"props":12472,"children":12473},{"style":4181},[12474],{"type":58,"value":10630},{"type":52,"tag":160,"props":12476,"children":12477},{"style":4080},[12478],{"type":58,"value":10635},{"type":52,"tag":160,"props":12480,"children":12481},{"class":162,"line":501},[12482,12486,12490,12494],{"type":52,"tag":160,"props":12483,"children":12484},{"style":1771},[12485],{"type":58,"value":10616},{"type":52,"tag":160,"props":12487,"children":12488},{"style":4080},[12489],{"type":58,"value":3931},{"type":52,"tag":160,"props":12491,"children":12492},{"style":1771},[12493],{"type":58,"value":10651},{"type":52,"tag":160,"props":12495,"children":12496},{"style":4080},[12497],{"type":58,"value":10656},{"type":52,"tag":160,"props":12499,"children":12500},{"class":162,"line":510},[12501,12505,12509,12513,12517],{"type":52,"tag":160,"props":12502,"children":12503},{"style":1771},[12504],{"type":58,"value":10616},{"type":52,"tag":160,"props":12506,"children":12507},{"style":4080},[12508],{"type":58,"value":3931},{"type":52,"tag":160,"props":12510,"children":12511},{"style":1771},[12512],{"type":58,"value":10672},{"type":52,"tag":160,"props":12514,"children":12515},{"style":4181},[12516],{"type":58,"value":10630},{"type":52,"tag":160,"props":12518,"children":12519},{"style":4080},[12520],{"type":58,"value":10681},{"type":52,"tag":160,"props":12522,"children":12523},{"class":162,"line":519},[12524,12528,12532,12536,12540],{"type":52,"tag":160,"props":12525,"children":12526},{"style":1771},[12527],{"type":58,"value":10616},{"type":52,"tag":160,"props":12529,"children":12530},{"style":4080},[12531],{"type":58,"value":3931},{"type":52,"tag":160,"props":12533,"children":12534},{"style":1771},[12535],{"type":58,"value":10697},{"type":52,"tag":160,"props":12537,"children":12538},{"style":4181},[12539],{"type":58,"value":10630},{"type":52,"tag":160,"props":12541,"children":12542},{"style":4080},[12543],{"type":58,"value":10706},{"type":52,"tag":160,"props":12545,"children":12546},{"class":162,"line":528},[12547,12551,12555,12559,12563],{"type":52,"tag":160,"props":12548,"children":12549},{"style":1771},[12550],{"type":58,"value":10616},{"type":52,"tag":160,"props":12552,"children":12553},{"style":4080},[12554],{"type":58,"value":3931},{"type":52,"tag":160,"props":12556,"children":12557},{"style":1771},[12558],{"type":58,"value":6388},{"type":52,"tag":160,"props":12560,"children":12561},{"style":4181},[12562],{"type":58,"value":10630},{"type":52,"tag":160,"props":12564,"children":12565},{"style":4080},[12566],{"type":58,"value":10730},{"type":52,"tag":160,"props":12568,"children":12569},{"class":162,"line":537},[12570,12574,12578,12582],{"type":52,"tag":160,"props":12571,"children":12572},{"style":1771},[12573],{"type":58,"value":10616},{"type":52,"tag":160,"props":12575,"children":12576},{"style":4080},[12577],{"type":58,"value":3931},{"type":52,"tag":160,"props":12579,"children":12580},{"style":1771},[12581],{"type":58,"value":10746},{"type":52,"tag":160,"props":12583,"children":12584},{"style":4080},[12585],{"type":58,"value":10656},{"type":52,"tag":160,"props":12587,"children":12588},{"class":162,"line":546},[12589,12593,12597,12601,12605,12609,12613,12617,12621,12625,12629,12633,12637,12641],{"type":52,"tag":160,"props":12590,"children":12591},{"style":1771},[12592],{"type":58,"value":10758},{"type":52,"tag":160,"props":12594,"children":12595},{"style":4080},[12596],{"type":58,"value":10763},{"type":52,"tag":160,"props":12598,"children":12599},{"style":1771},[12600],{"type":58,"value":10768},{"type":52,"tag":160,"props":12602,"children":12603},{"style":4080},[12604],{"type":58,"value":3931},{"type":52,"tag":160,"props":12606,"children":12607},{"style":1771},[12608],{"type":58,"value":6395},{"type":52,"tag":160,"props":12610,"children":12611},{"style":4181},[12612],{"type":58,"value":10630},{"type":52,"tag":160,"props":12614,"children":12615},{"style":4181},[12616],{"type":58,"value":10785},{"type":52,"tag":160,"props":12618,"children":12619},{"style":4080},[12620],{"type":58,"value":10763},{"type":52,"tag":160,"props":12622,"children":12623},{"style":1771},[12624],{"type":58,"value":10794},{"type":52,"tag":160,"props":12626,"children":12627},{"style":4080},[12628],{"type":58,"value":10799},{"type":52,"tag":160,"props":12630,"children":12631},{"style":1771},[12632],{"type":58,"value":10804},{"type":52,"tag":160,"props":12634,"children":12635},{"style":4080},[12636],{"type":58,"value":10809},{"type":52,"tag":160,"props":12638,"children":12639},{"style":4181},[12640],{"type":58,"value":10814},{"type":52,"tag":160,"props":12642,"children":12643},{"style":4080},[12644],{"type":58,"value":10819},{"type":52,"tag":160,"props":12646,"children":12647},{"class":162,"line":555},[12648,12652,12656,12660,12664,12668,12672,12676,12680,12684,12688,12692,12696,12700],{"type":52,"tag":160,"props":12649,"children":12650},{"style":1771},[12651],{"type":58,"value":10758},{"type":52,"tag":160,"props":12653,"children":12654},{"style":4080},[12655],{"type":58,"value":10763},{"type":52,"tag":160,"props":12657,"children":12658},{"style":1771},[12659],{"type":58,"value":10768},{"type":52,"tag":160,"props":12661,"children":12662},{"style":4080},[12663],{"type":58,"value":3931},{"type":52,"tag":160,"props":12665,"children":12666},{"style":1771},[12667],{"type":58,"value":10843},{"type":52,"tag":160,"props":12669,"children":12670},{"style":4181},[12671],{"type":58,"value":10630},{"type":52,"tag":160,"props":12673,"children":12674},{"style":4181},[12675],{"type":58,"value":10785},{"type":52,"tag":160,"props":12677,"children":12678},{"style":4080},[12679],{"type":58,"value":10763},{"type":52,"tag":160,"props":12681,"children":12682},{"style":1771},[12683],{"type":58,"value":10794},{"type":52,"tag":160,"props":12685,"children":12686},{"style":4080},[12687],{"type":58,"value":10799},{"type":52,"tag":160,"props":12689,"children":12690},{"style":1771},[12691],{"type":58,"value":10804},{"type":52,"tag":160,"props":12693,"children":12694},{"style":4080},[12695],{"type":58,"value":10809},{"type":52,"tag":160,"props":12697,"children":12698},{"style":4181},[12699],{"type":58,"value":10814},{"type":52,"tag":160,"props":12701,"children":12702},{"style":4080},[12703],{"type":58,"value":10880},{"type":52,"tag":160,"props":12705,"children":12706},{"class":162,"line":564},[12707,12711,12715,12719,12723,12727,12731,12735,12739,12743,12747,12751,12755,12759],{"type":52,"tag":160,"props":12708,"children":12709},{"style":1771},[12710],{"type":58,"value":10758},{"type":52,"tag":160,"props":12712,"children":12713},{"style":4080},[12714],{"type":58,"value":10763},{"type":52,"tag":160,"props":12716,"children":12717},{"style":1771},[12718],{"type":58,"value":10768},{"type":52,"tag":160,"props":12720,"children":12721},{"style":4080},[12722],{"type":58,"value":3931},{"type":52,"tag":160,"props":12724,"children":12725},{"style":1771},[12726],{"type":58,"value":10904},{"type":52,"tag":160,"props":12728,"children":12729},{"style":4181},[12730],{"type":58,"value":10630},{"type":52,"tag":160,"props":12732,"children":12733},{"style":4181},[12734],{"type":58,"value":10785},{"type":52,"tag":160,"props":12736,"children":12737},{"style":4080},[12738],{"type":58,"value":10763},{"type":52,"tag":160,"props":12740,"children":12741},{"style":1771},[12742],{"type":58,"value":10794},{"type":52,"tag":160,"props":12744,"children":12745},{"style":4080},[12746],{"type":58,"value":10799},{"type":52,"tag":160,"props":12748,"children":12749},{"style":1771},[12750],{"type":58,"value":10804},{"type":52,"tag":160,"props":12752,"children":12753},{"style":4080},[12754],{"type":58,"value":10809},{"type":52,"tag":160,"props":12756,"children":12757},{"style":4181},[12758],{"type":58,"value":10814},{"type":52,"tag":160,"props":12760,"children":12761},{"style":4080},[12762],{"type":58,"value":10941},{"type":52,"tag":160,"props":12764,"children":12765},{"class":162,"line":573},[12766,12770,12774,12778,12782,12786,12790,12794,12798,12802,12806,12810,12814,12818],{"type":52,"tag":160,"props":12767,"children":12768},{"style":1771},[12769],{"type":58,"value":10758},{"type":52,"tag":160,"props":12771,"children":12772},{"style":4080},[12773],{"type":58,"value":10763},{"type":52,"tag":160,"props":12775,"children":12776},{"style":1771},[12777],{"type":58,"value":10768},{"type":52,"tag":160,"props":12779,"children":12780},{"style":4080},[12781],{"type":58,"value":3931},{"type":52,"tag":160,"props":12783,"children":12784},{"style":1771},[12785],{"type":58,"value":10965},{"type":52,"tag":160,"props":12787,"children":12788},{"style":4181},[12789],{"type":58,"value":10630},{"type":52,"tag":160,"props":12791,"children":12792},{"style":4181},[12793],{"type":58,"value":10785},{"type":52,"tag":160,"props":12795,"children":12796},{"style":4080},[12797],{"type":58,"value":10763},{"type":52,"tag":160,"props":12799,"children":12800},{"style":1771},[12801],{"type":58,"value":10794},{"type":52,"tag":160,"props":12803,"children":12804},{"style":4080},[12805],{"type":58,"value":10799},{"type":52,"tag":160,"props":12807,"children":12808},{"style":1771},[12809],{"type":58,"value":10804},{"type":52,"tag":160,"props":12811,"children":12812},{"style":4080},[12813],{"type":58,"value":10809},{"type":52,"tag":160,"props":12815,"children":12816},{"style":4181},[12817],{"type":58,"value":10814},{"type":52,"tag":160,"props":12819,"children":12820},{"style":4080},[12821],{"type":58,"value":11002},{"type":52,"tag":160,"props":12823,"children":12824},{"class":162,"line":582},[12825,12829,12833,12837],{"type":52,"tag":160,"props":12826,"children":12827},{"style":1771},[12828],{"type":58,"value":10616},{"type":52,"tag":160,"props":12830,"children":12831},{"style":4080},[12832],{"type":58,"value":3931},{"type":52,"tag":160,"props":12834,"children":12835},{"style":1771},[12836],{"type":58,"value":11018},{"type":52,"tag":160,"props":12838,"children":12839},{"style":4080},[12840],{"type":58,"value":10656},{"type":52,"tag":160,"props":12842,"children":12843},{"class":162,"line":591},[12844,12848,12852,12856],{"type":52,"tag":160,"props":12845,"children":12846},{"style":1771},[12847],{"type":58,"value":10616},{"type":52,"tag":160,"props":12849,"children":12850},{"style":4080},[12851],{"type":58,"value":3931},{"type":52,"tag":160,"props":12853,"children":12854},{"style":1771},[12855],{"type":58,"value":11038},{"type":52,"tag":160,"props":12857,"children":12858},{"style":4080},[12859],{"type":58,"value":10656},{"type":52,"tag":160,"props":12861,"children":12862},{"class":162,"line":599},[12863,12867,12871,12875],{"type":52,"tag":160,"props":12864,"children":12865},{"style":1771},[12866],{"type":58,"value":10616},{"type":52,"tag":160,"props":12868,"children":12869},{"style":4080},[12870],{"type":58,"value":3931},{"type":52,"tag":160,"props":12872,"children":12873},{"style":1771},[12874],{"type":58,"value":11058},{"type":52,"tag":160,"props":12876,"children":12877},{"style":4080},[12878],{"type":58,"value":10656},{"type":52,"tag":160,"props":12880,"children":12881},{"class":162,"line":608},[12882,12886,12890,12894,12898,12902,12906,12910,12914],{"type":52,"tag":160,"props":12883,"children":12884},{"style":1771},[12885],{"type":58,"value":11070},{"type":52,"tag":160,"props":12887,"children":12888},{"style":4080},[12889],{"type":58,"value":3931},{"type":52,"tag":160,"props":12891,"children":12892},{"style":1771},[12893],{"type":58,"value":11079},{"type":52,"tag":160,"props":12895,"children":12896},{"style":4181},[12897],{"type":58,"value":11084},{"type":52,"tag":160,"props":12899,"children":12900},{"style":1771},[12901],{"type":58,"value":11089},{"type":52,"tag":160,"props":12903,"children":12904},{"style":4080},[12905],{"type":58,"value":3931},{"type":52,"tag":160,"props":12907,"children":12908},{"style":1771},[12909],{"type":58,"value":11098},{"type":52,"tag":160,"props":12911,"children":12912},{"style":4181},[12913],{"type":58,"value":10630},{"type":52,"tag":160,"props":12915,"children":12916},{"style":4080},[12917],{"type":58,"value":11107},{"type":52,"tag":160,"props":12919,"children":12920},{"class":162,"line":617},[12921,12925,12929,12933,12937],{"type":52,"tag":160,"props":12922,"children":12923},{"style":1771},[12924],{"type":58,"value":11070},{"type":52,"tag":160,"props":12926,"children":12927},{"style":4080},[12928],{"type":58,"value":3931},{"type":52,"tag":160,"props":12930,"children":12931},{"style":1771},[12932],{"type":58,"value":11123},{"type":52,"tag":160,"props":12934,"children":12935},{"style":4181},[12936],{"type":58,"value":10630},{"type":52,"tag":160,"props":12938,"children":12939},{"style":4080},[12940],{"type":58,"value":11132},{"type":52,"tag":160,"props":12942,"children":12943},{"class":162,"line":626},[12944,12948,12952,12956,12960],{"type":52,"tag":160,"props":12945,"children":12946},{"style":1771},[12947],{"type":58,"value":11070},{"type":52,"tag":160,"props":12949,"children":12950},{"style":4080},[12951],{"type":58,"value":3931},{"type":52,"tag":160,"props":12953,"children":12954},{"style":1771},[12955],{"type":58,"value":11148},{"type":52,"tag":160,"props":12957,"children":12958},{"style":4181},[12959],{"type":58,"value":10630},{"type":52,"tag":160,"props":12961,"children":12962},{"style":4080},[12963],{"type":58,"value":11157},{"type":52,"tag":160,"props":12965,"children":12966},{"class":162,"line":635},[12967,12971,12975,12979,12983],{"type":52,"tag":160,"props":12968,"children":12969},{"style":4181},[12970],{"type":58,"value":11165},{"type":52,"tag":160,"props":12972,"children":12973},{"style":1771},[12974],{"type":58,"value":11170},{"type":52,"tag":160,"props":12976,"children":12977},{"style":4080},[12978],{"type":58,"value":3931},{"type":52,"tag":160,"props":12980,"children":12981},{"style":1771},[12982],{"type":58,"value":11179},{"type":52,"tag":160,"props":12984,"children":12985},{"style":4080},[12986],{"type":58,"value":11184},{"type":52,"tag":160,"props":12988,"children":12989},{"class":162,"line":644},[12990,12994,12998,13002,13006],{"type":52,"tag":160,"props":12991,"children":12992},{"style":4181},[12993],{"type":58,"value":10306},{"type":52,"tag":160,"props":12995,"children":12996},{"style":1771},[12997],{"type":58,"value":11170},{"type":52,"tag":160,"props":12999,"children":13000},{"style":4080},[13001],{"type":58,"value":3931},{"type":52,"tag":160,"props":13003,"children":13004},{"style":1771},[13005],{"type":58,"value":11204},{"type":52,"tag":160,"props":13007,"children":13008},{"style":4080},[13009],{"type":58,"value":11209},{"type":52,"tag":160,"props":13011,"children":13012},{"class":162,"line":653},[13013,13017,13021,13025,13029,13033,13037,13041],{"type":52,"tag":160,"props":13014,"children":13015},{"style":4181},[13016],{"type":58,"value":11217},{"type":52,"tag":160,"props":13018,"children":13019},{"style":1771},[13020],{"type":58,"value":11222},{"type":52,"tag":160,"props":13022,"children":13023},{"style":4080},[13024],{"type":58,"value":3931},{"type":52,"tag":160,"props":13026,"children":13027},{"style":1771},[13028],{"type":58,"value":10672},{"type":52,"tag":160,"props":13030,"children":13031},{"style":4181},[13032],{"type":58,"value":11235},{"type":52,"tag":160,"props":13034,"children":13035},{"style":1771},[13036],{"type":58,"value":11240},{"type":52,"tag":160,"props":13038,"children":13039},{"style":4080},[13040],{"type":58,"value":3931},{"type":52,"tag":160,"props":13042,"children":13043},{"style":1771},[13044],{"type":58,"value":11249},{"type":52,"tag":160,"props":13046,"children":13047},{"class":162,"line":662},[13048,13052,13056,13060,13064,13069,13074,13078,13082,13086,13090,13094],{"type":52,"tag":160,"props":13049,"children":13050},{"style":4181},[13051],{"type":58,"value":11257},{"type":52,"tag":160,"props":13053,"children":13054},{"style":1771},[13055],{"type":58,"value":11222},{"type":52,"tag":160,"props":13057,"children":13058},{"style":4080},[13059],{"type":58,"value":3931},{"type":52,"tag":160,"props":13061,"children":13062},{"style":1771},[13063],{"type":58,"value":10697},{"type":52,"tag":160,"props":13065,"children":13066},{"style":4080},[13067],{"type":58,"value":13068},"::",{"type":52,"tag":160,"props":13070,"children":13071},{"style":4181},[13072],{"type":58,"value":13073},"DATE",{"type":52,"tag":160,"props":13075,"children":13076},{"style":4181},[13077],{"type":58,"value":11235},{"type":52,"tag":160,"props":13079,"children":13080},{"style":1771},[13081],{"type":58,"value":11240},{"type":52,"tag":160,"props":13083,"children":13084},{"style":4080},[13085],{"type":58,"value":3931},{"type":52,"tag":160,"props":13087,"children":13088},{"style":1771},[13089],{"type":58,"value":11302},{"type":52,"tag":160,"props":13091,"children":13092},{"style":4080},[13093],{"type":58,"value":13068},{"type":52,"tag":160,"props":13095,"children":13096},{"style":4181},[13097],{"type":58,"value":13098},"DATE\n",{"type":52,"tag":107,"props":13100,"children":13101},{},[13102,13104,13109,13111,13117],{"type":58,"value":13103},"The ",{"type":52,"tag":71,"props":13105,"children":13107},{"className":13106},[],[13108],{"type":58,"value":10306},{"type":58,"value":13110}," keeps all Shopify orders even if the Stripe charge hasn't synced yet. The ",{"type":52,"tag":71,"props":13112,"children":13114},{"className":13113},[],[13115],{"type":58,"value":13116},"\u002F 100.0",{"type":58,"value":13118}," converts Stripe's cent-based amounts to dollars.",{"type":52,"tag":131,"props":13120,"children":13122},{"id":13121},"_2-staged-customers-stg_customerssql",[13123,13125],{"type":58,"value":13124},"2) Staged customers - ",{"type":52,"tag":71,"props":13126,"children":13128},{"className":13127},[],[13129],{"type":58,"value":13130},"stg_customers.sql",{"type":52,"tag":107,"props":13132,"children":13133},{},[13134,13136,13142,13143,13149,13150,13156,13157,13163],{"type":58,"value":13135},"A unified customer table that merges Shopify and Stripe profiles. This query uses ",{"type":52,"tag":71,"props":13137,"children":13139},{"className":13138},[],[13140],{"type":58,"value":13141},"COALESCE",{"type":58,"value":3976},{"type":52,"tag":71,"props":13144,"children":13146},{"className":13145},[],[13147],{"type":58,"value":13148},"LEAST",{"type":58,"value":3976},{"type":52,"tag":71,"props":13151,"children":13153},{"className":13152},[],[13154],{"type":58,"value":13155},"FULL OUTER JOIN",{"type":58,"value":3998},{"type":52,"tag":71,"props":13158,"children":13160},{"className":13159},[],[13161],{"type":58,"value":13162},"lower()",{"type":58,"value":13164}," - all of which work the same across warehouses, so there is no warehouse-specific variant needed.",{"type":52,"tag":4021,"props":13166,"children":13167},{"type":10294},[13168],{"type":52,"tag":107,"props":13169,"children":13170},{},[13171,13173,13179,13181,13187,13188,13192,13193,13198,13199,13204,13206,13211,13213,13219,13221,13226,13228,13233],{"type":58,"value":13172},"The SQL below joins ",{"type":52,"tag":71,"props":13174,"children":13176},{"className":13175},[],[13177],{"type":58,"value":13178},"raw.shopify_customers",{"type":58,"value":13180}," with ",{"type":52,"tag":71,"props":13182,"children":13184},{"className":13183},[],[13185],{"type":58,"value":13186},"raw.stripe_customers",{"type":58,"value":10324},{"type":52,"tag":218,"props":13189,"children":13190},{},[13191],{"type":58,"value":6377},{"type":58,"value":10330},{"type":52,"tag":71,"props":13194,"children":13196},{"className":13195},[],[13197],{"type":58,"value":13186},{"type":58,"value":10337},{"type":52,"tag":71,"props":13200,"children":13202},{"className":13201},[],[13203],{"type":58,"value":10322},{"type":58,"value":13205}," list, replace the ",{"type":52,"tag":71,"props":13207,"children":13209},{"className":13208},[],[13210],{"type":58,"value":13155},{"type":58,"value":13212}," with a plain ",{"type":52,"tag":71,"props":13214,"children":13216},{"className":13215},[],[13217],{"type":58,"value":13218},"SELECT",{"type":58,"value":13220}," from ",{"type":52,"tag":71,"props":13222,"children":13224},{"className":13223},[],[13225],{"type":58,"value":13178},{"type":58,"value":13227},", and drop the ",{"type":52,"tag":71,"props":13229,"children":13231},{"className":13230},[],[13232],{"type":58,"value":10357},{"type":58,"value":13234}," columns. Ask Claude Code to adjust the query for you if needed.",{"type":52,"tag":107,"props":13236,"children":13237},{},[13238,13239,13248],{"type":58,"value":10384},{"type":52,"tag":218,"props":13240,"children":13241},{},[13242],{"type":52,"tag":71,"props":13243,"children":13245},{"className":13244},[],[13246],{"type":58,"value":13247},"ecommerce\u002Fassets\u002Fstaging\u002Fstg_customers.sql",{"type":58,"value":10395},{"type":52,"tag":150,"props":13250,"children":13252},{"className":10404,"code":13251,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_customers\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.shopify_customers\n  - raw.stripe_customers\ncolumns:\n  - name: customer_email\n    type: varchar\n    checks:\n      - name: not_null\n      - name: unique\n@bruin *\u002F\n\nSELECT\n    COALESCE(sc.email, st.email) AS customer_email,\n    sc.id AS shopify_customer_id,\n    st.id AS stripe_customer_id,\n    sc.first_name,\n    sc.last_name,\n    sc.created_at AS shopify_created_at,\n    st.created AS stripe_created_at,\n    LEAST(sc.created_at, st.created) AS first_seen_at,\n    sc.orders_count,\n    CAST(sc.total_spent AS DECIMAL(12,2)) AS shopify_total_spent,\n    sc.tags AS customer_tags,\n    sc.state AS customer_state\nFROM raw.shopify_customers sc\nFULL OUTER JOIN raw.stripe_customers st\n    ON lower(sc.email) = lower(st.email)\nWHERE COALESCE(sc.email, st.email) IS NOT NULL\n",[13253],{"type":52,"tag":71,"props":13254,"children":13255},{"__ignoreMap":7},[13256,13263,13271,13278,13285,13292,13299,13307,13315,13322,13330,13337,13344,13351,13358,13365,13372,13379,13433,13458,13483,13503,13523,13547,13571,13624,13644,13705,13730,13755,13780,13805,13865],{"type":52,"tag":160,"props":13257,"children":13258},{"class":162,"line":163},[13259],{"type":52,"tag":160,"props":13260,"children":13261},{"style":10416},[13262],{"type":58,"value":10419},{"type":52,"tag":160,"props":13264,"children":13265},{"class":162,"line":281},[13266],{"type":52,"tag":160,"props":13267,"children":13268},{"style":10416},[13269],{"type":58,"value":13270},"name: staging.stg_customers\n",{"type":52,"tag":160,"props":13272,"children":13273},{"class":162,"line":290},[13274],{"type":52,"tag":160,"props":13275,"children":13276},{"style":10416},[13277],{"type":58,"value":10435},{"type":52,"tag":160,"props":13279,"children":13280},{"class":162,"line":299},[13281],{"type":52,"tag":160,"props":13282,"children":13283},{"style":10416},[13284],{"type":58,"value":10443},{"type":52,"tag":160,"props":13286,"children":13287},{"class":162,"line":27},[13288],{"type":52,"tag":160,"props":13289,"children":13290},{"style":10416},[13291],{"type":58,"value":10451},{"type":52,"tag":160,"props":13293,"children":13294},{"class":162,"line":316},[13295],{"type":52,"tag":160,"props":13296,"children":13297},{"style":10416},[13298],{"type":58,"value":10459},{"type":52,"tag":160,"props":13300,"children":13301},{"class":162,"line":325},[13302],{"type":52,"tag":160,"props":13303,"children":13304},{"style":10416},[13305],{"type":58,"value":13306},"  - raw.shopify_customers\n",{"type":52,"tag":160,"props":13308,"children":13309},{"class":162,"line":334},[13310],{"type":52,"tag":160,"props":13311,"children":13312},{"style":10416},[13313],{"type":58,"value":13314},"  - raw.stripe_customers\n",{"type":52,"tag":160,"props":13316,"children":13317},{"class":162,"line":343},[13318],{"type":52,"tag":160,"props":13319,"children":13320},{"style":10416},[13321],{"type":58,"value":10483},{"type":52,"tag":160,"props":13323,"children":13324},{"class":162,"line":11},[13325],{"type":52,"tag":160,"props":13326,"children":13327},{"style":10416},[13328],{"type":58,"value":13329},"  - name: customer_email\n",{"type":52,"tag":160,"props":13331,"children":13332},{"class":162,"line":359},[13333],{"type":52,"tag":160,"props":13334,"children":13335},{"style":10416},[13336],{"type":58,"value":10499},{"type":52,"tag":160,"props":13338,"children":13339},{"class":162,"line":368},[13340],{"type":52,"tag":160,"props":13341,"children":13342},{"style":10416},[13343],{"type":58,"value":10507},{"type":52,"tag":160,"props":13345,"children":13346},{"class":162,"line":377},[13347],{"type":52,"tag":160,"props":13348,"children":13349},{"style":10416},[13350],{"type":58,"value":10515},{"type":52,"tag":160,"props":13352,"children":13353},{"class":162,"line":386},[13354],{"type":52,"tag":160,"props":13355,"children":13356},{"style":10416},[13357],{"type":58,"value":10523},{"type":52,"tag":160,"props":13359,"children":13360},{"class":162,"line":395},[13361],{"type":52,"tag":160,"props":13362,"children":13363},{"style":10416},[13364],{"type":58,"value":10593},{"type":52,"tag":160,"props":13366,"children":13367},{"class":162,"line":404},[13368],{"type":52,"tag":160,"props":13369,"children":13370},{"emptyLinePlaceholder":26},[13371],{"type":58,"value":287},{"type":52,"tag":160,"props":13373,"children":13374},{"class":162,"line":413},[13375],{"type":52,"tag":160,"props":13376,"children":13377},{"style":4181},[13378],{"type":58,"value":10608},{"type":52,"tag":160,"props":13380,"children":13381},{"class":162,"line":422},[13382,13387,13391,13396,13400,13404,13408,13413,13417,13421,13425,13429],{"type":52,"tag":160,"props":13383,"children":13384},{"style":1771},[13385],{"type":58,"value":13386},"    COALESCE",{"type":52,"tag":160,"props":13388,"children":13389},{"style":4080},[13390],{"type":58,"value":10763},{"type":52,"tag":160,"props":13392,"children":13393},{"style":1771},[13394],{"type":58,"value":13395},"sc",{"type":52,"tag":160,"props":13397,"children":13398},{"style":4080},[13399],{"type":58,"value":3931},{"type":52,"tag":160,"props":13401,"children":13402},{"style":1771},[13403],{"type":58,"value":10672},{"type":52,"tag":160,"props":13405,"children":13406},{"style":4080},[13407],{"type":58,"value":3976},{"type":52,"tag":160,"props":13409,"children":13410},{"style":1771},[13411],{"type":58,"value":13412},"st",{"type":52,"tag":160,"props":13414,"children":13415},{"style":4080},[13416],{"type":58,"value":3931},{"type":52,"tag":160,"props":13418,"children":13419},{"style":1771},[13420],{"type":58,"value":10672},{"type":52,"tag":160,"props":13422,"children":13423},{"style":4080},[13424],{"type":58,"value":11279},{"type":52,"tag":160,"props":13426,"children":13427},{"style":4181},[13428],{"type":58,"value":10814},{"type":52,"tag":160,"props":13430,"children":13431},{"style":4080},[13432],{"type":58,"value":10681},{"type":52,"tag":160,"props":13434,"children":13435},{"class":162,"line":430},[13436,13441,13445,13449,13453],{"type":52,"tag":160,"props":13437,"children":13438},{"style":1771},[13439],{"type":58,"value":13440},"    sc",{"type":52,"tag":160,"props":13442,"children":13443},{"style":4080},[13444],{"type":58,"value":3931},{"type":52,"tag":160,"props":13446,"children":13447},{"style":1771},[13448],{"type":58,"value":10625},{"type":52,"tag":160,"props":13450,"children":13451},{"style":4181},[13452],{"type":58,"value":10630},{"type":52,"tag":160,"props":13454,"children":13455},{"style":4080},[13456],{"type":58,"value":13457}," shopify_customer_id,\n",{"type":52,"tag":160,"props":13459,"children":13460},{"class":162,"line":439},[13461,13466,13470,13474,13478],{"type":52,"tag":160,"props":13462,"children":13463},{"style":1771},[13464],{"type":58,"value":13465},"    st",{"type":52,"tag":160,"props":13467,"children":13468},{"style":4080},[13469],{"type":58,"value":3931},{"type":52,"tag":160,"props":13471,"children":13472},{"style":1771},[13473],{"type":58,"value":10625},{"type":52,"tag":160,"props":13475,"children":13476},{"style":4181},[13477],{"type":58,"value":10630},{"type":52,"tag":160,"props":13479,"children":13480},{"style":4080},[13481],{"type":58,"value":13482}," stripe_customer_id,\n",{"type":52,"tag":160,"props":13484,"children":13485},{"class":162,"line":448},[13486,13490,13494,13499],{"type":52,"tag":160,"props":13487,"children":13488},{"style":1771},[13489],{"type":58,"value":13440},{"type":52,"tag":160,"props":13491,"children":13492},{"style":4080},[13493],{"type":58,"value":3931},{"type":52,"tag":160,"props":13495,"children":13496},{"style":1771},[13497],{"type":58,"value":13498},"first_name",{"type":52,"tag":160,"props":13500,"children":13501},{"style":4080},[13502],{"type":58,"value":10656},{"type":52,"tag":160,"props":13504,"children":13505},{"class":162,"line":457},[13506,13510,13514,13519],{"type":52,"tag":160,"props":13507,"children":13508},{"style":1771},[13509],{"type":58,"value":13440},{"type":52,"tag":160,"props":13511,"children":13512},{"style":4080},[13513],{"type":58,"value":3931},{"type":52,"tag":160,"props":13515,"children":13516},{"style":1771},[13517],{"type":58,"value":13518},"last_name",{"type":52,"tag":160,"props":13520,"children":13521},{"style":4080},[13522],{"type":58,"value":10656},{"type":52,"tag":160,"props":13524,"children":13525},{"class":162,"line":466},[13526,13530,13534,13538,13542],{"type":52,"tag":160,"props":13527,"children":13528},{"style":1771},[13529],{"type":58,"value":13440},{"type":52,"tag":160,"props":13531,"children":13532},{"style":4080},[13533],{"type":58,"value":3931},{"type":52,"tag":160,"props":13535,"children":13536},{"style":1771},[13537],{"type":58,"value":10697},{"type":52,"tag":160,"props":13539,"children":13540},{"style":4181},[13541],{"type":58,"value":10630},{"type":52,"tag":160,"props":13543,"children":13544},{"style":4080},[13545],{"type":58,"value":13546}," shopify_created_at,\n",{"type":52,"tag":160,"props":13548,"children":13549},{"class":162,"line":474},[13550,13554,13558,13562,13566],{"type":52,"tag":160,"props":13551,"children":13552},{"style":1771},[13553],{"type":58,"value":13465},{"type":52,"tag":160,"props":13555,"children":13556},{"style":4080},[13557],{"type":58,"value":3931},{"type":52,"tag":160,"props":13559,"children":13560},{"style":1771},[13561],{"type":58,"value":11302},{"type":52,"tag":160,"props":13563,"children":13564},{"style":4181},[13565],{"type":58,"value":10630},{"type":52,"tag":160,"props":13567,"children":13568},{"style":4080},[13569],{"type":58,"value":13570}," stripe_created_at,\n",{"type":52,"tag":160,"props":13572,"children":13573},{"class":162,"line":483},[13574,13579,13583,13587,13591,13595,13599,13603,13607,13611,13615,13619],{"type":52,"tag":160,"props":13575,"children":13576},{"style":1771},[13577],{"type":58,"value":13578},"    LEAST",{"type":52,"tag":160,"props":13580,"children":13581},{"style":4080},[13582],{"type":58,"value":10763},{"type":52,"tag":160,"props":13584,"children":13585},{"style":1771},[13586],{"type":58,"value":13395},{"type":52,"tag":160,"props":13588,"children":13589},{"style":4080},[13590],{"type":58,"value":3931},{"type":52,"tag":160,"props":13592,"children":13593},{"style":1771},[13594],{"type":58,"value":10697},{"type":52,"tag":160,"props":13596,"children":13597},{"style":4080},[13598],{"type":58,"value":3976},{"type":52,"tag":160,"props":13600,"children":13601},{"style":1771},[13602],{"type":58,"value":13412},{"type":52,"tag":160,"props":13604,"children":13605},{"style":4080},[13606],{"type":58,"value":3931},{"type":52,"tag":160,"props":13608,"children":13609},{"style":1771},[13610],{"type":58,"value":11302},{"type":52,"tag":160,"props":13612,"children":13613},{"style":4080},[13614],{"type":58,"value":11279},{"type":52,"tag":160,"props":13616,"children":13617},{"style":4181},[13618],{"type":58,"value":10814},{"type":52,"tag":160,"props":13620,"children":13621},{"style":4080},[13622],{"type":58,"value":13623}," first_seen_at,\n",{"type":52,"tag":160,"props":13625,"children":13626},{"class":162,"line":492},[13627,13631,13635,13640],{"type":52,"tag":160,"props":13628,"children":13629},{"style":1771},[13630],{"type":58,"value":13440},{"type":52,"tag":160,"props":13632,"children":13633},{"style":4080},[13634],{"type":58,"value":3931},{"type":52,"tag":160,"props":13636,"children":13637},{"style":1771},[13638],{"type":58,"value":13639},"orders_count",{"type":52,"tag":160,"props":13641,"children":13642},{"style":4080},[13643],{"type":58,"value":10656},{"type":52,"tag":160,"props":13645,"children":13646},{"class":162,"line":501},[13647,13651,13655,13659,13663,13668,13672,13676,13680,13684,13688,13692,13696,13700],{"type":52,"tag":160,"props":13648,"children":13649},{"style":1771},[13650],{"type":58,"value":10758},{"type":52,"tag":160,"props":13652,"children":13653},{"style":4080},[13654],{"type":58,"value":10763},{"type":52,"tag":160,"props":13656,"children":13657},{"style":1771},[13658],{"type":58,"value":13395},{"type":52,"tag":160,"props":13660,"children":13661},{"style":4080},[13662],{"type":58,"value":3931},{"type":52,"tag":160,"props":13664,"children":13665},{"style":1771},[13666],{"type":58,"value":13667},"total_spent",{"type":52,"tag":160,"props":13669,"children":13670},{"style":4181},[13671],{"type":58,"value":10630},{"type":52,"tag":160,"props":13673,"children":13674},{"style":4181},[13675],{"type":58,"value":10785},{"type":52,"tag":160,"props":13677,"children":13678},{"style":4080},[13679],{"type":58,"value":10763},{"type":52,"tag":160,"props":13681,"children":13682},{"style":1771},[13683],{"type":58,"value":10794},{"type":52,"tag":160,"props":13685,"children":13686},{"style":4080},[13687],{"type":58,"value":10799},{"type":52,"tag":160,"props":13689,"children":13690},{"style":1771},[13691],{"type":58,"value":10804},{"type":52,"tag":160,"props":13693,"children":13694},{"style":4080},[13695],{"type":58,"value":10809},{"type":52,"tag":160,"props":13697,"children":13698},{"style":4181},[13699],{"type":58,"value":10814},{"type":52,"tag":160,"props":13701,"children":13702},{"style":4080},[13703],{"type":58,"value":13704}," shopify_total_spent,\n",{"type":52,"tag":160,"props":13706,"children":13707},{"class":162,"line":510},[13708,13712,13716,13721,13725],{"type":52,"tag":160,"props":13709,"children":13710},{"style":1771},[13711],{"type":58,"value":13440},{"type":52,"tag":160,"props":13713,"children":13714},{"style":4080},[13715],{"type":58,"value":3931},{"type":52,"tag":160,"props":13717,"children":13718},{"style":1771},[13719],{"type":58,"value":13720},"tags",{"type":52,"tag":160,"props":13722,"children":13723},{"style":4181},[13724],{"type":58,"value":10630},{"type":52,"tag":160,"props":13726,"children":13727},{"style":4080},[13728],{"type":58,"value":13729}," customer_tags,\n",{"type":52,"tag":160,"props":13731,"children":13732},{"class":162,"line":519},[13733,13737,13741,13746,13750],{"type":52,"tag":160,"props":13734,"children":13735},{"style":1771},[13736],{"type":58,"value":13440},{"type":52,"tag":160,"props":13738,"children":13739},{"style":4080},[13740],{"type":58,"value":3931},{"type":52,"tag":160,"props":13742,"children":13743},{"style":1771},[13744],{"type":58,"value":13745},"state",{"type":52,"tag":160,"props":13747,"children":13748},{"style":4181},[13749],{"type":58,"value":10630},{"type":52,"tag":160,"props":13751,"children":13752},{"style":4080},[13753],{"type":58,"value":13754}," customer_state\n",{"type":52,"tag":160,"props":13756,"children":13757},{"class":162,"line":528},[13758,13762,13766,13770,13775],{"type":52,"tag":160,"props":13759,"children":13760},{"style":4181},[13761],{"type":58,"value":11165},{"type":52,"tag":160,"props":13763,"children":13764},{"style":1771},[13765],{"type":58,"value":11170},{"type":52,"tag":160,"props":13767,"children":13768},{"style":4080},[13769],{"type":58,"value":3931},{"type":52,"tag":160,"props":13771,"children":13772},{"style":1771},[13773],{"type":58,"value":13774},"shopify_customers",{"type":52,"tag":160,"props":13776,"children":13777},{"style":4080},[13778],{"type":58,"value":13779}," sc\n",{"type":52,"tag":160,"props":13781,"children":13782},{"class":162,"line":537},[13783,13787,13791,13795,13800],{"type":52,"tag":160,"props":13784,"children":13785},{"style":4181},[13786],{"type":58,"value":13155},{"type":52,"tag":160,"props":13788,"children":13789},{"style":1771},[13790],{"type":58,"value":11170},{"type":52,"tag":160,"props":13792,"children":13793},{"style":4080},[13794],{"type":58,"value":3931},{"type":52,"tag":160,"props":13796,"children":13797},{"style":1771},[13798],{"type":58,"value":13799},"stripe_customers",{"type":52,"tag":160,"props":13801,"children":13802},{"style":4080},[13803],{"type":58,"value":13804}," st\n",{"type":52,"tag":160,"props":13806,"children":13807},{"class":162,"line":546},[13808,13812,13817,13821,13825,13829,13833,13837,13841,13845,13849,13853,13857,13861],{"type":52,"tag":160,"props":13809,"children":13810},{"style":4181},[13811],{"type":58,"value":11217},{"type":52,"tag":160,"props":13813,"children":13814},{"style":1771},[13815],{"type":58,"value":13816}," lower",{"type":52,"tag":160,"props":13818,"children":13819},{"style":4080},[13820],{"type":58,"value":10763},{"type":52,"tag":160,"props":13822,"children":13823},{"style":1771},[13824],{"type":58,"value":13395},{"type":52,"tag":160,"props":13826,"children":13827},{"style":4080},[13828],{"type":58,"value":3931},{"type":52,"tag":160,"props":13830,"children":13831},{"style":1771},[13832],{"type":58,"value":10672},{"type":52,"tag":160,"props":13834,"children":13835},{"style":4080},[13836],{"type":58,"value":11279},{"type":52,"tag":160,"props":13838,"children":13839},{"style":4181},[13840],{"type":58,"value":11284},{"type":52,"tag":160,"props":13842,"children":13843},{"style":1771},[13844],{"type":58,"value":13816},{"type":52,"tag":160,"props":13846,"children":13847},{"style":4080},[13848],{"type":58,"value":10763},{"type":52,"tag":160,"props":13850,"children":13851},{"style":1771},[13852],{"type":58,"value":13412},{"type":52,"tag":160,"props":13854,"children":13855},{"style":4080},[13856],{"type":58,"value":3931},{"type":52,"tag":160,"props":13858,"children":13859},{"style":1771},[13860],{"type":58,"value":10672},{"type":52,"tag":160,"props":13862,"children":13863},{"style":4080},[13864],{"type":58,"value":11307},{"type":52,"tag":160,"props":13866,"children":13867},{"class":162,"line":555},[13868,13872,13877,13881,13885,13889,13893,13897,13901,13905,13909,13913],{"type":52,"tag":160,"props":13869,"children":13870},{"style":4181},[13871],{"type":58,"value":12134},{"type":52,"tag":160,"props":13873,"children":13874},{"style":1771},[13875],{"type":58,"value":13876}," COALESCE",{"type":52,"tag":160,"props":13878,"children":13879},{"style":4080},[13880],{"type":58,"value":10763},{"type":52,"tag":160,"props":13882,"children":13883},{"style":1771},[13884],{"type":58,"value":13395},{"type":52,"tag":160,"props":13886,"children":13887},{"style":4080},[13888],{"type":58,"value":3931},{"type":52,"tag":160,"props":13890,"children":13891},{"style":1771},[13892],{"type":58,"value":10672},{"type":52,"tag":160,"props":13894,"children":13895},{"style":4080},[13896],{"type":58,"value":3976},{"type":52,"tag":160,"props":13898,"children":13899},{"style":1771},[13900],{"type":58,"value":13412},{"type":52,"tag":160,"props":13902,"children":13903},{"style":4080},[13904],{"type":58,"value":3931},{"type":52,"tag":160,"props":13906,"children":13907},{"style":1771},[13908],{"type":58,"value":10672},{"type":52,"tag":160,"props":13910,"children":13911},{"style":4080},[13912],{"type":58,"value":11279},{"type":52,"tag":160,"props":13914,"children":13915},{"style":4181},[13916],{"type":58,"value":13917},"IS NOT NULL\n",{"type":52,"tag":107,"props":13919,"children":13920},{},[13921,13922,13927,13929,13934],{"type":58,"value":13103},{"type":52,"tag":71,"props":13923,"children":13925},{"className":13924},[],[13926],{"type":58,"value":13155},{"type":58,"value":13928}," catches customers who only exist in one system. ",{"type":52,"tag":71,"props":13930,"children":13932},{"className":13931},[],[13933],{"type":58,"value":13141},{"type":58,"value":13935}," gives priority to Shopify's email since it's the primary ecommerce platform.",{"type":52,"tag":131,"props":13937,"children":13939},{"id":13938},"_3-staged-products-stg_productssql",[13940,13942],{"type":58,"value":13941},"3) Staged products - ",{"type":52,"tag":71,"props":13943,"children":13945},{"className":13944},[],[13946],{"type":58,"value":13947},"stg_products.sql",{"type":52,"tag":107,"props":13949,"children":13950},{},[13951,13953,13959,13960,13965],{"type":58,"value":13952},"A clean product catalog. This query uses only standard SQL (",{"type":52,"tag":71,"props":13954,"children":13956},{"className":13955},[],[13957],{"type":58,"value":13958},"CAST",{"type":58,"value":3976},{"type":52,"tag":71,"props":13961,"children":13963},{"className":13962},[],[13964],{"type":58,"value":12134},{"type":58,"value":13966},"), so it works identically on every warehouse.",{"type":52,"tag":4021,"props":13968,"children":13970},{"type":13969},"info",[13971],{"type":52,"tag":107,"props":13972,"children":13973},{},[13974,13976,13981,13983,13988,13990,13995],{"type":58,"value":13975},"Shopify product IDs are in GID format (e.g. ",{"type":52,"tag":71,"props":13977,"children":13979},{"className":13978},[],[13980],{"type":58,"value":10234},{"type":58,"value":13982},"). Depending on how your Shopify data lands in the warehouse, the raw ",{"type":52,"tag":71,"props":13984,"children":13986},{"className":13985},[],[13987],{"type":58,"value":10625},{"type":58,"value":13989}," column may need parsing with ",{"type":52,"tag":71,"props":13991,"children":13993},{"className":13992},[],[13994],{"type":58,"value":10242},{"type":58,"value":13996}," to extract the numeric ID.",{"type":52,"tag":107,"props":13998,"children":13999},{},[14000,14001,14010],{"type":58,"value":10384},{"type":52,"tag":218,"props":14002,"children":14003},{},[14004],{"type":52,"tag":71,"props":14005,"children":14007},{"className":14006},[],[14008],{"type":58,"value":14009},"ecommerce\u002Fassets\u002Fstaging\u002Fstg_products.sql",{"type":58,"value":10395},{"type":52,"tag":150,"props":14012,"children":14014},{"className":10404,"code":14013,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_products\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.shopify_products\ncolumns:\n  - name: product_id\n    type: varchar\n    checks:\n      - name: not_null\n      - name: unique\n@bruin *\u002F\n\nSELECT\n    id AS product_id,\n    title AS product_name,\n    product_type AS category,\n    vendor,\n    status AS product_status,\n    CAST(price AS DECIMAL(12,2)) AS price,  -- column name depends on how your Shopify data is structured; ask Claude Code to check raw.shopify_products\n    tags,\n    created_at,\n    updated_at\nFROM raw.shopify_products\nWHERE status = 'active'\n",[14015],{"type":52,"tag":71,"props":14016,"children":14017},{"__ignoreMap":7},[14018,14025,14033,14040,14047,14054,14061,14069,14076,14084,14091,14098,14105,14112,14119,14126,14133,14150,14167,14184,14192,14209,14263,14271,14279,14287,14307],{"type":52,"tag":160,"props":14019,"children":14020},{"class":162,"line":163},[14021],{"type":52,"tag":160,"props":14022,"children":14023},{"style":10416},[14024],{"type":58,"value":10419},{"type":52,"tag":160,"props":14026,"children":14027},{"class":162,"line":281},[14028],{"type":52,"tag":160,"props":14029,"children":14030},{"style":10416},[14031],{"type":58,"value":14032},"name: staging.stg_products\n",{"type":52,"tag":160,"props":14034,"children":14035},{"class":162,"line":290},[14036],{"type":52,"tag":160,"props":14037,"children":14038},{"style":10416},[14039],{"type":58,"value":10435},{"type":52,"tag":160,"props":14041,"children":14042},{"class":162,"line":299},[14043],{"type":52,"tag":160,"props":14044,"children":14045},{"style":10416},[14046],{"type":58,"value":10443},{"type":52,"tag":160,"props":14048,"children":14049},{"class":162,"line":27},[14050],{"type":52,"tag":160,"props":14051,"children":14052},{"style":10416},[14053],{"type":58,"value":10451},{"type":52,"tag":160,"props":14055,"children":14056},{"class":162,"line":316},[14057],{"type":52,"tag":160,"props":14058,"children":14059},{"style":10416},[14060],{"type":58,"value":10459},{"type":52,"tag":160,"props":14062,"children":14063},{"class":162,"line":325},[14064],{"type":52,"tag":160,"props":14065,"children":14066},{"style":10416},[14067],{"type":58,"value":14068},"  - raw.shopify_products\n",{"type":52,"tag":160,"props":14070,"children":14071},{"class":162,"line":334},[14072],{"type":52,"tag":160,"props":14073,"children":14074},{"style":10416},[14075],{"type":58,"value":10483},{"type":52,"tag":160,"props":14077,"children":14078},{"class":162,"line":343},[14079],{"type":52,"tag":160,"props":14080,"children":14081},{"style":10416},[14082],{"type":58,"value":14083},"  - name: product_id\n",{"type":52,"tag":160,"props":14085,"children":14086},{"class":162,"line":11},[14087],{"type":52,"tag":160,"props":14088,"children":14089},{"style":10416},[14090],{"type":58,"value":10499},{"type":52,"tag":160,"props":14092,"children":14093},{"class":162,"line":359},[14094],{"type":52,"tag":160,"props":14095,"children":14096},{"style":10416},[14097],{"type":58,"value":10507},{"type":52,"tag":160,"props":14099,"children":14100},{"class":162,"line":368},[14101],{"type":52,"tag":160,"props":14102,"children":14103},{"style":10416},[14104],{"type":58,"value":10515},{"type":52,"tag":160,"props":14106,"children":14107},{"class":162,"line":377},[14108],{"type":52,"tag":160,"props":14109,"children":14110},{"style":10416},[14111],{"type":58,"value":10523},{"type":52,"tag":160,"props":14113,"children":14114},{"class":162,"line":386},[14115],{"type":52,"tag":160,"props":14116,"children":14117},{"style":10416},[14118],{"type":58,"value":10593},{"type":52,"tag":160,"props":14120,"children":14121},{"class":162,"line":395},[14122],{"type":52,"tag":160,"props":14123,"children":14124},{"emptyLinePlaceholder":26},[14125],{"type":58,"value":287},{"type":52,"tag":160,"props":14127,"children":14128},{"class":162,"line":404},[14129],{"type":52,"tag":160,"props":14130,"children":14131},{"style":4181},[14132],{"type":58,"value":10608},{"type":52,"tag":160,"props":14134,"children":14135},{"class":162,"line":413},[14136,14141,14145],{"type":52,"tag":160,"props":14137,"children":14138},{"style":4080},[14139],{"type":58,"value":14140},"    id ",{"type":52,"tag":160,"props":14142,"children":14143},{"style":4181},[14144],{"type":58,"value":10814},{"type":52,"tag":160,"props":14146,"children":14147},{"style":4080},[14148],{"type":58,"value":14149}," product_id,\n",{"type":52,"tag":160,"props":14151,"children":14152},{"class":162,"line":422},[14153,14158,14162],{"type":52,"tag":160,"props":14154,"children":14155},{"style":4080},[14156],{"type":58,"value":14157},"    title ",{"type":52,"tag":160,"props":14159,"children":14160},{"style":4181},[14161],{"type":58,"value":10814},{"type":52,"tag":160,"props":14163,"children":14164},{"style":4080},[14165],{"type":58,"value":14166}," product_name,\n",{"type":52,"tag":160,"props":14168,"children":14169},{"class":162,"line":430},[14170,14175,14179],{"type":52,"tag":160,"props":14171,"children":14172},{"style":4080},[14173],{"type":58,"value":14174},"    product_type ",{"type":52,"tag":160,"props":14176,"children":14177},{"style":4181},[14178],{"type":58,"value":10814},{"type":52,"tag":160,"props":14180,"children":14181},{"style":4080},[14182],{"type":58,"value":14183}," category,\n",{"type":52,"tag":160,"props":14185,"children":14186},{"class":162,"line":439},[14187],{"type":52,"tag":160,"props":14188,"children":14189},{"style":4080},[14190],{"type":58,"value":14191},"    vendor,\n",{"type":52,"tag":160,"props":14193,"children":14194},{"class":162,"line":448},[14195,14200,14204],{"type":52,"tag":160,"props":14196,"children":14197},{"style":4181},[14198],{"type":58,"value":14199},"    status",{"type":52,"tag":160,"props":14201,"children":14202},{"style":4181},[14203],{"type":58,"value":10630},{"type":52,"tag":160,"props":14205,"children":14206},{"style":4080},[14207],{"type":58,"value":14208}," product_status,\n",{"type":52,"tag":160,"props":14210,"children":14211},{"class":162,"line":457},[14212,14216,14221,14225,14229,14233,14237,14241,14245,14249,14253,14258],{"type":52,"tag":160,"props":14213,"children":14214},{"style":1771},[14215],{"type":58,"value":10758},{"type":52,"tag":160,"props":14217,"children":14218},{"style":4080},[14219],{"type":58,"value":14220},"(price ",{"type":52,"tag":160,"props":14222,"children":14223},{"style":4181},[14224],{"type":58,"value":10814},{"type":52,"tag":160,"props":14226,"children":14227},{"style":4181},[14228],{"type":58,"value":10785},{"type":52,"tag":160,"props":14230,"children":14231},{"style":4080},[14232],{"type":58,"value":10763},{"type":52,"tag":160,"props":14234,"children":14235},{"style":1771},[14236],{"type":58,"value":10794},{"type":52,"tag":160,"props":14238,"children":14239},{"style":4080},[14240],{"type":58,"value":10799},{"type":52,"tag":160,"props":14242,"children":14243},{"style":1771},[14244],{"type":58,"value":10804},{"type":52,"tag":160,"props":14246,"children":14247},{"style":4080},[14248],{"type":58,"value":10809},{"type":52,"tag":160,"props":14250,"children":14251},{"style":4181},[14252],{"type":58,"value":10814},{"type":52,"tag":160,"props":14254,"children":14255},{"style":4080},[14256],{"type":58,"value":14257}," price,  ",{"type":52,"tag":160,"props":14259,"children":14260},{"style":10416},[14261],{"type":58,"value":14262},"-- column name depends on how your Shopify data is structured; ask Claude Code to check raw.shopify_products\n",{"type":52,"tag":160,"props":14264,"children":14265},{"class":162,"line":466},[14266],{"type":52,"tag":160,"props":14267,"children":14268},{"style":4080},[14269],{"type":58,"value":14270},"    tags,\n",{"type":52,"tag":160,"props":14272,"children":14273},{"class":162,"line":474},[14274],{"type":52,"tag":160,"props":14275,"children":14276},{"style":4080},[14277],{"type":58,"value":14278},"    created_at,\n",{"type":52,"tag":160,"props":14280,"children":14281},{"class":162,"line":483},[14282],{"type":52,"tag":160,"props":14283,"children":14284},{"style":4080},[14285],{"type":58,"value":14286},"    updated_at\n",{"type":52,"tag":160,"props":14288,"children":14289},{"class":162,"line":492},[14290,14294,14298,14302],{"type":52,"tag":160,"props":14291,"children":14292},{"style":4181},[14293],{"type":58,"value":11165},{"type":52,"tag":160,"props":14295,"children":14296},{"style":1771},[14297],{"type":58,"value":11170},{"type":52,"tag":160,"props":14299,"children":14300},{"style":4080},[14301],{"type":58,"value":3931},{"type":52,"tag":160,"props":14303,"children":14304},{"style":1771},[14305],{"type":58,"value":14306},"shopify_products\n",{"type":52,"tag":160,"props":14308,"children":14309},{"class":162,"line":501},[14310,14314,14319,14323],{"type":52,"tag":160,"props":14311,"children":14312},{"style":4181},[14313],{"type":58,"value":12134},{"type":52,"tag":160,"props":14315,"children":14316},{"style":4181},[14317],{"type":58,"value":14318}," status",{"type":52,"tag":160,"props":14320,"children":14321},{"style":4181},[14322],{"type":58,"value":11235},{"type":52,"tag":160,"props":14324,"children":14325},{"style":173},[14326],{"type":58,"value":14327}," 'active'\n",{"type":52,"tag":131,"props":14329,"children":14331},{"id":14330},"_4-staged-marketing-spend-stg_marketing_spendsql",[14332,14334],{"type":58,"value":14333},"4) Staged marketing spend - ",{"type":52,"tag":71,"props":14335,"children":14337},{"className":14336},[],[14338],{"type":58,"value":14339},"stg_marketing_spend.sql",{"type":52,"tag":107,"props":14341,"children":14342},{},[14343],{"type":58,"value":14344},"A unified marketing performance table that combines your ad platform and email marketing data into a common format. This query varies by warehouse (date functions), by marketing tool (email side), and by ads platform (ads side).",{"type":52,"tag":107,"props":14346,"children":14347},{},[14348,14349,14358],{"type":58,"value":10384},{"type":52,"tag":218,"props":14350,"children":14351},{},[14352],{"type":52,"tag":71,"props":14353,"children":14355},{"className":14354},[],[14356],{"type":58,"value":14357},"ecommerce\u002Fassets\u002Fstaging\u002Fstg_marketing_spend.sql",{"type":58,"value":10395},{"type":52,"tag":107,"props":14360,"children":14361},{},[14362,14364,14370,14372,14378,14379,14385],{"type":58,"value":14363},"The ads portion of this query depends on which ad platform you connected in Step 2. Each platform uses its own table name and date column, so select the tab that matches your ad platform. The date casting also differs by warehouse - adjust the ",{"type":52,"tag":71,"props":14365,"children":14367},{"className":14366},[],[14368],{"type":58,"value":14369},"toDate()",{"type":58,"value":14371}," \u002F ",{"type":52,"tag":71,"props":14373,"children":14375},{"className":14374},[],[14376],{"type":58,"value":14377},"DATE()",{"type":58,"value":14371},{"type":52,"tag":71,"props":14380,"children":14382},{"className":14381},[],[14383],{"type":58,"value":14384},"::DATE",{"type":58,"value":14386}," wrapper to match yours (see the warehouse tabs in the web sessions section below for examples).",{"type":52,"tag":5704,"props":14388,"children":14390},{"id":14389},"ads-portion",[14391],{"type":58,"value":14392},"Ads portion",{"type":52,"tag":253,"props":14394,"children":14395},{":variants":7970,"group":7971},[14396,14744,15083],{"type":52,"tag":259,"props":14397,"children":14398},{"v-slot:facebook-ads":7},[14399],{"type":52,"tag":150,"props":14400,"children":14402},{"className":10404,"code":14401,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_marketing_spend\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.facebook_ad_insights\ncolumns:\n  - name: spend_date\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\n-- Facebook Ads spend\nSELECT\n    DATE(date_start) AS spend_date,       -- use toDate() for ClickHouse, ::DATE for Snowflake\n    'paid_ads' AS channel,\n    campaign_name,\n    CAST(spend AS DECIMAL(12,2)) AS spend,\n    CAST(impressions AS INTEGER) AS impressions,\n    CAST(clicks AS INTEGER) AS clicks,\n    CAST(conversions AS INTEGER) AS conversions\nFROM raw.facebook_ad_insights\n",[14403],{"type":52,"tag":71,"props":14404,"children":14405},{"__ignoreMap":7},[14406,14413,14421,14428,14435,14442,14449,14457,14464,14472,14480,14487,14494,14501,14508,14516,14523,14550,14567,14575,14624,14658,14691,14724],{"type":52,"tag":160,"props":14407,"children":14408},{"class":162,"line":163},[14409],{"type":52,"tag":160,"props":14410,"children":14411},{"style":10416},[14412],{"type":58,"value":10419},{"type":52,"tag":160,"props":14414,"children":14415},{"class":162,"line":281},[14416],{"type":52,"tag":160,"props":14417,"children":14418},{"style":10416},[14419],{"type":58,"value":14420},"name: staging.stg_marketing_spend\n",{"type":52,"tag":160,"props":14422,"children":14423},{"class":162,"line":290},[14424],{"type":52,"tag":160,"props":14425,"children":14426},{"style":10416},[14427],{"type":58,"value":10435},{"type":52,"tag":160,"props":14429,"children":14430},{"class":162,"line":299},[14431],{"type":52,"tag":160,"props":14432,"children":14433},{"style":10416},[14434],{"type":58,"value":10443},{"type":52,"tag":160,"props":14436,"children":14437},{"class":162,"line":27},[14438],{"type":52,"tag":160,"props":14439,"children":14440},{"style":10416},[14441],{"type":58,"value":10451},{"type":52,"tag":160,"props":14443,"children":14444},{"class":162,"line":316},[14445],{"type":52,"tag":160,"props":14446,"children":14447},{"style":10416},[14448],{"type":58,"value":10459},{"type":52,"tag":160,"props":14450,"children":14451},{"class":162,"line":325},[14452],{"type":52,"tag":160,"props":14453,"children":14454},{"style":10416},[14455],{"type":58,"value":14456},"  - raw.facebook_ad_insights\n",{"type":52,"tag":160,"props":14458,"children":14459},{"class":162,"line":334},[14460],{"type":52,"tag":160,"props":14461,"children":14462},{"style":10416},[14463],{"type":58,"value":10483},{"type":52,"tag":160,"props":14465,"children":14466},{"class":162,"line":343},[14467],{"type":52,"tag":160,"props":14468,"children":14469},{"style":10416},[14470],{"type":58,"value":14471},"  - name: spend_date\n",{"type":52,"tag":160,"props":14473,"children":14474},{"class":162,"line":11},[14475],{"type":52,"tag":160,"props":14476,"children":14477},{"style":10416},[14478],{"type":58,"value":14479},"    type: date\n",{"type":52,"tag":160,"props":14481,"children":14482},{"class":162,"line":359},[14483],{"type":52,"tag":160,"props":14484,"children":14485},{"style":10416},[14486],{"type":58,"value":10507},{"type":52,"tag":160,"props":14488,"children":14489},{"class":162,"line":368},[14490],{"type":52,"tag":160,"props":14491,"children":14492},{"style":10416},[14493],{"type":58,"value":10515},{"type":52,"tag":160,"props":14495,"children":14496},{"class":162,"line":377},[14497],{"type":52,"tag":160,"props":14498,"children":14499},{"style":10416},[14500],{"type":58,"value":10593},{"type":52,"tag":160,"props":14502,"children":14503},{"class":162,"line":386},[14504],{"type":52,"tag":160,"props":14505,"children":14506},{"emptyLinePlaceholder":26},[14507],{"type":58,"value":287},{"type":52,"tag":160,"props":14509,"children":14510},{"class":162,"line":395},[14511],{"type":52,"tag":160,"props":14512,"children":14513},{"style":10416},[14514],{"type":58,"value":14515},"-- Facebook Ads spend\n",{"type":52,"tag":160,"props":14517,"children":14518},{"class":162,"line":404},[14519],{"type":52,"tag":160,"props":14520,"children":14521},{"style":4181},[14522],{"type":58,"value":10608},{"type":52,"tag":160,"props":14524,"children":14525},{"class":162,"line":413},[14526,14531,14536,14540,14545],{"type":52,"tag":160,"props":14527,"children":14528},{"style":4181},[14529],{"type":58,"value":14530},"    DATE",{"type":52,"tag":160,"props":14532,"children":14533},{"style":4080},[14534],{"type":58,"value":14535},"(date_start) ",{"type":52,"tag":160,"props":14537,"children":14538},{"style":4181},[14539],{"type":58,"value":10814},{"type":52,"tag":160,"props":14541,"children":14542},{"style":4080},[14543],{"type":58,"value":14544}," spend_date,       ",{"type":52,"tag":160,"props":14546,"children":14547},{"style":10416},[14548],{"type":58,"value":14549},"-- use toDate() for ClickHouse, ::DATE for Snowflake\n",{"type":52,"tag":160,"props":14551,"children":14552},{"class":162,"line":422},[14553,14558,14562],{"type":52,"tag":160,"props":14554,"children":14555},{"style":173},[14556],{"type":58,"value":14557},"    'paid_ads'",{"type":52,"tag":160,"props":14559,"children":14560},{"style":4181},[14561],{"type":58,"value":10630},{"type":52,"tag":160,"props":14563,"children":14564},{"style":4080},[14565],{"type":58,"value":14566}," channel,\n",{"type":52,"tag":160,"props":14568,"children":14569},{"class":162,"line":430},[14570],{"type":52,"tag":160,"props":14571,"children":14572},{"style":4080},[14573],{"type":58,"value":14574},"    campaign_name,\n",{"type":52,"tag":160,"props":14576,"children":14577},{"class":162,"line":439},[14578,14582,14587,14591,14595,14599,14603,14607,14611,14615,14619],{"type":52,"tag":160,"props":14579,"children":14580},{"style":1771},[14581],{"type":58,"value":10758},{"type":52,"tag":160,"props":14583,"children":14584},{"style":4080},[14585],{"type":58,"value":14586},"(spend ",{"type":52,"tag":160,"props":14588,"children":14589},{"style":4181},[14590],{"type":58,"value":10814},{"type":52,"tag":160,"props":14592,"children":14593},{"style":4181},[14594],{"type":58,"value":10785},{"type":52,"tag":160,"props":14596,"children":14597},{"style":4080},[14598],{"type":58,"value":10763},{"type":52,"tag":160,"props":14600,"children":14601},{"style":1771},[14602],{"type":58,"value":10794},{"type":52,"tag":160,"props":14604,"children":14605},{"style":4080},[14606],{"type":58,"value":10799},{"type":52,"tag":160,"props":14608,"children":14609},{"style":1771},[14610],{"type":58,"value":10804},{"type":52,"tag":160,"props":14612,"children":14613},{"style":4080},[14614],{"type":58,"value":10809},{"type":52,"tag":160,"props":14616,"children":14617},{"style":4181},[14618],{"type":58,"value":10814},{"type":52,"tag":160,"props":14620,"children":14621},{"style":4080},[14622],{"type":58,"value":14623}," spend,\n",{"type":52,"tag":160,"props":14625,"children":14626},{"class":162,"line":448},[14627,14631,14636,14640,14645,14649,14653],{"type":52,"tag":160,"props":14628,"children":14629},{"style":1771},[14630],{"type":58,"value":10758},{"type":52,"tag":160,"props":14632,"children":14633},{"style":4080},[14634],{"type":58,"value":14635},"(impressions ",{"type":52,"tag":160,"props":14637,"children":14638},{"style":4181},[14639],{"type":58,"value":10814},{"type":52,"tag":160,"props":14641,"children":14642},{"style":4181},[14643],{"type":58,"value":14644}," INTEGER",{"type":52,"tag":160,"props":14646,"children":14647},{"style":4080},[14648],{"type":58,"value":11279},{"type":52,"tag":160,"props":14650,"children":14651},{"style":4181},[14652],{"type":58,"value":10814},{"type":52,"tag":160,"props":14654,"children":14655},{"style":4080},[14656],{"type":58,"value":14657}," impressions,\n",{"type":52,"tag":160,"props":14659,"children":14660},{"class":162,"line":457},[14661,14665,14670,14674,14678,14682,14686],{"type":52,"tag":160,"props":14662,"children":14663},{"style":1771},[14664],{"type":58,"value":10758},{"type":52,"tag":160,"props":14666,"children":14667},{"style":4080},[14668],{"type":58,"value":14669},"(clicks ",{"type":52,"tag":160,"props":14671,"children":14672},{"style":4181},[14673],{"type":58,"value":10814},{"type":52,"tag":160,"props":14675,"children":14676},{"style":4181},[14677],{"type":58,"value":14644},{"type":52,"tag":160,"props":14679,"children":14680},{"style":4080},[14681],{"type":58,"value":11279},{"type":52,"tag":160,"props":14683,"children":14684},{"style":4181},[14685],{"type":58,"value":10814},{"type":52,"tag":160,"props":14687,"children":14688},{"style":4080},[14689],{"type":58,"value":14690}," clicks,\n",{"type":52,"tag":160,"props":14692,"children":14693},{"class":162,"line":466},[14694,14698,14703,14707,14711,14715,14719],{"type":52,"tag":160,"props":14695,"children":14696},{"style":1771},[14697],{"type":58,"value":10758},{"type":52,"tag":160,"props":14699,"children":14700},{"style":4080},[14701],{"type":58,"value":14702},"(conversions ",{"type":52,"tag":160,"props":14704,"children":14705},{"style":4181},[14706],{"type":58,"value":10814},{"type":52,"tag":160,"props":14708,"children":14709},{"style":4181},[14710],{"type":58,"value":14644},{"type":52,"tag":160,"props":14712,"children":14713},{"style":4080},[14714],{"type":58,"value":11279},{"type":52,"tag":160,"props":14716,"children":14717},{"style":4181},[14718],{"type":58,"value":10814},{"type":52,"tag":160,"props":14720,"children":14721},{"style":4080},[14722],{"type":58,"value":14723}," conversions\n",{"type":52,"tag":160,"props":14725,"children":14726},{"class":162,"line":474},[14727,14731,14735,14739],{"type":52,"tag":160,"props":14728,"children":14729},{"style":4181},[14730],{"type":58,"value":11165},{"type":52,"tag":160,"props":14732,"children":14733},{"style":1771},[14734],{"type":58,"value":11170},{"type":52,"tag":160,"props":14736,"children":14737},{"style":4080},[14738],{"type":58,"value":3931},{"type":52,"tag":160,"props":14740,"children":14741},{"style":1771},[14742],{"type":58,"value":14743},"facebook_ad_insights\n",{"type":52,"tag":259,"props":14745,"children":14746},{"v-slot:google-ads":7},[14747],{"type":52,"tag":150,"props":14748,"children":14750},{"className":10404,"code":14749,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_marketing_spend\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.google_ad_insights\ncolumns:\n  - name: spend_date\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\n-- Google Ads spend\nSELECT\n    DATE(date) AS spend_date,             -- use toDate() for ClickHouse, ::DATE for Snowflake\n    'paid_ads' AS channel,\n    campaign_name,\n    CAST(spend AS DECIMAL(12,2)) AS spend,\n    CAST(impressions AS INTEGER) AS impressions,\n    CAST(clicks AS INTEGER) AS clicks,\n    CAST(conversions AS INTEGER) AS conversions\nFROM raw.google_ad_insights\n",[14751],{"type":52,"tag":71,"props":14752,"children":14753},{"__ignoreMap":7},[14754,14761,14768,14775,14782,14789,14796,14804,14811,14818,14825,14832,14839,14846,14853,14861,14868,14901,14916,14923,14970,15001,15032,15063],{"type":52,"tag":160,"props":14755,"children":14756},{"class":162,"line":163},[14757],{"type":52,"tag":160,"props":14758,"children":14759},{"style":10416},[14760],{"type":58,"value":10419},{"type":52,"tag":160,"props":14762,"children":14763},{"class":162,"line":281},[14764],{"type":52,"tag":160,"props":14765,"children":14766},{"style":10416},[14767],{"type":58,"value":14420},{"type":52,"tag":160,"props":14769,"children":14770},{"class":162,"line":290},[14771],{"type":52,"tag":160,"props":14772,"children":14773},{"style":10416},[14774],{"type":58,"value":10435},{"type":52,"tag":160,"props":14776,"children":14777},{"class":162,"line":299},[14778],{"type":52,"tag":160,"props":14779,"children":14780},{"style":10416},[14781],{"type":58,"value":10443},{"type":52,"tag":160,"props":14783,"children":14784},{"class":162,"line":27},[14785],{"type":52,"tag":160,"props":14786,"children":14787},{"style":10416},[14788],{"type":58,"value":10451},{"type":52,"tag":160,"props":14790,"children":14791},{"class":162,"line":316},[14792],{"type":52,"tag":160,"props":14793,"children":14794},{"style":10416},[14795],{"type":58,"value":10459},{"type":52,"tag":160,"props":14797,"children":14798},{"class":162,"line":325},[14799],{"type":52,"tag":160,"props":14800,"children":14801},{"style":10416},[14802],{"type":58,"value":14803},"  - raw.google_ad_insights\n",{"type":52,"tag":160,"props":14805,"children":14806},{"class":162,"line":334},[14807],{"type":52,"tag":160,"props":14808,"children":14809},{"style":10416},[14810],{"type":58,"value":10483},{"type":52,"tag":160,"props":14812,"children":14813},{"class":162,"line":343},[14814],{"type":52,"tag":160,"props":14815,"children":14816},{"style":10416},[14817],{"type":58,"value":14471},{"type":52,"tag":160,"props":14819,"children":14820},{"class":162,"line":11},[14821],{"type":52,"tag":160,"props":14822,"children":14823},{"style":10416},[14824],{"type":58,"value":14479},{"type":52,"tag":160,"props":14826,"children":14827},{"class":162,"line":359},[14828],{"type":52,"tag":160,"props":14829,"children":14830},{"style":10416},[14831],{"type":58,"value":10507},{"type":52,"tag":160,"props":14833,"children":14834},{"class":162,"line":368},[14835],{"type":52,"tag":160,"props":14836,"children":14837},{"style":10416},[14838],{"type":58,"value":10515},{"type":52,"tag":160,"props":14840,"children":14841},{"class":162,"line":377},[14842],{"type":52,"tag":160,"props":14843,"children":14844},{"style":10416},[14845],{"type":58,"value":10593},{"type":52,"tag":160,"props":14847,"children":14848},{"class":162,"line":386},[14849],{"type":52,"tag":160,"props":14850,"children":14851},{"emptyLinePlaceholder":26},[14852],{"type":58,"value":287},{"type":52,"tag":160,"props":14854,"children":14855},{"class":162,"line":395},[14856],{"type":52,"tag":160,"props":14857,"children":14858},{"style":10416},[14859],{"type":58,"value":14860},"-- Google Ads spend\n",{"type":52,"tag":160,"props":14862,"children":14863},{"class":162,"line":404},[14864],{"type":52,"tag":160,"props":14865,"children":14866},{"style":4181},[14867],{"type":58,"value":10608},{"type":52,"tag":160,"props":14869,"children":14870},{"class":162,"line":413},[14871,14875,14879,14884,14888,14892,14897],{"type":52,"tag":160,"props":14872,"children":14873},{"style":4181},[14874],{"type":58,"value":14530},{"type":52,"tag":160,"props":14876,"children":14877},{"style":4080},[14878],{"type":58,"value":10763},{"type":52,"tag":160,"props":14880,"children":14881},{"style":4181},[14882],{"type":58,"value":14883},"date",{"type":52,"tag":160,"props":14885,"children":14886},{"style":4080},[14887],{"type":58,"value":11279},{"type":52,"tag":160,"props":14889,"children":14890},{"style":4181},[14891],{"type":58,"value":10814},{"type":52,"tag":160,"props":14893,"children":14894},{"style":4080},[14895],{"type":58,"value":14896}," spend_date,             ",{"type":52,"tag":160,"props":14898,"children":14899},{"style":10416},[14900],{"type":58,"value":14549},{"type":52,"tag":160,"props":14902,"children":14903},{"class":162,"line":422},[14904,14908,14912],{"type":52,"tag":160,"props":14905,"children":14906},{"style":173},[14907],{"type":58,"value":14557},{"type":52,"tag":160,"props":14909,"children":14910},{"style":4181},[14911],{"type":58,"value":10630},{"type":52,"tag":160,"props":14913,"children":14914},{"style":4080},[14915],{"type":58,"value":14566},{"type":52,"tag":160,"props":14917,"children":14918},{"class":162,"line":430},[14919],{"type":52,"tag":160,"props":14920,"children":14921},{"style":4080},[14922],{"type":58,"value":14574},{"type":52,"tag":160,"props":14924,"children":14925},{"class":162,"line":439},[14926,14930,14934,14938,14942,14946,14950,14954,14958,14962,14966],{"type":52,"tag":160,"props":14927,"children":14928},{"style":1771},[14929],{"type":58,"value":10758},{"type":52,"tag":160,"props":14931,"children":14932},{"style":4080},[14933],{"type":58,"value":14586},{"type":52,"tag":160,"props":14935,"children":14936},{"style":4181},[14937],{"type":58,"value":10814},{"type":52,"tag":160,"props":14939,"children":14940},{"style":4181},[14941],{"type":58,"value":10785},{"type":52,"tag":160,"props":14943,"children":14944},{"style":4080},[14945],{"type":58,"value":10763},{"type":52,"tag":160,"props":14947,"children":14948},{"style":1771},[14949],{"type":58,"value":10794},{"type":52,"tag":160,"props":14951,"children":14952},{"style":4080},[14953],{"type":58,"value":10799},{"type":52,"tag":160,"props":14955,"children":14956},{"style":1771},[14957],{"type":58,"value":10804},{"type":52,"tag":160,"props":14959,"children":14960},{"style":4080},[14961],{"type":58,"value":10809},{"type":52,"tag":160,"props":14963,"children":14964},{"style":4181},[14965],{"type":58,"value":10814},{"type":52,"tag":160,"props":14967,"children":14968},{"style":4080},[14969],{"type":58,"value":14623},{"type":52,"tag":160,"props":14971,"children":14972},{"class":162,"line":448},[14973,14977,14981,14985,14989,14993,14997],{"type":52,"tag":160,"props":14974,"children":14975},{"style":1771},[14976],{"type":58,"value":10758},{"type":52,"tag":160,"props":14978,"children":14979},{"style":4080},[14980],{"type":58,"value":14635},{"type":52,"tag":160,"props":14982,"children":14983},{"style":4181},[14984],{"type":58,"value":10814},{"type":52,"tag":160,"props":14986,"children":14987},{"style":4181},[14988],{"type":58,"value":14644},{"type":52,"tag":160,"props":14990,"children":14991},{"style":4080},[14992],{"type":58,"value":11279},{"type":52,"tag":160,"props":14994,"children":14995},{"style":4181},[14996],{"type":58,"value":10814},{"type":52,"tag":160,"props":14998,"children":14999},{"style":4080},[15000],{"type":58,"value":14657},{"type":52,"tag":160,"props":15002,"children":15003},{"class":162,"line":457},[15004,15008,15012,15016,15020,15024,15028],{"type":52,"tag":160,"props":15005,"children":15006},{"style":1771},[15007],{"type":58,"value":10758},{"type":52,"tag":160,"props":15009,"children":15010},{"style":4080},[15011],{"type":58,"value":14669},{"type":52,"tag":160,"props":15013,"children":15014},{"style":4181},[15015],{"type":58,"value":10814},{"type":52,"tag":160,"props":15017,"children":15018},{"style":4181},[15019],{"type":58,"value":14644},{"type":52,"tag":160,"props":15021,"children":15022},{"style":4080},[15023],{"type":58,"value":11279},{"type":52,"tag":160,"props":15025,"children":15026},{"style":4181},[15027],{"type":58,"value":10814},{"type":52,"tag":160,"props":15029,"children":15030},{"style":4080},[15031],{"type":58,"value":14690},{"type":52,"tag":160,"props":15033,"children":15034},{"class":162,"line":466},[15035,15039,15043,15047,15051,15055,15059],{"type":52,"tag":160,"props":15036,"children":15037},{"style":1771},[15038],{"type":58,"value":10758},{"type":52,"tag":160,"props":15040,"children":15041},{"style":4080},[15042],{"type":58,"value":14702},{"type":52,"tag":160,"props":15044,"children":15045},{"style":4181},[15046],{"type":58,"value":10814},{"type":52,"tag":160,"props":15048,"children":15049},{"style":4181},[15050],{"type":58,"value":14644},{"type":52,"tag":160,"props":15052,"children":15053},{"style":4080},[15054],{"type":58,"value":11279},{"type":52,"tag":160,"props":15056,"children":15057},{"style":4181},[15058],{"type":58,"value":10814},{"type":52,"tag":160,"props":15060,"children":15061},{"style":4080},[15062],{"type":58,"value":14723},{"type":52,"tag":160,"props":15064,"children":15065},{"class":162,"line":474},[15066,15070,15074,15078],{"type":52,"tag":160,"props":15067,"children":15068},{"style":4181},[15069],{"type":58,"value":11165},{"type":52,"tag":160,"props":15071,"children":15072},{"style":1771},[15073],{"type":58,"value":11170},{"type":52,"tag":160,"props":15075,"children":15076},{"style":4080},[15077],{"type":58,"value":3931},{"type":52,"tag":160,"props":15079,"children":15080},{"style":1771},[15081],{"type":58,"value":15082},"google_ad_insights\n",{"type":52,"tag":259,"props":15084,"children":15085},{"v-slot:tiktok-ads":7},[15086],{"type":52,"tag":150,"props":15087,"children":15089},{"className":10404,"code":15088,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_marketing_spend\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.tiktok_ad_insights\ncolumns:\n  - name: spend_date\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\n-- TikTok Ads spend\nSELECT\n    DATE(stat_datetime) AS spend_date,    -- use toDate() for ClickHouse, ::DATE for Snowflake\n    'paid_ads' AS channel,\n    campaign_name,\n    CAST(spend AS DECIMAL(12,2)) AS spend,\n    CAST(impressions AS INTEGER) AS impressions,\n    CAST(clicks AS INTEGER) AS clicks,\n    CAST(conversions AS INTEGER) AS conversions\nFROM raw.tiktok_ad_insights\n",[15090],{"type":52,"tag":71,"props":15091,"children":15092},{"__ignoreMap":7},[15093,15100,15107,15114,15121,15128,15135,15143,15150,15157,15164,15171,15178,15185,15192,15200,15207,15232,15247,15254,15301,15332,15363,15394],{"type":52,"tag":160,"props":15094,"children":15095},{"class":162,"line":163},[15096],{"type":52,"tag":160,"props":15097,"children":15098},{"style":10416},[15099],{"type":58,"value":10419},{"type":52,"tag":160,"props":15101,"children":15102},{"class":162,"line":281},[15103],{"type":52,"tag":160,"props":15104,"children":15105},{"style":10416},[15106],{"type":58,"value":14420},{"type":52,"tag":160,"props":15108,"children":15109},{"class":162,"line":290},[15110],{"type":52,"tag":160,"props":15111,"children":15112},{"style":10416},[15113],{"type":58,"value":10435},{"type":52,"tag":160,"props":15115,"children":15116},{"class":162,"line":299},[15117],{"type":52,"tag":160,"props":15118,"children":15119},{"style":10416},[15120],{"type":58,"value":10443},{"type":52,"tag":160,"props":15122,"children":15123},{"class":162,"line":27},[15124],{"type":52,"tag":160,"props":15125,"children":15126},{"style":10416},[15127],{"type":58,"value":10451},{"type":52,"tag":160,"props":15129,"children":15130},{"class":162,"line":316},[15131],{"type":52,"tag":160,"props":15132,"children":15133},{"style":10416},[15134],{"type":58,"value":10459},{"type":52,"tag":160,"props":15136,"children":15137},{"class":162,"line":325},[15138],{"type":52,"tag":160,"props":15139,"children":15140},{"style":10416},[15141],{"type":58,"value":15142},"  - raw.tiktok_ad_insights\n",{"type":52,"tag":160,"props":15144,"children":15145},{"class":162,"line":334},[15146],{"type":52,"tag":160,"props":15147,"children":15148},{"style":10416},[15149],{"type":58,"value":10483},{"type":52,"tag":160,"props":15151,"children":15152},{"class":162,"line":343},[15153],{"type":52,"tag":160,"props":15154,"children":15155},{"style":10416},[15156],{"type":58,"value":14471},{"type":52,"tag":160,"props":15158,"children":15159},{"class":162,"line":11},[15160],{"type":52,"tag":160,"props":15161,"children":15162},{"style":10416},[15163],{"type":58,"value":14479},{"type":52,"tag":160,"props":15165,"children":15166},{"class":162,"line":359},[15167],{"type":52,"tag":160,"props":15168,"children":15169},{"style":10416},[15170],{"type":58,"value":10507},{"type":52,"tag":160,"props":15172,"children":15173},{"class":162,"line":368},[15174],{"type":52,"tag":160,"props":15175,"children":15176},{"style":10416},[15177],{"type":58,"value":10515},{"type":52,"tag":160,"props":15179,"children":15180},{"class":162,"line":377},[15181],{"type":52,"tag":160,"props":15182,"children":15183},{"style":10416},[15184],{"type":58,"value":10593},{"type":52,"tag":160,"props":15186,"children":15187},{"class":162,"line":386},[15188],{"type":52,"tag":160,"props":15189,"children":15190},{"emptyLinePlaceholder":26},[15191],{"type":58,"value":287},{"type":52,"tag":160,"props":15193,"children":15194},{"class":162,"line":395},[15195],{"type":52,"tag":160,"props":15196,"children":15197},{"style":10416},[15198],{"type":58,"value":15199},"-- TikTok Ads spend\n",{"type":52,"tag":160,"props":15201,"children":15202},{"class":162,"line":404},[15203],{"type":52,"tag":160,"props":15204,"children":15205},{"style":4181},[15206],{"type":58,"value":10608},{"type":52,"tag":160,"props":15208,"children":15209},{"class":162,"line":413},[15210,15214,15219,15223,15228],{"type":52,"tag":160,"props":15211,"children":15212},{"style":4181},[15213],{"type":58,"value":14530},{"type":52,"tag":160,"props":15215,"children":15216},{"style":4080},[15217],{"type":58,"value":15218},"(stat_datetime) ",{"type":52,"tag":160,"props":15220,"children":15221},{"style":4181},[15222],{"type":58,"value":10814},{"type":52,"tag":160,"props":15224,"children":15225},{"style":4080},[15226],{"type":58,"value":15227}," spend_date,    ",{"type":52,"tag":160,"props":15229,"children":15230},{"style":10416},[15231],{"type":58,"value":14549},{"type":52,"tag":160,"props":15233,"children":15234},{"class":162,"line":422},[15235,15239,15243],{"type":52,"tag":160,"props":15236,"children":15237},{"style":173},[15238],{"type":58,"value":14557},{"type":52,"tag":160,"props":15240,"children":15241},{"style":4181},[15242],{"type":58,"value":10630},{"type":52,"tag":160,"props":15244,"children":15245},{"style":4080},[15246],{"type":58,"value":14566},{"type":52,"tag":160,"props":15248,"children":15249},{"class":162,"line":430},[15250],{"type":52,"tag":160,"props":15251,"children":15252},{"style":4080},[15253],{"type":58,"value":14574},{"type":52,"tag":160,"props":15255,"children":15256},{"class":162,"line":439},[15257,15261,15265,15269,15273,15277,15281,15285,15289,15293,15297],{"type":52,"tag":160,"props":15258,"children":15259},{"style":1771},[15260],{"type":58,"value":10758},{"type":52,"tag":160,"props":15262,"children":15263},{"style":4080},[15264],{"type":58,"value":14586},{"type":52,"tag":160,"props":15266,"children":15267},{"style":4181},[15268],{"type":58,"value":10814},{"type":52,"tag":160,"props":15270,"children":15271},{"style":4181},[15272],{"type":58,"value":10785},{"type":52,"tag":160,"props":15274,"children":15275},{"style":4080},[15276],{"type":58,"value":10763},{"type":52,"tag":160,"props":15278,"children":15279},{"style":1771},[15280],{"type":58,"value":10794},{"type":52,"tag":160,"props":15282,"children":15283},{"style":4080},[15284],{"type":58,"value":10799},{"type":52,"tag":160,"props":15286,"children":15287},{"style":1771},[15288],{"type":58,"value":10804},{"type":52,"tag":160,"props":15290,"children":15291},{"style":4080},[15292],{"type":58,"value":10809},{"type":52,"tag":160,"props":15294,"children":15295},{"style":4181},[15296],{"type":58,"value":10814},{"type":52,"tag":160,"props":15298,"children":15299},{"style":4080},[15300],{"type":58,"value":14623},{"type":52,"tag":160,"props":15302,"children":15303},{"class":162,"line":448},[15304,15308,15312,15316,15320,15324,15328],{"type":52,"tag":160,"props":15305,"children":15306},{"style":1771},[15307],{"type":58,"value":10758},{"type":52,"tag":160,"props":15309,"children":15310},{"style":4080},[15311],{"type":58,"value":14635},{"type":52,"tag":160,"props":15313,"children":15314},{"style":4181},[15315],{"type":58,"value":10814},{"type":52,"tag":160,"props":15317,"children":15318},{"style":4181},[15319],{"type":58,"value":14644},{"type":52,"tag":160,"props":15321,"children":15322},{"style":4080},[15323],{"type":58,"value":11279},{"type":52,"tag":160,"props":15325,"children":15326},{"style":4181},[15327],{"type":58,"value":10814},{"type":52,"tag":160,"props":15329,"children":15330},{"style":4080},[15331],{"type":58,"value":14657},{"type":52,"tag":160,"props":15333,"children":15334},{"class":162,"line":457},[15335,15339,15343,15347,15351,15355,15359],{"type":52,"tag":160,"props":15336,"children":15337},{"style":1771},[15338],{"type":58,"value":10758},{"type":52,"tag":160,"props":15340,"children":15341},{"style":4080},[15342],{"type":58,"value":14669},{"type":52,"tag":160,"props":15344,"children":15345},{"style":4181},[15346],{"type":58,"value":10814},{"type":52,"tag":160,"props":15348,"children":15349},{"style":4181},[15350],{"type":58,"value":14644},{"type":52,"tag":160,"props":15352,"children":15353},{"style":4080},[15354],{"type":58,"value":11279},{"type":52,"tag":160,"props":15356,"children":15357},{"style":4181},[15358],{"type":58,"value":10814},{"type":52,"tag":160,"props":15360,"children":15361},{"style":4080},[15362],{"type":58,"value":14690},{"type":52,"tag":160,"props":15364,"children":15365},{"class":162,"line":466},[15366,15370,15374,15378,15382,15386,15390],{"type":52,"tag":160,"props":15367,"children":15368},{"style":1771},[15369],{"type":58,"value":10758},{"type":52,"tag":160,"props":15371,"children":15372},{"style":4080},[15373],{"type":58,"value":14702},{"type":52,"tag":160,"props":15375,"children":15376},{"style":4181},[15377],{"type":58,"value":10814},{"type":52,"tag":160,"props":15379,"children":15380},{"style":4181},[15381],{"type":58,"value":14644},{"type":52,"tag":160,"props":15383,"children":15384},{"style":4080},[15385],{"type":58,"value":11279},{"type":52,"tag":160,"props":15387,"children":15388},{"style":4181},[15389],{"type":58,"value":10814},{"type":52,"tag":160,"props":15391,"children":15392},{"style":4080},[15393],{"type":58,"value":14723},{"type":52,"tag":160,"props":15395,"children":15396},{"class":162,"line":474},[15397,15401,15405,15409],{"type":52,"tag":160,"props":15398,"children":15399},{"style":4181},[15400],{"type":58,"value":11165},{"type":52,"tag":160,"props":15402,"children":15403},{"style":1771},[15404],{"type":58,"value":11170},{"type":52,"tag":160,"props":15406,"children":15407},{"style":4080},[15408],{"type":58,"value":3931},{"type":52,"tag":160,"props":15410,"children":15411},{"style":1771},[15412],{"type":58,"value":15413},"tiktok_ad_insights\n",{"type":52,"tag":5704,"props":15415,"children":15417},{"id":15416},"email-marketing-portion",[15418],{"type":58,"value":15419},"Email marketing portion",{"type":52,"tag":107,"props":15421,"children":15422},{},[15423,15425,15431],{"type":58,"value":15424},"The email side of the query uses ",{"type":52,"tag":71,"props":15426,"children":15428},{"className":15427},[],[15429],{"type":58,"value":15430},"UNION ALL",{"type":58,"value":15432}," to append email campaign data below the ads data. The columns and table names differ by email platform:",{"type":52,"tag":253,"props":15434,"children":15435},{":variants":7116,"group":7117},[15436,15782],{"type":52,"tag":259,"props":15437,"children":15438},{"v-slot:klaviyo":7},[15439,15450,15755],{"type":52,"tag":107,"props":15440,"children":15441},{},[15442,15444,15449],{"type":58,"value":15443},"Append this to the ads query above with ",{"type":52,"tag":71,"props":15445,"children":15447},{"className":15446},[],[15448],{"type":58,"value":15430},{"type":58,"value":10395},{"type":52,"tag":150,"props":15451,"children":15453},{"className":10404,"code":15452,"language":10406,"meta":7,"style":7},"UNION ALL\n\n-- Klaviyo email campaigns (no direct spend, but track engagement)\nSELECT\n    send_time::date AS spend_date,   -- adjust cast for your warehouse\n    'email' AS channel,\n    name AS campaign_name,\n    0.00 AS spend,\n    num_recipients AS impressions,\n    CAST(click_count AS INTEGER) AS clicks,\n    CAST(conversion_count AS INTEGER) AS conversions\nFROM raw.klaviyo_campaigns kc\nLEFT JOIN raw.klaviyo_metrics km\n    ON kc.id = km.campaign_id\nWHERE send_time IS NOT NULL\n",[15454],{"type":52,"tag":71,"props":15455,"children":15456},{"__ignoreMap":7},[15457,15465,15472,15480,15487,15513,15529,15546,15571,15587,15619,15651,15676,15701,15739],{"type":52,"tag":160,"props":15458,"children":15459},{"class":162,"line":163},[15460],{"type":52,"tag":160,"props":15461,"children":15462},{"style":4181},[15463],{"type":58,"value":15464},"UNION ALL\n",{"type":52,"tag":160,"props":15466,"children":15467},{"class":162,"line":281},[15468],{"type":52,"tag":160,"props":15469,"children":15470},{"emptyLinePlaceholder":26},[15471],{"type":58,"value":287},{"type":52,"tag":160,"props":15473,"children":15474},{"class":162,"line":290},[15475],{"type":52,"tag":160,"props":15476,"children":15477},{"style":10416},[15478],{"type":58,"value":15479},"-- Klaviyo email campaigns (no direct spend, but track engagement)\n",{"type":52,"tag":160,"props":15481,"children":15482},{"class":162,"line":299},[15483],{"type":52,"tag":160,"props":15484,"children":15485},{"style":4181},[15486],{"type":58,"value":10608},{"type":52,"tag":160,"props":15488,"children":15489},{"class":162,"line":27},[15490,15495,15499,15503,15508],{"type":52,"tag":160,"props":15491,"children":15492},{"style":4080},[15493],{"type":58,"value":15494},"    send_time::",{"type":52,"tag":160,"props":15496,"children":15497},{"style":4181},[15498],{"type":58,"value":14883},{"type":52,"tag":160,"props":15500,"children":15501},{"style":4181},[15502],{"type":58,"value":10630},{"type":52,"tag":160,"props":15504,"children":15505},{"style":4080},[15506],{"type":58,"value":15507}," spend_date,   ",{"type":52,"tag":160,"props":15509,"children":15510},{"style":10416},[15511],{"type":58,"value":15512},"-- adjust cast for your warehouse\n",{"type":52,"tag":160,"props":15514,"children":15515},{"class":162,"line":316},[15516,15521,15525],{"type":52,"tag":160,"props":15517,"children":15518},{"style":173},[15519],{"type":58,"value":15520},"    'email'",{"type":52,"tag":160,"props":15522,"children":15523},{"style":4181},[15524],{"type":58,"value":10630},{"type":52,"tag":160,"props":15526,"children":15527},{"style":4080},[15528],{"type":58,"value":14566},{"type":52,"tag":160,"props":15530,"children":15531},{"class":162,"line":325},[15532,15537,15541],{"type":52,"tag":160,"props":15533,"children":15534},{"style":4181},[15535],{"type":58,"value":15536},"    name",{"type":52,"tag":160,"props":15538,"children":15539},{"style":4181},[15540],{"type":58,"value":10630},{"type":52,"tag":160,"props":15542,"children":15543},{"style":4080},[15544],{"type":58,"value":15545}," campaign_name,\n",{"type":52,"tag":160,"props":15547,"children":15548},{"class":162,"line":334},[15549,15554,15558,15563,15567],{"type":52,"tag":160,"props":15550,"children":15551},{"style":1771},[15552],{"type":58,"value":15553},"    0",{"type":52,"tag":160,"props":15555,"children":15556},{"style":4080},[15557],{"type":58,"value":3931},{"type":52,"tag":160,"props":15559,"children":15560},{"style":1771},[15561],{"type":58,"value":15562},"00",{"type":52,"tag":160,"props":15564,"children":15565},{"style":4181},[15566],{"type":58,"value":10630},{"type":52,"tag":160,"props":15568,"children":15569},{"style":4080},[15570],{"type":58,"value":14623},{"type":52,"tag":160,"props":15572,"children":15573},{"class":162,"line":343},[15574,15579,15583],{"type":52,"tag":160,"props":15575,"children":15576},{"style":4080},[15577],{"type":58,"value":15578},"    num_recipients ",{"type":52,"tag":160,"props":15580,"children":15581},{"style":4181},[15582],{"type":58,"value":10814},{"type":52,"tag":160,"props":15584,"children":15585},{"style":4080},[15586],{"type":58,"value":14657},{"type":52,"tag":160,"props":15588,"children":15589},{"class":162,"line":11},[15590,15594,15599,15603,15607,15611,15615],{"type":52,"tag":160,"props":15591,"children":15592},{"style":1771},[15593],{"type":58,"value":10758},{"type":52,"tag":160,"props":15595,"children":15596},{"style":4080},[15597],{"type":58,"value":15598},"(click_count ",{"type":52,"tag":160,"props":15600,"children":15601},{"style":4181},[15602],{"type":58,"value":10814},{"type":52,"tag":160,"props":15604,"children":15605},{"style":4181},[15606],{"type":58,"value":14644},{"type":52,"tag":160,"props":15608,"children":15609},{"style":4080},[15610],{"type":58,"value":11279},{"type":52,"tag":160,"props":15612,"children":15613},{"style":4181},[15614],{"type":58,"value":10814},{"type":52,"tag":160,"props":15616,"children":15617},{"style":4080},[15618],{"type":58,"value":14690},{"type":52,"tag":160,"props":15620,"children":15621},{"class":162,"line":359},[15622,15626,15631,15635,15639,15643,15647],{"type":52,"tag":160,"props":15623,"children":15624},{"style":1771},[15625],{"type":58,"value":10758},{"type":52,"tag":160,"props":15627,"children":15628},{"style":4080},[15629],{"type":58,"value":15630},"(conversion_count ",{"type":52,"tag":160,"props":15632,"children":15633},{"style":4181},[15634],{"type":58,"value":10814},{"type":52,"tag":160,"props":15636,"children":15637},{"style":4181},[15638],{"type":58,"value":14644},{"type":52,"tag":160,"props":15640,"children":15641},{"style":4080},[15642],{"type":58,"value":11279},{"type":52,"tag":160,"props":15644,"children":15645},{"style":4181},[15646],{"type":58,"value":10814},{"type":52,"tag":160,"props":15648,"children":15649},{"style":4080},[15650],{"type":58,"value":14723},{"type":52,"tag":160,"props":15652,"children":15653},{"class":162,"line":368},[15654,15658,15662,15666,15671],{"type":52,"tag":160,"props":15655,"children":15656},{"style":4181},[15657],{"type":58,"value":11165},{"type":52,"tag":160,"props":15659,"children":15660},{"style":1771},[15661],{"type":58,"value":11170},{"type":52,"tag":160,"props":15663,"children":15664},{"style":4080},[15665],{"type":58,"value":3931},{"type":52,"tag":160,"props":15667,"children":15668},{"style":1771},[15669],{"type":58,"value":15670},"klaviyo_campaigns",{"type":52,"tag":160,"props":15672,"children":15673},{"style":4080},[15674],{"type":58,"value":15675}," kc\n",{"type":52,"tag":160,"props":15677,"children":15678},{"class":162,"line":377},[15679,15683,15687,15691,15696],{"type":52,"tag":160,"props":15680,"children":15681},{"style":4181},[15682],{"type":58,"value":10306},{"type":52,"tag":160,"props":15684,"children":15685},{"style":1771},[15686],{"type":58,"value":11170},{"type":52,"tag":160,"props":15688,"children":15689},{"style":4080},[15690],{"type":58,"value":3931},{"type":52,"tag":160,"props":15692,"children":15693},{"style":1771},[15694],{"type":58,"value":15695},"klaviyo_metrics",{"type":52,"tag":160,"props":15697,"children":15698},{"style":4080},[15699],{"type":58,"value":15700}," km\n",{"type":52,"tag":160,"props":15702,"children":15703},{"class":162,"line":386},[15704,15708,15713,15717,15721,15725,15730,15734],{"type":52,"tag":160,"props":15705,"children":15706},{"style":4181},[15707],{"type":58,"value":11217},{"type":52,"tag":160,"props":15709,"children":15710},{"style":1771},[15711],{"type":58,"value":15712}," kc",{"type":52,"tag":160,"props":15714,"children":15715},{"style":4080},[15716],{"type":58,"value":3931},{"type":52,"tag":160,"props":15718,"children":15719},{"style":1771},[15720],{"type":58,"value":10625},{"type":52,"tag":160,"props":15722,"children":15723},{"style":4181},[15724],{"type":58,"value":11235},{"type":52,"tag":160,"props":15726,"children":15727},{"style":1771},[15728],{"type":58,"value":15729}," km",{"type":52,"tag":160,"props":15731,"children":15732},{"style":4080},[15733],{"type":58,"value":3931},{"type":52,"tag":160,"props":15735,"children":15736},{"style":1771},[15737],{"type":58,"value":15738},"campaign_id\n",{"type":52,"tag":160,"props":15740,"children":15741},{"class":162,"line":395},[15742,15746,15751],{"type":52,"tag":160,"props":15743,"children":15744},{"style":4181},[15745],{"type":58,"value":12134},{"type":52,"tag":160,"props":15747,"children":15748},{"style":4080},[15749],{"type":58,"value":15750}," send_time ",{"type":52,"tag":160,"props":15752,"children":15753},{"style":4181},[15754],{"type":58,"value":13917},{"type":52,"tag":107,"props":15756,"children":15757},{},[15758,15760,15766,15767,15773,15775,15780],{"type":58,"value":15759},"Add ",{"type":52,"tag":71,"props":15761,"children":15763},{"className":15762},[],[15764],{"type":58,"value":15765},"raw.klaviyo_campaigns",{"type":58,"value":9803},{"type":52,"tag":71,"props":15768,"children":15770},{"className":15769},[],[15771],{"type":58,"value":15772},"raw.klaviyo_metrics",{"type":58,"value":15774}," to the ",{"type":52,"tag":71,"props":15776,"children":15778},{"className":15777},[],[15779],{"type":58,"value":10322},{"type":58,"value":15781}," list in the Bruin asset header.",{"type":52,"tag":259,"props":15783,"children":15784},{"v-slot:hubspot":7},[15785,15795,16023],{"type":52,"tag":107,"props":15786,"children":15787},{},[15788,15789,15794],{"type":58,"value":15443},{"type":52,"tag":71,"props":15790,"children":15792},{"className":15791},[],[15793],{"type":58,"value":15430},{"type":58,"value":10395},{"type":52,"tag":150,"props":15796,"children":15798},{"className":10404,"code":15797,"language":10406,"meta":7,"style":7},"UNION ALL\n\n-- HubSpot email campaigns (no direct spend, but track engagement)\nSELECT\n    updated_at::date AS spend_date,   -- adjust cast for your warehouse\n    'email' AS channel,\n    name AS campaign_name,\n    0.00 AS spend,\n    CAST(num_included AS INTEGER) AS impressions,\n    CAST(num_clicks AS INTEGER) AS clicks,\n    0 AS conversions\nFROM raw.hubspot_campaigns\nWHERE name IS NOT NULL\n",[15799],{"type":52,"tag":71,"props":15800,"children":15801},{"__ignoreMap":7},[15802,15809,15816,15824,15831,15855,15870,15885,15908,15940,15972,15987,16007],{"type":52,"tag":160,"props":15803,"children":15804},{"class":162,"line":163},[15805],{"type":52,"tag":160,"props":15806,"children":15807},{"style":4181},[15808],{"type":58,"value":15464},{"type":52,"tag":160,"props":15810,"children":15811},{"class":162,"line":281},[15812],{"type":52,"tag":160,"props":15813,"children":15814},{"emptyLinePlaceholder":26},[15815],{"type":58,"value":287},{"type":52,"tag":160,"props":15817,"children":15818},{"class":162,"line":290},[15819],{"type":52,"tag":160,"props":15820,"children":15821},{"style":10416},[15822],{"type":58,"value":15823},"-- HubSpot email campaigns (no direct spend, but track engagement)\n",{"type":52,"tag":160,"props":15825,"children":15826},{"class":162,"line":299},[15827],{"type":52,"tag":160,"props":15828,"children":15829},{"style":4181},[15830],{"type":58,"value":10608},{"type":52,"tag":160,"props":15832,"children":15833},{"class":162,"line":27},[15834,15839,15843,15847,15851],{"type":52,"tag":160,"props":15835,"children":15836},{"style":4080},[15837],{"type":58,"value":15838},"    updated_at::",{"type":52,"tag":160,"props":15840,"children":15841},{"style":4181},[15842],{"type":58,"value":14883},{"type":52,"tag":160,"props":15844,"children":15845},{"style":4181},[15846],{"type":58,"value":10630},{"type":52,"tag":160,"props":15848,"children":15849},{"style":4080},[15850],{"type":58,"value":15507},{"type":52,"tag":160,"props":15852,"children":15853},{"style":10416},[15854],{"type":58,"value":15512},{"type":52,"tag":160,"props":15856,"children":15857},{"class":162,"line":316},[15858,15862,15866],{"type":52,"tag":160,"props":15859,"children":15860},{"style":173},[15861],{"type":58,"value":15520},{"type":52,"tag":160,"props":15863,"children":15864},{"style":4181},[15865],{"type":58,"value":10630},{"type":52,"tag":160,"props":15867,"children":15868},{"style":4080},[15869],{"type":58,"value":14566},{"type":52,"tag":160,"props":15871,"children":15872},{"class":162,"line":325},[15873,15877,15881],{"type":52,"tag":160,"props":15874,"children":15875},{"style":4181},[15876],{"type":58,"value":15536},{"type":52,"tag":160,"props":15878,"children":15879},{"style":4181},[15880],{"type":58,"value":10630},{"type":52,"tag":160,"props":15882,"children":15883},{"style":4080},[15884],{"type":58,"value":15545},{"type":52,"tag":160,"props":15886,"children":15887},{"class":162,"line":334},[15888,15892,15896,15900,15904],{"type":52,"tag":160,"props":15889,"children":15890},{"style":1771},[15891],{"type":58,"value":15553},{"type":52,"tag":160,"props":15893,"children":15894},{"style":4080},[15895],{"type":58,"value":3931},{"type":52,"tag":160,"props":15897,"children":15898},{"style":1771},[15899],{"type":58,"value":15562},{"type":52,"tag":160,"props":15901,"children":15902},{"style":4181},[15903],{"type":58,"value":10630},{"type":52,"tag":160,"props":15905,"children":15906},{"style":4080},[15907],{"type":58,"value":14623},{"type":52,"tag":160,"props":15909,"children":15910},{"class":162,"line":343},[15911,15915,15920,15924,15928,15932,15936],{"type":52,"tag":160,"props":15912,"children":15913},{"style":1771},[15914],{"type":58,"value":10758},{"type":52,"tag":160,"props":15916,"children":15917},{"style":4080},[15918],{"type":58,"value":15919},"(num_included ",{"type":52,"tag":160,"props":15921,"children":15922},{"style":4181},[15923],{"type":58,"value":10814},{"type":52,"tag":160,"props":15925,"children":15926},{"style":4181},[15927],{"type":58,"value":14644},{"type":52,"tag":160,"props":15929,"children":15930},{"style":4080},[15931],{"type":58,"value":11279},{"type":52,"tag":160,"props":15933,"children":15934},{"style":4181},[15935],{"type":58,"value":10814},{"type":52,"tag":160,"props":15937,"children":15938},{"style":4080},[15939],{"type":58,"value":14657},{"type":52,"tag":160,"props":15941,"children":15942},{"class":162,"line":11},[15943,15947,15952,15956,15960,15964,15968],{"type":52,"tag":160,"props":15944,"children":15945},{"style":1771},[15946],{"type":58,"value":10758},{"type":52,"tag":160,"props":15948,"children":15949},{"style":4080},[15950],{"type":58,"value":15951},"(num_clicks ",{"type":52,"tag":160,"props":15953,"children":15954},{"style":4181},[15955],{"type":58,"value":10814},{"type":52,"tag":160,"props":15957,"children":15958},{"style":4181},[15959],{"type":58,"value":14644},{"type":52,"tag":160,"props":15961,"children":15962},{"style":4080},[15963],{"type":58,"value":11279},{"type":52,"tag":160,"props":15965,"children":15966},{"style":4181},[15967],{"type":58,"value":10814},{"type":52,"tag":160,"props":15969,"children":15970},{"style":4080},[15971],{"type":58,"value":14690},{"type":52,"tag":160,"props":15973,"children":15974},{"class":162,"line":359},[15975,15979,15983],{"type":52,"tag":160,"props":15976,"children":15977},{"style":1771},[15978],{"type":58,"value":15553},{"type":52,"tag":160,"props":15980,"children":15981},{"style":4181},[15982],{"type":58,"value":10630},{"type":52,"tag":160,"props":15984,"children":15985},{"style":4080},[15986],{"type":58,"value":14723},{"type":52,"tag":160,"props":15988,"children":15989},{"class":162,"line":368},[15990,15994,15998,16002],{"type":52,"tag":160,"props":15991,"children":15992},{"style":4181},[15993],{"type":58,"value":11165},{"type":52,"tag":160,"props":15995,"children":15996},{"style":1771},[15997],{"type":58,"value":11170},{"type":52,"tag":160,"props":15999,"children":16000},{"style":4080},[16001],{"type":58,"value":3931},{"type":52,"tag":160,"props":16003,"children":16004},{"style":1771},[16005],{"type":58,"value":16006},"hubspot_campaigns\n",{"type":52,"tag":160,"props":16008,"children":16009},{"class":162,"line":377},[16010,16014,16019],{"type":52,"tag":160,"props":16011,"children":16012},{"style":4181},[16013],{"type":58,"value":12134},{"type":52,"tag":160,"props":16015,"children":16016},{"style":4181},[16017],{"type":58,"value":16018}," name",{"type":52,"tag":160,"props":16020,"children":16021},{"style":4181},[16022],{"type":58,"value":12184},{"type":52,"tag":107,"props":16024,"children":16025},{},[16026,16027,16033,16034,16039],{"type":58,"value":15759},{"type":52,"tag":71,"props":16028,"children":16030},{"className":16029},[],[16031],{"type":58,"value":16032},"raw.hubspot_campaigns",{"type":58,"value":15774},{"type":52,"tag":71,"props":16035,"children":16037},{"className":16036},[],[16038],{"type":58,"value":10322},{"type":58,"value":15781},{"type":52,"tag":4021,"props":16041,"children":16042},{},[16043],{"type":52,"tag":107,"props":16044,"children":16045},{},[16046,16048,16054,16056,16061,16063,16068],{"type":58,"value":16047},"The email portion needs both the right source columns (Klaviyo vs HubSpot) and the right date cast for your warehouse. The ",{"type":52,"tag":71,"props":16049,"children":16051},{"className":16050},[],[16052],{"type":58,"value":16053},"::date",{"type":58,"value":16055}," cast above is Snowflake syntax - ClickHouse uses ",{"type":52,"tag":71,"props":16057,"children":16059},{"className":16058},[],[16060],{"type":58,"value":14369},{"type":58,"value":16062},", BigQuery uses ",{"type":52,"tag":71,"props":16064,"children":16066},{"className":16065},[],[16067],{"type":58,"value":14377},{"type":58,"value":16069},". Ask Claude Code to generate the combined SQL for your specific stack.",{"type":52,"tag":131,"props":16071,"children":16073},{"id":16072},"_5-staged-web-sessions-stg_web_sessionssql",[16074,16076],{"type":58,"value":16075},"5) Staged web sessions - ",{"type":52,"tag":71,"props":16077,"children":16079},{"className":16078},[],[16080],{"type":58,"value":16081},"stg_web_sessions.sql",{"type":52,"tag":107,"props":16083,"children":16084},{},[16085],{"type":58,"value":16086},"Clean session data with traffic source mapping. The column names differ depending on whether you use GA4 or Mixpanel, and the date functions differ by warehouse.",{"type":52,"tag":107,"props":16088,"children":16089},{},[16090,16091,16100],{"type":58,"value":10384},{"type":52,"tag":218,"props":16092,"children":16093},{},[16094],{"type":52,"tag":71,"props":16095,"children":16097},{"className":16096},[],[16098],{"type":58,"value":16099},"ecommerce\u002Fassets\u002Fstaging\u002Fstg_web_sessions.sql",{"type":58,"value":10395},{"type":52,"tag":5704,"props":16102,"children":16104},{"id":16103},"source-specific-columns",[16105],{"type":58,"value":16106},"Source-specific columns",{"type":52,"tag":107,"props":16108,"children":16109},{},[16110,16112,16118,16119,16125,16127,16133],{"type":58,"value":16111},"The raw table names differ by analytics tool. GA4 creates ",{"type":52,"tag":71,"props":16113,"children":16115},{"className":16114},[],[16116],{"type":58,"value":16117},"raw.ga4_sessions",{"type":58,"value":9803},{"type":52,"tag":71,"props":16120,"children":16122},{"className":16121},[],[16123],{"type":58,"value":16124},"raw.ga4_events",{"type":58,"value":16126},"; Mixpanel creates ",{"type":52,"tag":71,"props":16128,"children":16130},{"className":16129},[],[16131],{"type":58,"value":16132},"raw.mixpanel_events",{"type":58,"value":16134}," (no separate sessions table). Select the tab that matches your analytics tool:",{"type":52,"tag":253,"props":16136,"children":16137},{":variants":8993,"group":8994},[16138,16640],{"type":52,"tag":259,"props":16139,"children":16140},{"v-slot:ga4":7},[16141,16162],{"type":52,"tag":107,"props":16142,"children":16143},{},[16144,16146,16152,16154,16160],{"type":58,"value":16145},"GA4 gives you sessions and events as separate tables. The ",{"type":52,"tag":71,"props":16147,"children":16149},{"className":16148},[],[16150],{"type":58,"value":16151},"CASE",{"type":58,"value":16153}," statement maps GA4 traffic sources to the same channel names used in ",{"type":52,"tag":71,"props":16155,"children":16157},{"className":16156},[],[16158],{"type":58,"value":16159},"stg_marketing_spend",{"type":58,"value":16161},", so you can join them later for attribution.",{"type":52,"tag":150,"props":16163,"children":16165},{"className":10404,"code":16164,"language":10406,"meta":7,"style":7},"SELECT\n    s.date AS session_raw_date,       -- cast with your warehouse's date function\n    s.sessions AS total_sessions,\n    s.new_users,\n    s.engaged_sessions,\n    e.event_count AS purchase_events,\n    CASE\n        WHEN s.source = 'facebook' THEN 'paid_ads'\n        WHEN s.medium = 'email' THEN 'email'\n        WHEN s.medium = 'organic' THEN 'organic_search'\n        WHEN s.medium = 'cpc' THEN 'paid_search'\n        WHEN s.source = '(direct)' THEN 'direct'\n        ELSE 'other'\n    END AS channel\nFROM raw.ga4_sessions s\nLEFT JOIN raw.ga4_events e\n    ON s.date = e.date\n    AND e.event_name = 'purchase'\n",[16166],{"type":52,"tag":71,"props":16167,"children":16168},{"__ignoreMap":7},[16169,16176,16206,16231,16251,16271,16297,16305,16346,16384,16421,16458,16495,16508,16525,16550,16575,16611],{"type":52,"tag":160,"props":16170,"children":16171},{"class":162,"line":163},[16172],{"type":52,"tag":160,"props":16173,"children":16174},{"style":4181},[16175],{"type":58,"value":10608},{"type":52,"tag":160,"props":16177,"children":16178},{"class":162,"line":281},[16179,16184,16188,16192,16196,16201],{"type":52,"tag":160,"props":16180,"children":16181},{"style":1771},[16182],{"type":58,"value":16183},"    s",{"type":52,"tag":160,"props":16185,"children":16186},{"style":4080},[16187],{"type":58,"value":3931},{"type":52,"tag":160,"props":16189,"children":16190},{"style":1771},[16191],{"type":58,"value":14883},{"type":52,"tag":160,"props":16193,"children":16194},{"style":4181},[16195],{"type":58,"value":10630},{"type":52,"tag":160,"props":16197,"children":16198},{"style":4080},[16199],{"type":58,"value":16200}," session_raw_date,       ",{"type":52,"tag":160,"props":16202,"children":16203},{"style":10416},[16204],{"type":58,"value":16205},"-- cast with your warehouse's date function\n",{"type":52,"tag":160,"props":16207,"children":16208},{"class":162,"line":290},[16209,16213,16217,16222,16226],{"type":52,"tag":160,"props":16210,"children":16211},{"style":1771},[16212],{"type":58,"value":16183},{"type":52,"tag":160,"props":16214,"children":16215},{"style":4080},[16216],{"type":58,"value":3931},{"type":52,"tag":160,"props":16218,"children":16219},{"style":1771},[16220],{"type":58,"value":16221},"sessions",{"type":52,"tag":160,"props":16223,"children":16224},{"style":4181},[16225],{"type":58,"value":10630},{"type":52,"tag":160,"props":16227,"children":16228},{"style":4080},[16229],{"type":58,"value":16230}," total_sessions,\n",{"type":52,"tag":160,"props":16232,"children":16233},{"class":162,"line":299},[16234,16238,16242,16247],{"type":52,"tag":160,"props":16235,"children":16236},{"style":1771},[16237],{"type":58,"value":16183},{"type":52,"tag":160,"props":16239,"children":16240},{"style":4080},[16241],{"type":58,"value":3931},{"type":52,"tag":160,"props":16243,"children":16244},{"style":1771},[16245],{"type":58,"value":16246},"new_users",{"type":52,"tag":160,"props":16248,"children":16249},{"style":4080},[16250],{"type":58,"value":10656},{"type":52,"tag":160,"props":16252,"children":16253},{"class":162,"line":27},[16254,16258,16262,16267],{"type":52,"tag":160,"props":16255,"children":16256},{"style":1771},[16257],{"type":58,"value":16183},{"type":52,"tag":160,"props":16259,"children":16260},{"style":4080},[16261],{"type":58,"value":3931},{"type":52,"tag":160,"props":16263,"children":16264},{"style":1771},[16265],{"type":58,"value":16266},"engaged_sessions",{"type":52,"tag":160,"props":16268,"children":16269},{"style":4080},[16270],{"type":58,"value":10656},{"type":52,"tag":160,"props":16272,"children":16273},{"class":162,"line":316},[16274,16279,16283,16288,16292],{"type":52,"tag":160,"props":16275,"children":16276},{"style":1771},[16277],{"type":58,"value":16278},"    e",{"type":52,"tag":160,"props":16280,"children":16281},{"style":4080},[16282],{"type":58,"value":3931},{"type":52,"tag":160,"props":16284,"children":16285},{"style":1771},[16286],{"type":58,"value":16287},"event_count",{"type":52,"tag":160,"props":16289,"children":16290},{"style":4181},[16291],{"type":58,"value":10630},{"type":52,"tag":160,"props":16293,"children":16294},{"style":4080},[16295],{"type":58,"value":16296}," purchase_events,\n",{"type":52,"tag":160,"props":16298,"children":16299},{"class":162,"line":325},[16300],{"type":52,"tag":160,"props":16301,"children":16302},{"style":4181},[16303],{"type":58,"value":16304},"    CASE\n",{"type":52,"tag":160,"props":16306,"children":16307},{"class":162,"line":334},[16308,16313,16318,16322,16327,16331,16336,16341],{"type":52,"tag":160,"props":16309,"children":16310},{"style":4181},[16311],{"type":58,"value":16312},"        WHEN",{"type":52,"tag":160,"props":16314,"children":16315},{"style":1771},[16316],{"type":58,"value":16317}," s",{"type":52,"tag":160,"props":16319,"children":16320},{"style":4080},[16321],{"type":58,"value":3931},{"type":52,"tag":160,"props":16323,"children":16324},{"style":1771},[16325],{"type":58,"value":16326},"source",{"type":52,"tag":160,"props":16328,"children":16329},{"style":4181},[16330],{"type":58,"value":11235},{"type":52,"tag":160,"props":16332,"children":16333},{"style":173},[16334],{"type":58,"value":16335}," 'facebook'",{"type":52,"tag":160,"props":16337,"children":16338},{"style":4181},[16339],{"type":58,"value":16340}," THEN",{"type":52,"tag":160,"props":16342,"children":16343},{"style":173},[16344],{"type":58,"value":16345}," 'paid_ads'\n",{"type":52,"tag":160,"props":16347,"children":16348},{"class":162,"line":343},[16349,16353,16357,16361,16366,16370,16375,16379],{"type":52,"tag":160,"props":16350,"children":16351},{"style":4181},[16352],{"type":58,"value":16312},{"type":52,"tag":160,"props":16354,"children":16355},{"style":1771},[16356],{"type":58,"value":16317},{"type":52,"tag":160,"props":16358,"children":16359},{"style":4080},[16360],{"type":58,"value":3931},{"type":52,"tag":160,"props":16362,"children":16363},{"style":1771},[16364],{"type":58,"value":16365},"medium",{"type":52,"tag":160,"props":16367,"children":16368},{"style":4181},[16369],{"type":58,"value":11235},{"type":52,"tag":160,"props":16371,"children":16372},{"style":173},[16373],{"type":58,"value":16374}," 'email'",{"type":52,"tag":160,"props":16376,"children":16377},{"style":4181},[16378],{"type":58,"value":16340},{"type":52,"tag":160,"props":16380,"children":16381},{"style":173},[16382],{"type":58,"value":16383}," 'email'\n",{"type":52,"tag":160,"props":16385,"children":16386},{"class":162,"line":11},[16387,16391,16395,16399,16403,16407,16412,16416],{"type":52,"tag":160,"props":16388,"children":16389},{"style":4181},[16390],{"type":58,"value":16312},{"type":52,"tag":160,"props":16392,"children":16393},{"style":1771},[16394],{"type":58,"value":16317},{"type":52,"tag":160,"props":16396,"children":16397},{"style":4080},[16398],{"type":58,"value":3931},{"type":52,"tag":160,"props":16400,"children":16401},{"style":1771},[16402],{"type":58,"value":16365},{"type":52,"tag":160,"props":16404,"children":16405},{"style":4181},[16406],{"type":58,"value":11235},{"type":52,"tag":160,"props":16408,"children":16409},{"style":173},[16410],{"type":58,"value":16411}," 'organic'",{"type":52,"tag":160,"props":16413,"children":16414},{"style":4181},[16415],{"type":58,"value":16340},{"type":52,"tag":160,"props":16417,"children":16418},{"style":173},[16419],{"type":58,"value":16420}," 'organic_search'\n",{"type":52,"tag":160,"props":16422,"children":16423},{"class":162,"line":359},[16424,16428,16432,16436,16440,16444,16449,16453],{"type":52,"tag":160,"props":16425,"children":16426},{"style":4181},[16427],{"type":58,"value":16312},{"type":52,"tag":160,"props":16429,"children":16430},{"style":1771},[16431],{"type":58,"value":16317},{"type":52,"tag":160,"props":16433,"children":16434},{"style":4080},[16435],{"type":58,"value":3931},{"type":52,"tag":160,"props":16437,"children":16438},{"style":1771},[16439],{"type":58,"value":16365},{"type":52,"tag":160,"props":16441,"children":16442},{"style":4181},[16443],{"type":58,"value":11235},{"type":52,"tag":160,"props":16445,"children":16446},{"style":173},[16447],{"type":58,"value":16448}," 'cpc'",{"type":52,"tag":160,"props":16450,"children":16451},{"style":4181},[16452],{"type":58,"value":16340},{"type":52,"tag":160,"props":16454,"children":16455},{"style":173},[16456],{"type":58,"value":16457}," 'paid_search'\n",{"type":52,"tag":160,"props":16459,"children":16460},{"class":162,"line":368},[16461,16465,16469,16473,16477,16481,16486,16490],{"type":52,"tag":160,"props":16462,"children":16463},{"style":4181},[16464],{"type":58,"value":16312},{"type":52,"tag":160,"props":16466,"children":16467},{"style":1771},[16468],{"type":58,"value":16317},{"type":52,"tag":160,"props":16470,"children":16471},{"style":4080},[16472],{"type":58,"value":3931},{"type":52,"tag":160,"props":16474,"children":16475},{"style":1771},[16476],{"type":58,"value":16326},{"type":52,"tag":160,"props":16478,"children":16479},{"style":4181},[16480],{"type":58,"value":11235},{"type":52,"tag":160,"props":16482,"children":16483},{"style":173},[16484],{"type":58,"value":16485}," '(direct)'",{"type":52,"tag":160,"props":16487,"children":16488},{"style":4181},[16489],{"type":58,"value":16340},{"type":52,"tag":160,"props":16491,"children":16492},{"style":173},[16493],{"type":58,"value":16494}," 'direct'\n",{"type":52,"tag":160,"props":16496,"children":16497},{"class":162,"line":377},[16498,16503],{"type":52,"tag":160,"props":16499,"children":16500},{"style":4181},[16501],{"type":58,"value":16502},"        ELSE",{"type":52,"tag":160,"props":16504,"children":16505},{"style":173},[16506],{"type":58,"value":16507}," 'other'\n",{"type":52,"tag":160,"props":16509,"children":16510},{"class":162,"line":386},[16511,16516,16520],{"type":52,"tag":160,"props":16512,"children":16513},{"style":4181},[16514],{"type":58,"value":16515},"    END",{"type":52,"tag":160,"props":16517,"children":16518},{"style":4181},[16519],{"type":58,"value":10630},{"type":52,"tag":160,"props":16521,"children":16522},{"style":4080},[16523],{"type":58,"value":16524}," channel\n",{"type":52,"tag":160,"props":16526,"children":16527},{"class":162,"line":395},[16528,16532,16536,16540,16545],{"type":52,"tag":160,"props":16529,"children":16530},{"style":4181},[16531],{"type":58,"value":11165},{"type":52,"tag":160,"props":16533,"children":16534},{"style":1771},[16535],{"type":58,"value":11170},{"type":52,"tag":160,"props":16537,"children":16538},{"style":4080},[16539],{"type":58,"value":3931},{"type":52,"tag":160,"props":16541,"children":16542},{"style":1771},[16543],{"type":58,"value":16544},"ga4_sessions",{"type":52,"tag":160,"props":16546,"children":16547},{"style":4080},[16548],{"type":58,"value":16549}," s\n",{"type":52,"tag":160,"props":16551,"children":16552},{"class":162,"line":404},[16553,16557,16561,16565,16570],{"type":52,"tag":160,"props":16554,"children":16555},{"style":4181},[16556],{"type":58,"value":10306},{"type":52,"tag":160,"props":16558,"children":16559},{"style":1771},[16560],{"type":58,"value":11170},{"type":52,"tag":160,"props":16562,"children":16563},{"style":4080},[16564],{"type":58,"value":3931},{"type":52,"tag":160,"props":16566,"children":16567},{"style":1771},[16568],{"type":58,"value":16569},"ga4_events",{"type":52,"tag":160,"props":16571,"children":16572},{"style":4080},[16573],{"type":58,"value":16574}," e\n",{"type":52,"tag":160,"props":16576,"children":16577},{"class":162,"line":413},[16578,16582,16586,16590,16594,16598,16603,16607],{"type":52,"tag":160,"props":16579,"children":16580},{"style":4181},[16581],{"type":58,"value":11217},{"type":52,"tag":160,"props":16583,"children":16584},{"style":1771},[16585],{"type":58,"value":16317},{"type":52,"tag":160,"props":16587,"children":16588},{"style":4080},[16589],{"type":58,"value":3931},{"type":52,"tag":160,"props":16591,"children":16592},{"style":1771},[16593],{"type":58,"value":14883},{"type":52,"tag":160,"props":16595,"children":16596},{"style":4181},[16597],{"type":58,"value":11235},{"type":52,"tag":160,"props":16599,"children":16600},{"style":1771},[16601],{"type":58,"value":16602}," e",{"type":52,"tag":160,"props":16604,"children":16605},{"style":4080},[16606],{"type":58,"value":3931},{"type":52,"tag":160,"props":16608,"children":16609},{"style":1771},[16610],{"type":58,"value":8632},{"type":52,"tag":160,"props":16612,"children":16613},{"class":162,"line":422},[16614,16618,16622,16626,16631,16635],{"type":52,"tag":160,"props":16615,"children":16616},{"style":4181},[16617],{"type":58,"value":11257},{"type":52,"tag":160,"props":16619,"children":16620},{"style":1771},[16621],{"type":58,"value":16602},{"type":52,"tag":160,"props":16623,"children":16624},{"style":4080},[16625],{"type":58,"value":3931},{"type":52,"tag":160,"props":16627,"children":16628},{"style":1771},[16629],{"type":58,"value":16630},"event_name",{"type":52,"tag":160,"props":16632,"children":16633},{"style":4181},[16634],{"type":58,"value":11235},{"type":52,"tag":160,"props":16636,"children":16637},{"style":173},[16638],{"type":58,"value":16639}," 'purchase'\n",{"type":52,"tag":259,"props":16641,"children":16642},{"v-slot:mixpanel":7},[16643,16655],{"type":52,"tag":107,"props":16644,"children":16645},{},[16646,16648,16653],{"type":58,"value":16647},"Mixpanel stores everything as events - there is no separate sessions table. You aggregate session-like metrics from ",{"type":52,"tag":71,"props":16649,"children":16651},{"className":16650},[],[16652],{"type":58,"value":16132},{"type":58,"value":16654}," directly.",{"type":52,"tag":150,"props":16656,"children":16658},{"className":10404,"code":16657,"language":10406,"meta":7,"style":7},"SELECT\n    e.time AS session_raw_date,       -- cast with your warehouse's date function\n    COUNT(*) AS total_sessions,\n    COUNT(CASE WHEN e.is_new_user = true THEN 1 END) AS new_users,\n    COUNT(CASE WHEN e.session_duration > 10 THEN 1 END) AS engaged_sessions,\n    COUNT(CASE WHEN e.event_name = 'purchase' THEN 1 END) AS purchase_events,\n    CASE\n        WHEN e.utm_source = 'facebook' THEN 'paid_ads'\n        WHEN e.utm_medium = 'email' THEN 'email'\n        WHEN e.utm_medium = 'organic' THEN 'organic_search'\n        WHEN e.utm_medium = 'cpc' THEN 'paid_search'\n        ELSE 'other'\n    END AS channel\nFROM raw.mixpanel_events e\nWHERE e.event_name = 'session_start'\nGROUP BY session_raw_date, channel\n",[16659],{"type":52,"tag":71,"props":16660,"children":16661},{"__ignoreMap":7},[16662,16669,16697,16726,16796,16863,16927,16934,16970,17006,17041,17076,17087,17102,17126,17154],{"type":52,"tag":160,"props":16663,"children":16664},{"class":162,"line":163},[16665],{"type":52,"tag":160,"props":16666,"children":16667},{"style":4181},[16668],{"type":58,"value":10608},{"type":52,"tag":160,"props":16670,"children":16671},{"class":162,"line":281},[16672,16676,16680,16685,16689,16693],{"type":52,"tag":160,"props":16673,"children":16674},{"style":1771},[16675],{"type":58,"value":16278},{"type":52,"tag":160,"props":16677,"children":16678},{"style":4080},[16679],{"type":58,"value":3931},{"type":52,"tag":160,"props":16681,"children":16682},{"style":1771},[16683],{"type":58,"value":16684},"time",{"type":52,"tag":160,"props":16686,"children":16687},{"style":4181},[16688],{"type":58,"value":10630},{"type":52,"tag":160,"props":16690,"children":16691},{"style":4080},[16692],{"type":58,"value":16200},{"type":52,"tag":160,"props":16694,"children":16695},{"style":10416},[16696],{"type":58,"value":16205},{"type":52,"tag":160,"props":16698,"children":16699},{"class":162,"line":290},[16700,16705,16709,16714,16718,16722],{"type":52,"tag":160,"props":16701,"children":16702},{"style":1771},[16703],{"type":58,"value":16704},"    COUNT",{"type":52,"tag":160,"props":16706,"children":16707},{"style":4080},[16708],{"type":58,"value":10763},{"type":52,"tag":160,"props":16710,"children":16711},{"style":4181},[16712],{"type":58,"value":16713},"*",{"type":52,"tag":160,"props":16715,"children":16716},{"style":4080},[16717],{"type":58,"value":11279},{"type":52,"tag":160,"props":16719,"children":16720},{"style":4181},[16721],{"type":58,"value":10814},{"type":52,"tag":160,"props":16723,"children":16724},{"style":4080},[16725],{"type":58,"value":16230},{"type":52,"tag":160,"props":16727,"children":16728},{"class":162,"line":299},[16729,16733,16737,16741,16746,16750,16754,16759,16763,16768,16773,16778,16783,16787,16791],{"type":52,"tag":160,"props":16730,"children":16731},{"style":1771},[16732],{"type":58,"value":16704},{"type":52,"tag":160,"props":16734,"children":16735},{"style":4080},[16736],{"type":58,"value":10763},{"type":52,"tag":160,"props":16738,"children":16739},{"style":4181},[16740],{"type":58,"value":16151},{"type":52,"tag":160,"props":16742,"children":16743},{"style":4181},[16744],{"type":58,"value":16745}," WHEN",{"type":52,"tag":160,"props":16747,"children":16748},{"style":1771},[16749],{"type":58,"value":16602},{"type":52,"tag":160,"props":16751,"children":16752},{"style":4080},[16753],{"type":58,"value":3931},{"type":52,"tag":160,"props":16755,"children":16756},{"style":1771},[16757],{"type":58,"value":16758},"is_new_user",{"type":52,"tag":160,"props":16760,"children":16761},{"style":4181},[16762],{"type":58,"value":11235},{"type":52,"tag":160,"props":16764,"children":16765},{"style":4080},[16766],{"type":58,"value":16767}," true ",{"type":52,"tag":160,"props":16769,"children":16770},{"style":4181},[16771],{"type":58,"value":16772},"THEN",{"type":52,"tag":160,"props":16774,"children":16775},{"style":1771},[16776],{"type":58,"value":16777}," 1",{"type":52,"tag":160,"props":16779,"children":16780},{"style":4181},[16781],{"type":58,"value":16782}," END",{"type":52,"tag":160,"props":16784,"children":16785},{"style":4080},[16786],{"type":58,"value":11279},{"type":52,"tag":160,"props":16788,"children":16789},{"style":4181},[16790],{"type":58,"value":10814},{"type":52,"tag":160,"props":16792,"children":16793},{"style":4080},[16794],{"type":58,"value":16795}," new_users,\n",{"type":52,"tag":160,"props":16797,"children":16798},{"class":162,"line":27},[16799,16803,16807,16811,16815,16819,16823,16828,16833,16838,16842,16846,16850,16854,16858],{"type":52,"tag":160,"props":16800,"children":16801},{"style":1771},[16802],{"type":58,"value":16704},{"type":52,"tag":160,"props":16804,"children":16805},{"style":4080},[16806],{"type":58,"value":10763},{"type":52,"tag":160,"props":16808,"children":16809},{"style":4181},[16810],{"type":58,"value":16151},{"type":52,"tag":160,"props":16812,"children":16813},{"style":4181},[16814],{"type":58,"value":16745},{"type":52,"tag":160,"props":16816,"children":16817},{"style":1771},[16818],{"type":58,"value":16602},{"type":52,"tag":160,"props":16820,"children":16821},{"style":4080},[16822],{"type":58,"value":3931},{"type":52,"tag":160,"props":16824,"children":16825},{"style":1771},[16826],{"type":58,"value":16827},"session_duration",{"type":52,"tag":160,"props":16829,"children":16830},{"style":4181},[16831],{"type":58,"value":16832}," >",{"type":52,"tag":160,"props":16834,"children":16835},{"style":1771},[16836],{"type":58,"value":16837}," 10",{"type":52,"tag":160,"props":16839,"children":16840},{"style":4181},[16841],{"type":58,"value":16340},{"type":52,"tag":160,"props":16843,"children":16844},{"style":1771},[16845],{"type":58,"value":16777},{"type":52,"tag":160,"props":16847,"children":16848},{"style":4181},[16849],{"type":58,"value":16782},{"type":52,"tag":160,"props":16851,"children":16852},{"style":4080},[16853],{"type":58,"value":11279},{"type":52,"tag":160,"props":16855,"children":16856},{"style":4181},[16857],{"type":58,"value":10814},{"type":52,"tag":160,"props":16859,"children":16860},{"style":4080},[16861],{"type":58,"value":16862}," engaged_sessions,\n",{"type":52,"tag":160,"props":16864,"children":16865},{"class":162,"line":316},[16866,16870,16874,16878,16882,16886,16890,16894,16898,16903,16907,16911,16915,16919,16923],{"type":52,"tag":160,"props":16867,"children":16868},{"style":1771},[16869],{"type":58,"value":16704},{"type":52,"tag":160,"props":16871,"children":16872},{"style":4080},[16873],{"type":58,"value":10763},{"type":52,"tag":160,"props":16875,"children":16876},{"style":4181},[16877],{"type":58,"value":16151},{"type":52,"tag":160,"props":16879,"children":16880},{"style":4181},[16881],{"type":58,"value":16745},{"type":52,"tag":160,"props":16883,"children":16884},{"style":1771},[16885],{"type":58,"value":16602},{"type":52,"tag":160,"props":16887,"children":16888},{"style":4080},[16889],{"type":58,"value":3931},{"type":52,"tag":160,"props":16891,"children":16892},{"style":1771},[16893],{"type":58,"value":16630},{"type":52,"tag":160,"props":16895,"children":16896},{"style":4181},[16897],{"type":58,"value":11235},{"type":52,"tag":160,"props":16899,"children":16900},{"style":173},[16901],{"type":58,"value":16902}," 'purchase'",{"type":52,"tag":160,"props":16904,"children":16905},{"style":4181},[16906],{"type":58,"value":16340},{"type":52,"tag":160,"props":16908,"children":16909},{"style":1771},[16910],{"type":58,"value":16777},{"type":52,"tag":160,"props":16912,"children":16913},{"style":4181},[16914],{"type":58,"value":16782},{"type":52,"tag":160,"props":16916,"children":16917},{"style":4080},[16918],{"type":58,"value":11279},{"type":52,"tag":160,"props":16920,"children":16921},{"style":4181},[16922],{"type":58,"value":10814},{"type":52,"tag":160,"props":16924,"children":16925},{"style":4080},[16926],{"type":58,"value":16296},{"type":52,"tag":160,"props":16928,"children":16929},{"class":162,"line":325},[16930],{"type":52,"tag":160,"props":16931,"children":16932},{"style":4181},[16933],{"type":58,"value":16304},{"type":52,"tag":160,"props":16935,"children":16936},{"class":162,"line":334},[16937,16941,16945,16949,16954,16958,16962,16966],{"type":52,"tag":160,"props":16938,"children":16939},{"style":4181},[16940],{"type":58,"value":16312},{"type":52,"tag":160,"props":16942,"children":16943},{"style":1771},[16944],{"type":58,"value":16602},{"type":52,"tag":160,"props":16946,"children":16947},{"style":4080},[16948],{"type":58,"value":3931},{"type":52,"tag":160,"props":16950,"children":16951},{"style":1771},[16952],{"type":58,"value":16953},"utm_source",{"type":52,"tag":160,"props":16955,"children":16956},{"style":4181},[16957],{"type":58,"value":11235},{"type":52,"tag":160,"props":16959,"children":16960},{"style":173},[16961],{"type":58,"value":16335},{"type":52,"tag":160,"props":16963,"children":16964},{"style":4181},[16965],{"type":58,"value":16340},{"type":52,"tag":160,"props":16967,"children":16968},{"style":173},[16969],{"type":58,"value":16345},{"type":52,"tag":160,"props":16971,"children":16972},{"class":162,"line":343},[16973,16977,16981,16985,16990,16994,16998,17002],{"type":52,"tag":160,"props":16974,"children":16975},{"style":4181},[16976],{"type":58,"value":16312},{"type":52,"tag":160,"props":16978,"children":16979},{"style":1771},[16980],{"type":58,"value":16602},{"type":52,"tag":160,"props":16982,"children":16983},{"style":4080},[16984],{"type":58,"value":3931},{"type":52,"tag":160,"props":16986,"children":16987},{"style":1771},[16988],{"type":58,"value":16989},"utm_medium",{"type":52,"tag":160,"props":16991,"children":16992},{"style":4181},[16993],{"type":58,"value":11235},{"type":52,"tag":160,"props":16995,"children":16996},{"style":173},[16997],{"type":58,"value":16374},{"type":52,"tag":160,"props":16999,"children":17000},{"style":4181},[17001],{"type":58,"value":16340},{"type":52,"tag":160,"props":17003,"children":17004},{"style":173},[17005],{"type":58,"value":16383},{"type":52,"tag":160,"props":17007,"children":17008},{"class":162,"line":11},[17009,17013,17017,17021,17025,17029,17033,17037],{"type":52,"tag":160,"props":17010,"children":17011},{"style":4181},[17012],{"type":58,"value":16312},{"type":52,"tag":160,"props":17014,"children":17015},{"style":1771},[17016],{"type":58,"value":16602},{"type":52,"tag":160,"props":17018,"children":17019},{"style":4080},[17020],{"type":58,"value":3931},{"type":52,"tag":160,"props":17022,"children":17023},{"style":1771},[17024],{"type":58,"value":16989},{"type":52,"tag":160,"props":17026,"children":17027},{"style":4181},[17028],{"type":58,"value":11235},{"type":52,"tag":160,"props":17030,"children":17031},{"style":173},[17032],{"type":58,"value":16411},{"type":52,"tag":160,"props":17034,"children":17035},{"style":4181},[17036],{"type":58,"value":16340},{"type":52,"tag":160,"props":17038,"children":17039},{"style":173},[17040],{"type":58,"value":16420},{"type":52,"tag":160,"props":17042,"children":17043},{"class":162,"line":359},[17044,17048,17052,17056,17060,17064,17068,17072],{"type":52,"tag":160,"props":17045,"children":17046},{"style":4181},[17047],{"type":58,"value":16312},{"type":52,"tag":160,"props":17049,"children":17050},{"style":1771},[17051],{"type":58,"value":16602},{"type":52,"tag":160,"props":17053,"children":17054},{"style":4080},[17055],{"type":58,"value":3931},{"type":52,"tag":160,"props":17057,"children":17058},{"style":1771},[17059],{"type":58,"value":16989},{"type":52,"tag":160,"props":17061,"children":17062},{"style":4181},[17063],{"type":58,"value":11235},{"type":52,"tag":160,"props":17065,"children":17066},{"style":173},[17067],{"type":58,"value":16448},{"type":52,"tag":160,"props":17069,"children":17070},{"style":4181},[17071],{"type":58,"value":16340},{"type":52,"tag":160,"props":17073,"children":17074},{"style":173},[17075],{"type":58,"value":16457},{"type":52,"tag":160,"props":17077,"children":17078},{"class":162,"line":368},[17079,17083],{"type":52,"tag":160,"props":17080,"children":17081},{"style":4181},[17082],{"type":58,"value":16502},{"type":52,"tag":160,"props":17084,"children":17085},{"style":173},[17086],{"type":58,"value":16507},{"type":52,"tag":160,"props":17088,"children":17089},{"class":162,"line":377},[17090,17094,17098],{"type":52,"tag":160,"props":17091,"children":17092},{"style":4181},[17093],{"type":58,"value":16515},{"type":52,"tag":160,"props":17095,"children":17096},{"style":4181},[17097],{"type":58,"value":10630},{"type":52,"tag":160,"props":17099,"children":17100},{"style":4080},[17101],{"type":58,"value":16524},{"type":52,"tag":160,"props":17103,"children":17104},{"class":162,"line":386},[17105,17109,17113,17117,17122],{"type":52,"tag":160,"props":17106,"children":17107},{"style":4181},[17108],{"type":58,"value":11165},{"type":52,"tag":160,"props":17110,"children":17111},{"style":1771},[17112],{"type":58,"value":11170},{"type":52,"tag":160,"props":17114,"children":17115},{"style":4080},[17116],{"type":58,"value":3931},{"type":52,"tag":160,"props":17118,"children":17119},{"style":1771},[17120],{"type":58,"value":17121},"mixpanel_events",{"type":52,"tag":160,"props":17123,"children":17124},{"style":4080},[17125],{"type":58,"value":16574},{"type":52,"tag":160,"props":17127,"children":17128},{"class":162,"line":395},[17129,17133,17137,17141,17145,17149],{"type":52,"tag":160,"props":17130,"children":17131},{"style":4181},[17132],{"type":58,"value":12134},{"type":52,"tag":160,"props":17134,"children":17135},{"style":1771},[17136],{"type":58,"value":16602},{"type":52,"tag":160,"props":17138,"children":17139},{"style":4080},[17140],{"type":58,"value":3931},{"type":52,"tag":160,"props":17142,"children":17143},{"style":1771},[17144],{"type":58,"value":16630},{"type":52,"tag":160,"props":17146,"children":17147},{"style":4181},[17148],{"type":58,"value":11235},{"type":52,"tag":160,"props":17150,"children":17151},{"style":173},[17152],{"type":58,"value":17153}," 'session_start'\n",{"type":52,"tag":160,"props":17155,"children":17156},{"class":162,"line":404},[17157,17162],{"type":52,"tag":160,"props":17158,"children":17159},{"style":4181},[17160],{"type":58,"value":17161},"GROUP BY",{"type":52,"tag":160,"props":17163,"children":17164},{"style":4080},[17165],{"type":58,"value":17166}," session_raw_date, channel\n",{"type":52,"tag":5704,"props":17168,"children":17170},{"id":17169},"warehouse-date-casting",[17171],{"type":58,"value":17172},"Warehouse date casting",{"type":52,"tag":107,"props":17174,"children":17175},{},[17176,17178,17184,17186,17191,17192,17197,17199,17204],{"type":58,"value":17177},"Wrap the source query above in the Bruin asset header and apply the correct date function for your warehouse. Update the ",{"type":52,"tag":71,"props":17179,"children":17181},{"className":17180},[],[17182],{"type":58,"value":17183},"depends:",{"type":58,"value":17185}," list to match the analytics tool you chose above (GA4 uses ",{"type":52,"tag":71,"props":17187,"children":17189},{"className":17188},[],[17190],{"type":58,"value":16117},{"type":58,"value":9803},{"type":52,"tag":71,"props":17193,"children":17195},{"className":17194},[],[17196],{"type":58,"value":16124},{"type":58,"value":17198},"; Mixpanel uses ",{"type":52,"tag":71,"props":17200,"children":17202},{"className":17201},[],[17203],{"type":58,"value":16132},{"type":58,"value":17205},"):",{"type":52,"tag":253,"props":17207,"children":17208},{":variants":255,"group":256},[17209,17372,17531],{"type":52,"tag":259,"props":17210,"children":17211},{"v-slot:clickhouse":7},[17212,17224],{"type":52,"tag":107,"props":17213,"children":17214},{},[17215,17217,17222],{"type":58,"value":17216},"Use ",{"type":52,"tag":71,"props":17218,"children":17220},{"className":17219},[],[17221],{"type":58,"value":14369},{"type":58,"value":17223}," for the date column:",{"type":52,"tag":150,"props":17225,"children":17227},{"className":10404,"code":17226,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_web_sessions\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.ga4_sessions       -- GA4: use raw.ga4_sessions and raw.ga4_events\n  - raw.ga4_events         -- Mixpanel: replace both with raw.mixpanel_events\ncolumns:\n  - name: session_date\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nSELECT\n    toDate(session_raw_date) AS session_date,\n    -- ... rest of columns from source query above\n",[17228],{"type":52,"tag":71,"props":17229,"children":17230},{"__ignoreMap":7},[17231,17238,17246,17253,17260,17267,17274,17282,17290,17297,17305,17312,17319,17326,17333,17340,17347,17364],{"type":52,"tag":160,"props":17232,"children":17233},{"class":162,"line":163},[17234],{"type":52,"tag":160,"props":17235,"children":17236},{"style":10416},[17237],{"type":58,"value":10419},{"type":52,"tag":160,"props":17239,"children":17240},{"class":162,"line":281},[17241],{"type":52,"tag":160,"props":17242,"children":17243},{"style":10416},[17244],{"type":58,"value":17245},"name: staging.stg_web_sessions\n",{"type":52,"tag":160,"props":17247,"children":17248},{"class":162,"line":290},[17249],{"type":52,"tag":160,"props":17250,"children":17251},{"style":10416},[17252],{"type":58,"value":10435},{"type":52,"tag":160,"props":17254,"children":17255},{"class":162,"line":299},[17256],{"type":52,"tag":160,"props":17257,"children":17258},{"style":10416},[17259],{"type":58,"value":10443},{"type":52,"tag":160,"props":17261,"children":17262},{"class":162,"line":27},[17263],{"type":52,"tag":160,"props":17264,"children":17265},{"style":10416},[17266],{"type":58,"value":10451},{"type":52,"tag":160,"props":17268,"children":17269},{"class":162,"line":316},[17270],{"type":52,"tag":160,"props":17271,"children":17272},{"style":10416},[17273],{"type":58,"value":10459},{"type":52,"tag":160,"props":17275,"children":17276},{"class":162,"line":325},[17277],{"type":52,"tag":160,"props":17278,"children":17279},{"style":10416},[17280],{"type":58,"value":17281},"  - raw.ga4_sessions       -- GA4: use raw.ga4_sessions and raw.ga4_events\n",{"type":52,"tag":160,"props":17283,"children":17284},{"class":162,"line":334},[17285],{"type":52,"tag":160,"props":17286,"children":17287},{"style":10416},[17288],{"type":58,"value":17289},"  - raw.ga4_events         -- Mixpanel: replace both with raw.mixpanel_events\n",{"type":52,"tag":160,"props":17291,"children":17292},{"class":162,"line":343},[17293],{"type":52,"tag":160,"props":17294,"children":17295},{"style":10416},[17296],{"type":58,"value":10483},{"type":52,"tag":160,"props":17298,"children":17299},{"class":162,"line":11},[17300],{"type":52,"tag":160,"props":17301,"children":17302},{"style":10416},[17303],{"type":58,"value":17304},"  - name: session_date\n",{"type":52,"tag":160,"props":17306,"children":17307},{"class":162,"line":359},[17308],{"type":52,"tag":160,"props":17309,"children":17310},{"style":10416},[17311],{"type":58,"value":14479},{"type":52,"tag":160,"props":17313,"children":17314},{"class":162,"line":368},[17315],{"type":52,"tag":160,"props":17316,"children":17317},{"style":10416},[17318],{"type":58,"value":10507},{"type":52,"tag":160,"props":17320,"children":17321},{"class":162,"line":377},[17322],{"type":52,"tag":160,"props":17323,"children":17324},{"style":10416},[17325],{"type":58,"value":10515},{"type":52,"tag":160,"props":17327,"children":17328},{"class":162,"line":386},[17329],{"type":52,"tag":160,"props":17330,"children":17331},{"style":10416},[17332],{"type":58,"value":10593},{"type":52,"tag":160,"props":17334,"children":17335},{"class":162,"line":395},[17336],{"type":52,"tag":160,"props":17337,"children":17338},{"emptyLinePlaceholder":26},[17339],{"type":58,"value":287},{"type":52,"tag":160,"props":17341,"children":17342},{"class":162,"line":404},[17343],{"type":52,"tag":160,"props":17344,"children":17345},{"style":4181},[17346],{"type":58,"value":10608},{"type":52,"tag":160,"props":17348,"children":17349},{"class":162,"line":413},[17350,17355,17359],{"type":52,"tag":160,"props":17351,"children":17352},{"style":4080},[17353],{"type":58,"value":17354},"    toDate(session_raw_date) ",{"type":52,"tag":160,"props":17356,"children":17357},{"style":4181},[17358],{"type":58,"value":10814},{"type":52,"tag":160,"props":17360,"children":17361},{"style":4080},[17362],{"type":58,"value":17363}," session_date,\n",{"type":52,"tag":160,"props":17365,"children":17366},{"class":162,"line":422},[17367],{"type":52,"tag":160,"props":17368,"children":17369},{"style":10416},[17370],{"type":58,"value":17371},"    -- ... rest of columns from source query above\n",{"type":52,"tag":259,"props":17373,"children":17374},{"v-slot:bigquery":7},[17375,17385],{"type":52,"tag":107,"props":17376,"children":17377},{},[17378,17379,17384],{"type":58,"value":17216},{"type":52,"tag":71,"props":17380,"children":17382},{"className":17381},[],[17383],{"type":58,"value":14377},{"type":58,"value":17223},{"type":52,"tag":150,"props":17386,"children":17388},{"className":10404,"code":17387,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_web_sessions\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.ga4_sessions       -- GA4: use raw.ga4_sessions and raw.ga4_events\n  - raw.ga4_events         -- Mixpanel: replace both with raw.mixpanel_events\ncolumns:\n  - name: session_date\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nSELECT\n    DATE(session_raw_date) AS session_date,\n    -- ... rest of columns from source query above\n",[17389],{"type":52,"tag":71,"props":17390,"children":17391},{"__ignoreMap":7},[17392,17399,17406,17413,17420,17427,17434,17441,17448,17455,17462,17469,17476,17483,17490,17497,17504,17524],{"type":52,"tag":160,"props":17393,"children":17394},{"class":162,"line":163},[17395],{"type":52,"tag":160,"props":17396,"children":17397},{"style":10416},[17398],{"type":58,"value":10419},{"type":52,"tag":160,"props":17400,"children":17401},{"class":162,"line":281},[17402],{"type":52,"tag":160,"props":17403,"children":17404},{"style":10416},[17405],{"type":58,"value":17245},{"type":52,"tag":160,"props":17407,"children":17408},{"class":162,"line":290},[17409],{"type":52,"tag":160,"props":17410,"children":17411},{"style":10416},[17412],{"type":58,"value":10435},{"type":52,"tag":160,"props":17414,"children":17415},{"class":162,"line":299},[17416],{"type":52,"tag":160,"props":17417,"children":17418},{"style":10416},[17419],{"type":58,"value":10443},{"type":52,"tag":160,"props":17421,"children":17422},{"class":162,"line":27},[17423],{"type":52,"tag":160,"props":17424,"children":17425},{"style":10416},[17426],{"type":58,"value":10451},{"type":52,"tag":160,"props":17428,"children":17429},{"class":162,"line":316},[17430],{"type":52,"tag":160,"props":17431,"children":17432},{"style":10416},[17433],{"type":58,"value":10459},{"type":52,"tag":160,"props":17435,"children":17436},{"class":162,"line":325},[17437],{"type":52,"tag":160,"props":17438,"children":17439},{"style":10416},[17440],{"type":58,"value":17281},{"type":52,"tag":160,"props":17442,"children":17443},{"class":162,"line":334},[17444],{"type":52,"tag":160,"props":17445,"children":17446},{"style":10416},[17447],{"type":58,"value":17289},{"type":52,"tag":160,"props":17449,"children":17450},{"class":162,"line":343},[17451],{"type":52,"tag":160,"props":17452,"children":17453},{"style":10416},[17454],{"type":58,"value":10483},{"type":52,"tag":160,"props":17456,"children":17457},{"class":162,"line":11},[17458],{"type":52,"tag":160,"props":17459,"children":17460},{"style":10416},[17461],{"type":58,"value":17304},{"type":52,"tag":160,"props":17463,"children":17464},{"class":162,"line":359},[17465],{"type":52,"tag":160,"props":17466,"children":17467},{"style":10416},[17468],{"type":58,"value":14479},{"type":52,"tag":160,"props":17470,"children":17471},{"class":162,"line":368},[17472],{"type":52,"tag":160,"props":17473,"children":17474},{"style":10416},[17475],{"type":58,"value":10507},{"type":52,"tag":160,"props":17477,"children":17478},{"class":162,"line":377},[17479],{"type":52,"tag":160,"props":17480,"children":17481},{"style":10416},[17482],{"type":58,"value":10515},{"type":52,"tag":160,"props":17484,"children":17485},{"class":162,"line":386},[17486],{"type":52,"tag":160,"props":17487,"children":17488},{"style":10416},[17489],{"type":58,"value":10593},{"type":52,"tag":160,"props":17491,"children":17492},{"class":162,"line":395},[17493],{"type":52,"tag":160,"props":17494,"children":17495},{"emptyLinePlaceholder":26},[17496],{"type":58,"value":287},{"type":52,"tag":160,"props":17498,"children":17499},{"class":162,"line":404},[17500],{"type":52,"tag":160,"props":17501,"children":17502},{"style":4181},[17503],{"type":58,"value":10608},{"type":52,"tag":160,"props":17505,"children":17506},{"class":162,"line":413},[17507,17511,17516,17520],{"type":52,"tag":160,"props":17508,"children":17509},{"style":4181},[17510],{"type":58,"value":14530},{"type":52,"tag":160,"props":17512,"children":17513},{"style":4080},[17514],{"type":58,"value":17515},"(session_raw_date) ",{"type":52,"tag":160,"props":17517,"children":17518},{"style":4181},[17519],{"type":58,"value":10814},{"type":52,"tag":160,"props":17521,"children":17522},{"style":4080},[17523],{"type":58,"value":17363},{"type":52,"tag":160,"props":17525,"children":17526},{"class":162,"line":422},[17527],{"type":52,"tag":160,"props":17528,"children":17529},{"style":10416},[17530],{"type":58,"value":17371},{"type":52,"tag":259,"props":17532,"children":17533},{"v-slot:snowflake":7},[17534,17544],{"type":52,"tag":107,"props":17535,"children":17536},{},[17537,17538,17543],{"type":58,"value":17216},{"type":52,"tag":71,"props":17539,"children":17541},{"className":17540},[],[17542],{"type":58,"value":14384},{"type":58,"value":17223},{"type":52,"tag":150,"props":17545,"children":17547},{"className":10404,"code":17546,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: staging.stg_web_sessions\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - raw.ga4_sessions       -- GA4: use raw.ga4_sessions and raw.ga4_events\n  - raw.ga4_events         -- Mixpanel: replace both with raw.mixpanel_events\ncolumns:\n  - name: session_date\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nSELECT\n    session_raw_date::DATE AS session_date,\n    -- ... rest of columns from source query above\n",[17548],{"type":52,"tag":71,"props":17549,"children":17550},{"__ignoreMap":7},[17551,17558,17565,17572,17579,17586,17593,17600,17607,17614,17621,17628,17635,17642,17649,17656,17663,17683],{"type":52,"tag":160,"props":17552,"children":17553},{"class":162,"line":163},[17554],{"type":52,"tag":160,"props":17555,"children":17556},{"style":10416},[17557],{"type":58,"value":10419},{"type":52,"tag":160,"props":17559,"children":17560},{"class":162,"line":281},[17561],{"type":52,"tag":160,"props":17562,"children":17563},{"style":10416},[17564],{"type":58,"value":17245},{"type":52,"tag":160,"props":17566,"children":17567},{"class":162,"line":290},[17568],{"type":52,"tag":160,"props":17569,"children":17570},{"style":10416},[17571],{"type":58,"value":10435},{"type":52,"tag":160,"props":17573,"children":17574},{"class":162,"line":299},[17575],{"type":52,"tag":160,"props":17576,"children":17577},{"style":10416},[17578],{"type":58,"value":10443},{"type":52,"tag":160,"props":17580,"children":17581},{"class":162,"line":27},[17582],{"type":52,"tag":160,"props":17583,"children":17584},{"style":10416},[17585],{"type":58,"value":10451},{"type":52,"tag":160,"props":17587,"children":17588},{"class":162,"line":316},[17589],{"type":52,"tag":160,"props":17590,"children":17591},{"style":10416},[17592],{"type":58,"value":10459},{"type":52,"tag":160,"props":17594,"children":17595},{"class":162,"line":325},[17596],{"type":52,"tag":160,"props":17597,"children":17598},{"style":10416},[17599],{"type":58,"value":17281},{"type":52,"tag":160,"props":17601,"children":17602},{"class":162,"line":334},[17603],{"type":52,"tag":160,"props":17604,"children":17605},{"style":10416},[17606],{"type":58,"value":17289},{"type":52,"tag":160,"props":17608,"children":17609},{"class":162,"line":343},[17610],{"type":52,"tag":160,"props":17611,"children":17612},{"style":10416},[17613],{"type":58,"value":10483},{"type":52,"tag":160,"props":17615,"children":17616},{"class":162,"line":11},[17617],{"type":52,"tag":160,"props":17618,"children":17619},{"style":10416},[17620],{"type":58,"value":17304},{"type":52,"tag":160,"props":17622,"children":17623},{"class":162,"line":359},[17624],{"type":52,"tag":160,"props":17625,"children":17626},{"style":10416},[17627],{"type":58,"value":14479},{"type":52,"tag":160,"props":17629,"children":17630},{"class":162,"line":368},[17631],{"type":52,"tag":160,"props":17632,"children":17633},{"style":10416},[17634],{"type":58,"value":10507},{"type":52,"tag":160,"props":17636,"children":17637},{"class":162,"line":377},[17638],{"type":52,"tag":160,"props":17639,"children":17640},{"style":10416},[17641],{"type":58,"value":10515},{"type":52,"tag":160,"props":17643,"children":17644},{"class":162,"line":386},[17645],{"type":52,"tag":160,"props":17646,"children":17647},{"style":10416},[17648],{"type":58,"value":10593},{"type":52,"tag":160,"props":17650,"children":17651},{"class":162,"line":395},[17652],{"type":52,"tag":160,"props":17653,"children":17654},{"emptyLinePlaceholder":26},[17655],{"type":58,"value":287},{"type":52,"tag":160,"props":17657,"children":17658},{"class":162,"line":404},[17659],{"type":52,"tag":160,"props":17660,"children":17661},{"style":4181},[17662],{"type":58,"value":10608},{"type":52,"tag":160,"props":17664,"children":17665},{"class":162,"line":413},[17666,17671,17675,17679],{"type":52,"tag":160,"props":17667,"children":17668},{"style":4080},[17669],{"type":58,"value":17670},"    session_raw_date::",{"type":52,"tag":160,"props":17672,"children":17673},{"style":4181},[17674],{"type":58,"value":13073},{"type":52,"tag":160,"props":17676,"children":17677},{"style":4181},[17678],{"type":58,"value":10630},{"type":52,"tag":160,"props":17680,"children":17681},{"style":4080},[17682],{"type":58,"value":17363},{"type":52,"tag":160,"props":17684,"children":17685},{"class":162,"line":422},[17686],{"type":52,"tag":160,"props":17687,"children":17688},{"style":10416},[17689],{"type":58,"value":17371},{"type":52,"tag":4021,"props":17691,"children":17692},{},[17693],{"type":52,"tag":107,"props":17694,"children":17695},{},[17696],{"type":58,"value":17697},"The web sessions query needs both the right source columns (GA4 vs Mixpanel) and the right date cast for your warehouse. Ask Claude Code to generate the combined SQL for your specific stack - it will inspect your raw tables and write the correct query.",{"type":52,"tag":131,"props":17699,"children":17701},{"id":17700},"validate-and-run-the-staging-layer",[17702],{"type":58,"value":17703},"Validate and run the staging layer",{"type":52,"tag":150,"props":17705,"children":17706},{"className":152,"code":5280,"language":154,"meta":7,"style":7},[17707],{"type":52,"tag":71,"props":17708,"children":17709},{"__ignoreMap":7},[17710],{"type":52,"tag":160,"props":17711,"children":17712},{"class":162,"line":163},[17713,17717,17721],{"type":52,"tag":160,"props":17714,"children":17715},{"style":167},[17716],{"type":58,"value":170},{"type":52,"tag":160,"props":17718,"children":17719},{"style":173},[17720],{"type":58,"value":5296},{"type":52,"tag":160,"props":17722,"children":17723},{"style":173},[17724],{"type":58,"value":5301},{"type":52,"tag":107,"props":17726,"children":17727},{},[17728],{"type":58,"value":17729},"Fix any errors, then run with the same small date range you used in Step 2:",{"type":52,"tag":150,"props":17731,"children":17732},{"className":152,"code":9750,"language":154,"meta":7,"style":7},[17733],{"type":52,"tag":71,"props":17734,"children":17735},{"__ignoreMap":7},[17736],{"type":52,"tag":160,"props":17737,"children":17738},{"class":162,"line":163},[17739,17743,17747,17751,17755,17759,17763],{"type":52,"tag":160,"props":17740,"children":17741},{"style":167},[17742],{"type":58,"value":170},{"type":52,"tag":160,"props":17744,"children":17745},{"style":173},[17746],{"type":58,"value":9766},{"type":52,"tag":160,"props":17748,"children":17749},{"style":1771},[17750],{"type":58,"value":9771},{"type":52,"tag":160,"props":17752,"children":17753},{"style":173},[17754],{"type":58,"value":9776},{"type":52,"tag":160,"props":17756,"children":17757},{"style":1771},[17758],{"type":58,"value":9781},{"type":52,"tag":160,"props":17760,"children":17761},{"style":173},[17762],{"type":58,"value":9786},{"type":52,"tag":160,"props":17764,"children":17765},{"style":173},[17766],{"type":58,"value":5301},{"type":52,"tag":107,"props":17768,"children":17769},{},[17770,17772,17776],{"type":58,"value":17771},"Bruin executes ",{"type":52,"tag":1876,"props":17773,"children":17774},{"href":3986},[17775],{"type":58,"value":3989},{"type":58,"value":17777}," in dependency order - ingestors first, then staging. You can also run just one asset to test it:",{"type":52,"tag":150,"props":17779,"children":17781},{"className":152,"code":17780,"language":154,"meta":7,"style":7},"bruin run --start-date 2025-01-01 --end-date 2025-02-01 ecommerce\u002Fassets\u002Fstaging\u002Fstg_orders.sql\n",[17782],{"type":52,"tag":71,"props":17783,"children":17784},{"__ignoreMap":7},[17785],{"type":52,"tag":160,"props":17786,"children":17787},{"class":162,"line":163},[17788,17792,17796,17800,17804,17808,17812],{"type":52,"tag":160,"props":17789,"children":17790},{"style":167},[17791],{"type":58,"value":170},{"type":52,"tag":160,"props":17793,"children":17794},{"style":173},[17795],{"type":58,"value":9766},{"type":52,"tag":160,"props":17797,"children":17798},{"style":1771},[17799],{"type":58,"value":9771},{"type":52,"tag":160,"props":17801,"children":17802},{"style":173},[17803],{"type":58,"value":9776},{"type":52,"tag":160,"props":17805,"children":17806},{"style":1771},[17807],{"type":58,"value":9781},{"type":52,"tag":160,"props":17809,"children":17810},{"style":173},[17811],{"type":58,"value":9786},{"type":52,"tag":160,"props":17813,"children":17814},{"style":173},[17815],{"type":58,"value":17816}," ecommerce\u002Fassets\u002Fstaging\u002Fstg_orders.sql\n",{"type":52,"tag":131,"props":17818,"children":17820},{"id":17819},"ask-claude-code-to-validate-and-troubleshoot",[17821],{"type":58,"value":17822},"Ask Claude Code to validate and troubleshoot",{"type":52,"tag":107,"props":17824,"children":17825},{},[17826],{"type":58,"value":17827},"After creating the staging assets, ask Claude Code to check everything:",{"type":52,"tag":239,"props":17829,"children":17830},{},[17831],{"type":52,"tag":107,"props":17832,"children":17833},{},[17834],{"type":58,"value":17835},"Run bruin validate on the project. If there are errors in the staging SQL files, look at the raw table schemas and fix the column names.",{"type":52,"tag":107,"props":17837,"children":17838},{},[17839],{"type":58,"value":17840},"If a query fails at runtime, Claude Code can inspect the error and the actual table data:",{"type":52,"tag":239,"props":17842,"children":17843},{},[17844],{"type":52,"tag":107,"props":17845,"children":17846},{},[17847],{"type":58,"value":17848},"The stg_customers asset failed. Query the raw.shopify_customers table to check what columns are actually available, and fix the SQL.",{"type":52,"tag":53,"props":17850,"children":17851},{"id":1999},[17852],{"type":58,"value":2002},{"type":52,"tag":2004,"props":17854,"children":17855},{},[17856,17866,17898,17908],{"type":52,"tag":65,"props":17857,"children":17858},{},[17859,17864],{"type":52,"tag":218,"props":17860,"children":17861},{},[17862],{"type":58,"value":17863},"5 staging tables",{"type":58,"value":17865}," normalize data from your connected SaaS tools into a consistent format",{"type":52,"tag":65,"props":17867,"children":17868},{},[17869,17876,17877,17883,17884,17889,17890,17896],{"type":52,"tag":218,"props":17870,"children":17871},{},[17872],{"type":52,"tag":1876,"props":17873,"children":17874},{"href":3986},[17875],{"type":58,"value":10026},{"type":58,"value":12212},{"type":52,"tag":71,"props":17878,"children":17880},{"className":17879},[],[17881],{"type":58,"value":17882},"not_null",{"type":58,"value":3976},{"type":52,"tag":71,"props":17885,"children":17887},{"className":17886},[],[17888],{"type":58,"value":197},{"type":58,"value":3976},{"type":52,"tag":71,"props":17891,"children":17893},{"className":17892},[],[17894],{"type":58,"value":17895},"has_rows",{"type":58,"value":17897},") run automatically after each asset",{"type":52,"tag":65,"props":17899,"children":17900},{},[17901,17906],{"type":52,"tag":218,"props":17902,"children":17903},{},[17904],{"type":58,"value":17905},"Dependencies",{"type":58,"value":17907}," make sure staging assets wait for their source ingestors to finish",{"type":52,"tag":65,"props":17909,"children":17910},{},[17911,17919,17921,17927],{"type":52,"tag":218,"props":17912,"children":17913},{},[17914],{"type":52,"tag":1876,"props":17915,"children":17916},{"href":3986},[17917],{"type":58,"value":17918},"Materialization",{"type":58,"value":17920}," is set to ",{"type":52,"tag":71,"props":17922,"children":17924},{"className":17923},[],[17925],{"type":58,"value":17926},"table",{"type":58,"value":17928}," - each run rebuilds the staging tables from scratch for consistency",{"type":52,"tag":107,"props":17930,"children":17931},{},[17932,17934,17939],{"type":58,"value":17933},"Your ",{"type":52,"tag":1876,"props":17935,"children":17936},{"href":3979},[17937],{"type":58,"value":17938},"pipeline",{"type":58,"value":17940}," now has two layers: ingestion and staging. Next, you'll add the report layer on top.",{"type":52,"tag":2059,"props":17942,"children":17943},{},[17944],{"type":58,"value":2063},{"title":7,"searchDepth":281,"depth":281,"links":17946},[17947,17948,17949,17964],{"id":55,"depth":281,"text":59},{"id":102,"depth":281,"text":105},{"id":126,"depth":281,"text":129,"children":17950},[17951,17952,17954,17956,17958,17960,17962,17963],{"id":10100,"depth":290,"text":10103},{"id":10277,"depth":290,"text":17953},"1) Staged orders - stg_orders.sql",{"id":13121,"depth":290,"text":17955},"2) Staged customers - stg_customers.sql",{"id":13938,"depth":290,"text":17957},"3) Staged products - stg_products.sql",{"id":14330,"depth":290,"text":17959},"4) Staged marketing spend - stg_marketing_spend.sql",{"id":16072,"depth":290,"text":17961},"5) Staged web sessions - stg_web_sessions.sql",{"id":17700,"depth":290,"text":17703},{"id":17819,"depth":290,"text":17822},{"id":1999,"depth":281,"text":2002},"content:tutorials:ecommerce-pipeline:data-preparation.md","tutorials\u002Fecommerce-pipeline\u002Fdata-preparation.md","tutorials\u002Fecommerce-pipeline\u002Fdata-preparation",{"_path":17969,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":17970,"description":17971,"date":10,"readingTime":395,"category":12,"tags":17972,"difficulty":25,"module":5,"subSteps":26,"step":299,"journeys":17974,"variants":17975,"learnMore":17976,"author":17979,"body":17980,"_type":266,"_id":31263,"_source":2077,"_file":31264,"_stem":31265,"_extension":2080},"\u002Ftutorials\u002Fecommerce-pipeline\u002Fbuild-reports","Build Ecommerce Reports","Create report tables for daily revenue, customer cohorts, product performance, marketing ROI, and a unified KPI dashboard.",[14,15,10018,19,20,21,17973,23],"Analytics",[29,30],[19,20,21],[17977,17978],{"label":10023,"url":10024},{"label":10026,"url":10027},{"name":45,"role":46,"image":47},{"type":49,"children":17981,"toc":31243},[17982,17986,17991,17995,18000,18004,18016,18039,18045,18050,18058,18063,18071,18076,18088,18093,18107,20052,20064,20069,20083,22895,22907,22912,22933,22947,23161,23173,23178,23192,27127,27139,27144,27158,30949,30955,30960,30997,31015,31020,31059,31072,31115,31120,31141,31147,31152,31160,31168,31176,31181,31189,31193,31234,31239],{"type":52,"tag":53,"props":17983,"children":17984},{"id":55},[17985],{"type":58,"value":59},{"type":52,"tag":107,"props":17987,"children":17988},{},[17989],{"type":58,"value":17990},"Build five report tables on top of the staging layer: daily revenue, customer cohorts, product performance, marketing ROI, and a unified daily KPI dashboard.",{"type":52,"tag":53,"props":17992,"children":17993},{"id":102},[17994],{"type":58,"value":105},{"type":52,"tag":107,"props":17996,"children":17997},{},[17998],{"type":58,"value":17999},"Staging tables are clean but they're not answers. They tell you \"what happened\" but not \"how is the business doing.\" Report tables compute the metrics teams actually care about - revenue trends, retention rates, ROAS, and the daily numbers that inform decisions.",{"type":52,"tag":53,"props":18001,"children":18002},{"id":126},[18003],{"type":58,"value":129},{"type":52,"tag":107,"props":18005,"children":18006},{},[18007,18008,18014],{"type":58,"value":10065},{"type":52,"tag":71,"props":18009,"children":18011},{"className":18010},[],[18012],{"type":58,"value":18013},"reports\u002F",{"type":58,"value":18015}," subfolder:",{"type":52,"tag":150,"props":18017,"children":18019},{"className":152,"code":18018,"language":154,"meta":7,"style":7},"mkdir -p ecommerce\u002Fassets\u002Freports\n",[18020],{"type":52,"tag":71,"props":18021,"children":18022},{"__ignoreMap":7},[18023],{"type":52,"tag":160,"props":18024,"children":18025},{"class":162,"line":163},[18026,18030,18034],{"type":52,"tag":160,"props":18027,"children":18028},{"style":167},[18029],{"type":58,"value":4072},{"type":52,"tag":160,"props":18031,"children":18032},{"style":1771},[18033],{"type":58,"value":10092},{"type":52,"tag":160,"props":18035,"children":18036},{"style":173},[18037],{"type":58,"value":18038}," ecommerce\u002Fassets\u002Freports\n",{"type":52,"tag":131,"props":18040,"children":18042},{"id":18041},"let-claude-code-help-with-report-sql",[18043],{"type":58,"value":18044},"Let Claude Code help with report SQL",{"type":52,"tag":107,"props":18046,"children":18047},{},[18048],{"type":58,"value":18049},"Report queries can get complex, especially cohort retention and marketing attribution. You can ask Claude Code to generate any of these:",{"type":52,"tag":239,"props":18051,"children":18052},{},[18053],{"type":52,"tag":107,"props":18054,"children":18055},{},[18056],{"type":58,"value":18057},"Create a Bruin SQL asset for a daily revenue report. It should read from staging.stg_orders and compute total orders, paid orders, gross and net revenue, AOV, and cancellation rate grouped by day. Add quality checks. Put it in ecommerce\u002Fassets\u002Freports\u002Frpt_daily_revenue.sql.",{"type":52,"tag":107,"props":18059,"children":18060},{},[18061],{"type":58,"value":18062},"For the harder reports:",{"type":52,"tag":239,"props":18064,"children":18065},{},[18066],{"type":52,"tag":107,"props":18067,"children":18068},{},[18069],{"type":58,"value":18070},"Write a monthly customer cohort retention query using staging.stg_orders and staging.stg_customers. Group by the month of first purchase, compute retention rate and revenue per customer for each month since first order.",{"type":52,"tag":107,"props":18072,"children":18073},{},[18074],{"type":58,"value":18075},"The examples below show what each report should look like. Select the tab that matches your warehouse.",{"type":52,"tag":131,"props":18077,"children":18079},{"id":18078},"_1-daily-revenue-rpt_daily_revenuesql",[18080,18082],{"type":58,"value":18081},"1) Daily revenue - ",{"type":52,"tag":71,"props":18083,"children":18085},{"className":18084},[],[18086],{"type":58,"value":18087},"rpt_daily_revenue.sql",{"type":52,"tag":107,"props":18089,"children":18090},{},[18091],{"type":58,"value":18092},"The most basic ecommerce report: daily revenue, order count, average order value, and cancellation rate.",{"type":52,"tag":107,"props":18094,"children":18095},{},[18096,18097,18106],{"type":58,"value":10384},{"type":52,"tag":218,"props":18098,"children":18099},{},[18100],{"type":52,"tag":71,"props":18101,"children":18103},{"className":18102},[],[18104],{"type":58,"value":18105},"ecommerce\u002Fassets\u002Freports\u002Frpt_daily_revenue.sql",{"type":58,"value":10395},{"type":52,"tag":253,"props":18108,"children":18109},{":variants":255,"group":256},[18110,18658,19323],{"type":52,"tag":259,"props":18111,"children":18112},{"v-slot:clickhouse":7},[18113],{"type":52,"tag":150,"props":18114,"children":18116},{"className":10404,"code":18115,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_daily_revenue\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_orders\ncolumns:\n  - name: order_date\n    type: date\n    checks:\n      - name: not_null\n      - name: unique\ncustom_checks:\n  - name: has_rows\n    query: \"SELECT count(*) > 0 FROM reports.rpt_daily_revenue\"\n    value: 1\n@bruin *\u002F\n\nSELECT\n    toDate(order_date) AS order_date,\n    count(*) AS total_orders,\n    countIf(payment_status = 'paid') AS paid_orders,\n    countIf(cancel_reason IS NOT NULL) AS cancelled_orders,\n    sum(order_total) AS gross_revenue,\n    sum(CASE WHEN payment_status = 'paid' THEN order_total ELSE 0 END) AS net_revenue,\n    sum(discount_amount) AS total_discounts,\n    sum(tax_amount) AS total_tax,\n    round(net_revenue \u002F nullIf(paid_orders, 0), 2) AS avg_order_value,\n    round(cancelled_orders \u002F nullIf(total_orders, 0) * 100, 2) AS cancellation_rate\nFROM staging.stg_orders\nGROUP BY toDate(order_date)\nORDER BY order_date\n",[18117],{"type":52,"tag":71,"props":18118,"children":18119},{"__ignoreMap":7},[18120,18127,18135,18142,18149,18156,18163,18171,18178,18185,18192,18199,18206,18213,18220,18227,18235,18242,18249,18256,18263,18279,18308,18338,18364,18386,18454,18475,18496,18550,18612,18633,18645],{"type":52,"tag":160,"props":18121,"children":18122},{"class":162,"line":163},[18123],{"type":52,"tag":160,"props":18124,"children":18125},{"style":10416},[18126],{"type":58,"value":10419},{"type":52,"tag":160,"props":18128,"children":18129},{"class":162,"line":281},[18130],{"type":52,"tag":160,"props":18131,"children":18132},{"style":10416},[18133],{"type":58,"value":18134},"name: reports.rpt_daily_revenue\n",{"type":52,"tag":160,"props":18136,"children":18137},{"class":162,"line":290},[18138],{"type":52,"tag":160,"props":18139,"children":18140},{"style":10416},[18141],{"type":58,"value":10435},{"type":52,"tag":160,"props":18143,"children":18144},{"class":162,"line":299},[18145],{"type":52,"tag":160,"props":18146,"children":18147},{"style":10416},[18148],{"type":58,"value":10443},{"type":52,"tag":160,"props":18150,"children":18151},{"class":162,"line":27},[18152],{"type":52,"tag":160,"props":18153,"children":18154},{"style":10416},[18155],{"type":58,"value":10451},{"type":52,"tag":160,"props":18157,"children":18158},{"class":162,"line":316},[18159],{"type":52,"tag":160,"props":18160,"children":18161},{"style":10416},[18162],{"type":58,"value":10459},{"type":52,"tag":160,"props":18164,"children":18165},{"class":162,"line":325},[18166],{"type":52,"tag":160,"props":18167,"children":18168},{"style":10416},[18169],{"type":58,"value":18170},"  - staging.stg_orders\n",{"type":52,"tag":160,"props":18172,"children":18173},{"class":162,"line":334},[18174],{"type":52,"tag":160,"props":18175,"children":18176},{"style":10416},[18177],{"type":58,"value":10483},{"type":52,"tag":160,"props":18179,"children":18180},{"class":162,"line":343},[18181],{"type":52,"tag":160,"props":18182,"children":18183},{"style":10416},[18184],{"type":58,"value":10531},{"type":52,"tag":160,"props":18186,"children":18187},{"class":162,"line":11},[18188],{"type":52,"tag":160,"props":18189,"children":18190},{"style":10416},[18191],{"type":58,"value":14479},{"type":52,"tag":160,"props":18193,"children":18194},{"class":162,"line":359},[18195],{"type":52,"tag":160,"props":18196,"children":18197},{"style":10416},[18198],{"type":58,"value":10507},{"type":52,"tag":160,"props":18200,"children":18201},{"class":162,"line":368},[18202],{"type":52,"tag":160,"props":18203,"children":18204},{"style":10416},[18205],{"type":58,"value":10515},{"type":52,"tag":160,"props":18207,"children":18208},{"class":162,"line":377},[18209],{"type":52,"tag":160,"props":18210,"children":18211},{"style":10416},[18212],{"type":58,"value":10523},{"type":52,"tag":160,"props":18214,"children":18215},{"class":162,"line":386},[18216],{"type":52,"tag":160,"props":18217,"children":18218},{"style":10416},[18219],{"type":58,"value":10561},{"type":52,"tag":160,"props":18221,"children":18222},{"class":162,"line":395},[18223],{"type":52,"tag":160,"props":18224,"children":18225},{"style":10416},[18226],{"type":58,"value":10569},{"type":52,"tag":160,"props":18228,"children":18229},{"class":162,"line":404},[18230],{"type":52,"tag":160,"props":18231,"children":18232},{"style":10416},[18233],{"type":58,"value":18234},"    query: \"SELECT count(*) > 0 FROM reports.rpt_daily_revenue\"\n",{"type":52,"tag":160,"props":18236,"children":18237},{"class":162,"line":413},[18238],{"type":52,"tag":160,"props":18239,"children":18240},{"style":10416},[18241],{"type":58,"value":10585},{"type":52,"tag":160,"props":18243,"children":18244},{"class":162,"line":422},[18245],{"type":52,"tag":160,"props":18246,"children":18247},{"style":10416},[18248],{"type":58,"value":10593},{"type":52,"tag":160,"props":18250,"children":18251},{"class":162,"line":430},[18252],{"type":52,"tag":160,"props":18253,"children":18254},{"emptyLinePlaceholder":26},[18255],{"type":58,"value":287},{"type":52,"tag":160,"props":18257,"children":18258},{"class":162,"line":439},[18259],{"type":52,"tag":160,"props":18260,"children":18261},{"style":4181},[18262],{"type":58,"value":10608},{"type":52,"tag":160,"props":18264,"children":18265},{"class":162,"line":448},[18266,18271,18275],{"type":52,"tag":160,"props":18267,"children":18268},{"style":4080},[18269],{"type":58,"value":18270},"    toDate(order_date) ",{"type":52,"tag":160,"props":18272,"children":18273},{"style":4181},[18274],{"type":58,"value":10814},{"type":52,"tag":160,"props":18276,"children":18277},{"style":4080},[18278],{"type":58,"value":10706},{"type":52,"tag":160,"props":18280,"children":18281},{"class":162,"line":457},[18282,18287,18291,18295,18299,18303],{"type":52,"tag":160,"props":18283,"children":18284},{"style":1771},[18285],{"type":58,"value":18286},"    count",{"type":52,"tag":160,"props":18288,"children":18289},{"style":4080},[18290],{"type":58,"value":10763},{"type":52,"tag":160,"props":18292,"children":18293},{"style":4181},[18294],{"type":58,"value":16713},{"type":52,"tag":160,"props":18296,"children":18297},{"style":4080},[18298],{"type":58,"value":11279},{"type":52,"tag":160,"props":18300,"children":18301},{"style":4181},[18302],{"type":58,"value":10814},{"type":52,"tag":160,"props":18304,"children":18305},{"style":4080},[18306],{"type":58,"value":18307}," total_orders,\n",{"type":52,"tag":160,"props":18309,"children":18310},{"class":162,"line":466},[18311,18316,18320,18325,18329,18333],{"type":52,"tag":160,"props":18312,"children":18313},{"style":4080},[18314],{"type":58,"value":18315},"    countIf(payment_status ",{"type":52,"tag":160,"props":18317,"children":18318},{"style":4181},[18319],{"type":58,"value":11284},{"type":52,"tag":160,"props":18321,"children":18322},{"style":173},[18323],{"type":58,"value":18324}," 'paid'",{"type":52,"tag":160,"props":18326,"children":18327},{"style":4080},[18328],{"type":58,"value":11279},{"type":52,"tag":160,"props":18330,"children":18331},{"style":4181},[18332],{"type":58,"value":10814},{"type":52,"tag":160,"props":18334,"children":18335},{"style":4080},[18336],{"type":58,"value":18337}," paid_orders,\n",{"type":52,"tag":160,"props":18339,"children":18340},{"class":162,"line":474},[18341,18346,18351,18355,18359],{"type":52,"tag":160,"props":18342,"children":18343},{"style":4080},[18344],{"type":58,"value":18345},"    countIf(cancel_reason ",{"type":52,"tag":160,"props":18347,"children":18348},{"style":4181},[18349],{"type":58,"value":18350},"IS NOT NULL",{"type":52,"tag":160,"props":18352,"children":18353},{"style":4080},[18354],{"type":58,"value":11279},{"type":52,"tag":160,"props":18356,"children":18357},{"style":4181},[18358],{"type":58,"value":10814},{"type":52,"tag":160,"props":18360,"children":18361},{"style":4080},[18362],{"type":58,"value":18363}," cancelled_orders,\n",{"type":52,"tag":160,"props":18365,"children":18366},{"class":162,"line":483},[18367,18372,18377,18381],{"type":52,"tag":160,"props":18368,"children":18369},{"style":1771},[18370],{"type":58,"value":18371},"    sum",{"type":52,"tag":160,"props":18373,"children":18374},{"style":4080},[18375],{"type":58,"value":18376},"(order_total) ",{"type":52,"tag":160,"props":18378,"children":18379},{"style":4181},[18380],{"type":58,"value":10814},{"type":52,"tag":160,"props":18382,"children":18383},{"style":4080},[18384],{"type":58,"value":18385}," gross_revenue,\n",{"type":52,"tag":160,"props":18387,"children":18388},{"class":162,"line":492},[18389,18393,18397,18401,18405,18410,18414,18418,18422,18427,18432,18437,18441,18445,18449],{"type":52,"tag":160,"props":18390,"children":18391},{"style":1771},[18392],{"type":58,"value":18371},{"type":52,"tag":160,"props":18394,"children":18395},{"style":4080},[18396],{"type":58,"value":10763},{"type":52,"tag":160,"props":18398,"children":18399},{"style":4181},[18400],{"type":58,"value":16151},{"type":52,"tag":160,"props":18402,"children":18403},{"style":4181},[18404],{"type":58,"value":16745},{"type":52,"tag":160,"props":18406,"children":18407},{"style":4080},[18408],{"type":58,"value":18409}," payment_status ",{"type":52,"tag":160,"props":18411,"children":18412},{"style":4181},[18413],{"type":58,"value":11284},{"type":52,"tag":160,"props":18415,"children":18416},{"style":173},[18417],{"type":58,"value":18324},{"type":52,"tag":160,"props":18419,"children":18420},{"style":4181},[18421],{"type":58,"value":16340},{"type":52,"tag":160,"props":18423,"children":18424},{"style":4080},[18425],{"type":58,"value":18426}," order_total ",{"type":52,"tag":160,"props":18428,"children":18429},{"style":4181},[18430],{"type":58,"value":18431},"ELSE",{"type":52,"tag":160,"props":18433,"children":18434},{"style":1771},[18435],{"type":58,"value":18436}," 0",{"type":52,"tag":160,"props":18438,"children":18439},{"style":4181},[18440],{"type":58,"value":16782},{"type":52,"tag":160,"props":18442,"children":18443},{"style":4080},[18444],{"type":58,"value":11279},{"type":52,"tag":160,"props":18446,"children":18447},{"style":4181},[18448],{"type":58,"value":10814},{"type":52,"tag":160,"props":18450,"children":18451},{"style":4080},[18452],{"type":58,"value":18453}," net_revenue,\n",{"type":52,"tag":160,"props":18455,"children":18456},{"class":162,"line":501},[18457,18461,18466,18470],{"type":52,"tag":160,"props":18458,"children":18459},{"style":1771},[18460],{"type":58,"value":18371},{"type":52,"tag":160,"props":18462,"children":18463},{"style":4080},[18464],{"type":58,"value":18465},"(discount_amount) ",{"type":52,"tag":160,"props":18467,"children":18468},{"style":4181},[18469],{"type":58,"value":10814},{"type":52,"tag":160,"props":18471,"children":18472},{"style":4080},[18473],{"type":58,"value":18474}," total_discounts,\n",{"type":52,"tag":160,"props":18476,"children":18477},{"class":162,"line":510},[18478,18482,18487,18491],{"type":52,"tag":160,"props":18479,"children":18480},{"style":1771},[18481],{"type":58,"value":18371},{"type":52,"tag":160,"props":18483,"children":18484},{"style":4080},[18485],{"type":58,"value":18486},"(tax_amount) ",{"type":52,"tag":160,"props":18488,"children":18489},{"style":4181},[18490],{"type":58,"value":10814},{"type":52,"tag":160,"props":18492,"children":18493},{"style":4080},[18494],{"type":58,"value":18495}," total_tax,\n",{"type":52,"tag":160,"props":18497,"children":18498},{"class":162,"line":519},[18499,18504,18509,18514,18519,18524,18528,18533,18537,18541,18545],{"type":52,"tag":160,"props":18500,"children":18501},{"style":1771},[18502],{"type":58,"value":18503},"    round",{"type":52,"tag":160,"props":18505,"children":18506},{"style":4080},[18507],{"type":58,"value":18508},"(net_revenue ",{"type":52,"tag":160,"props":18510,"children":18511},{"style":4181},[18512],{"type":58,"value":18513},"\u002F",{"type":52,"tag":160,"props":18515,"children":18516},{"style":1771},[18517],{"type":58,"value":18518}," nullIf",{"type":52,"tag":160,"props":18520,"children":18521},{"style":4080},[18522],{"type":58,"value":18523},"(paid_orders, ",{"type":52,"tag":160,"props":18525,"children":18526},{"style":1771},[18527],{"type":58,"value":11098},{"type":52,"tag":160,"props":18529,"children":18530},{"style":4080},[18531],{"type":58,"value":18532},"), ",{"type":52,"tag":160,"props":18534,"children":18535},{"style":1771},[18536],{"type":58,"value":10804},{"type":52,"tag":160,"props":18538,"children":18539},{"style":4080},[18540],{"type":58,"value":11279},{"type":52,"tag":160,"props":18542,"children":18543},{"style":4181},[18544],{"type":58,"value":10814},{"type":52,"tag":160,"props":18546,"children":18547},{"style":4080},[18548],{"type":58,"value":18549}," avg_order_value,\n",{"type":52,"tag":160,"props":18551,"children":18552},{"class":162,"line":528},[18553,18557,18562,18566,18570,18575,18579,18583,18587,18591,18595,18599,18603,18607],{"type":52,"tag":160,"props":18554,"children":18555},{"style":1771},[18556],{"type":58,"value":18503},{"type":52,"tag":160,"props":18558,"children":18559},{"style":4080},[18560],{"type":58,"value":18561},"(cancelled_orders ",{"type":52,"tag":160,"props":18563,"children":18564},{"style":4181},[18565],{"type":58,"value":18513},{"type":52,"tag":160,"props":18567,"children":18568},{"style":1771},[18569],{"type":58,"value":18518},{"type":52,"tag":160,"props":18571,"children":18572},{"style":4080},[18573],{"type":58,"value":18574},"(total_orders, ",{"type":52,"tag":160,"props":18576,"children":18577},{"style":1771},[18578],{"type":58,"value":11098},{"type":52,"tag":160,"props":18580,"children":18581},{"style":4080},[18582],{"type":58,"value":11279},{"type":52,"tag":160,"props":18584,"children":18585},{"style":4181},[18586],{"type":58,"value":16713},{"type":52,"tag":160,"props":18588,"children":18589},{"style":1771},[18590],{"type":58,"value":11089},{"type":52,"tag":160,"props":18592,"children":18593},{"style":4080},[18594],{"type":58,"value":3976},{"type":52,"tag":160,"props":18596,"children":18597},{"style":1771},[18598],{"type":58,"value":10804},{"type":52,"tag":160,"props":18600,"children":18601},{"style":4080},[18602],{"type":58,"value":11279},{"type":52,"tag":160,"props":18604,"children":18605},{"style":4181},[18606],{"type":58,"value":10814},{"type":52,"tag":160,"props":18608,"children":18609},{"style":4080},[18610],{"type":58,"value":18611}," cancellation_rate\n",{"type":52,"tag":160,"props":18613,"children":18614},{"class":162,"line":537},[18615,18619,18624,18628],{"type":52,"tag":160,"props":18616,"children":18617},{"style":4181},[18618],{"type":58,"value":11165},{"type":52,"tag":160,"props":18620,"children":18621},{"style":1771},[18622],{"type":58,"value":18623}," staging",{"type":52,"tag":160,"props":18625,"children":18626},{"style":4080},[18627],{"type":58,"value":3931},{"type":52,"tag":160,"props":18629,"children":18630},{"style":1771},[18631],{"type":58,"value":18632},"stg_orders\n",{"type":52,"tag":160,"props":18634,"children":18635},{"class":162,"line":546},[18636,18640],{"type":52,"tag":160,"props":18637,"children":18638},{"style":4181},[18639],{"type":58,"value":17161},{"type":52,"tag":160,"props":18641,"children":18642},{"style":4080},[18643],{"type":58,"value":18644}," toDate(order_date)\n",{"type":52,"tag":160,"props":18646,"children":18647},{"class":162,"line":555},[18648,18653],{"type":52,"tag":160,"props":18649,"children":18650},{"style":4181},[18651],{"type":58,"value":18652},"ORDER BY",{"type":52,"tag":160,"props":18654,"children":18655},{"style":4080},[18656],{"type":58,"value":18657}," order_date\n",{"type":52,"tag":259,"props":18659,"children":18660},{"v-slot:bigquery":7},[18661],{"type":52,"tag":150,"props":18662,"children":18664},{"className":10404,"code":18663,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_daily_revenue\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_orders\ncolumns:\n  - name: order_date\n    type: date\n    checks:\n      - name: not_null\n      - name: unique\ncustom_checks:\n  - name: has_rows\n    query: \"SELECT count(*) > 0 FROM reports.rpt_daily_revenue\"\n    value: 1\n@bruin *\u002F\n\nSELECT\n    DATE(order_date) AS order_date,\n    count(*) AS total_orders,\n    COUNTIF(payment_status = 'paid') AS paid_orders,\n    COUNTIF(cancel_reason IS NOT NULL) AS cancelled_orders,\n    sum(order_total) AS gross_revenue,\n    sum(CASE WHEN payment_status = 'paid' THEN order_total ELSE 0 END) AS net_revenue,\n    sum(discount_amount) AS total_discounts,\n    sum(tax_amount) AS total_tax,\n    round(sum(CASE WHEN payment_status = 'paid' THEN order_total ELSE 0 END) \u002F NULLIF(COUNTIF(payment_status = 'paid'), 0), 2) AS avg_order_value,\n    round(COUNTIF(cancel_reason IS NOT NULL) \u002F NULLIF(count(*), 0) * 100, 2) AS cancellation_rate\nFROM staging.stg_orders o\nWHERE o.financial_status IN ('paid', 'partially_refunded')\nGROUP BY DATE(order_date)\nORDER BY order_date\n",[18665],{"type":52,"tag":71,"props":18666,"children":18667},{"__ignoreMap":7},[18668,18675,18682,18689,18696,18703,18710,18717,18724,18731,18738,18745,18752,18759,18766,18773,18780,18787,18794,18801,18808,18828,18855,18883,18907,18926,18989,19008,19027,19141,19226,19250,19296,19312],{"type":52,"tag":160,"props":18669,"children":18670},{"class":162,"line":163},[18671],{"type":52,"tag":160,"props":18672,"children":18673},{"style":10416},[18674],{"type":58,"value":10419},{"type":52,"tag":160,"props":18676,"children":18677},{"class":162,"line":281},[18678],{"type":52,"tag":160,"props":18679,"children":18680},{"style":10416},[18681],{"type":58,"value":18134},{"type":52,"tag":160,"props":18683,"children":18684},{"class":162,"line":290},[18685],{"type":52,"tag":160,"props":18686,"children":18687},{"style":10416},[18688],{"type":58,"value":10435},{"type":52,"tag":160,"props":18690,"children":18691},{"class":162,"line":299},[18692],{"type":52,"tag":160,"props":18693,"children":18694},{"style":10416},[18695],{"type":58,"value":10443},{"type":52,"tag":160,"props":18697,"children":18698},{"class":162,"line":27},[18699],{"type":52,"tag":160,"props":18700,"children":18701},{"style":10416},[18702],{"type":58,"value":10451},{"type":52,"tag":160,"props":18704,"children":18705},{"class":162,"line":316},[18706],{"type":52,"tag":160,"props":18707,"children":18708},{"style":10416},[18709],{"type":58,"value":10459},{"type":52,"tag":160,"props":18711,"children":18712},{"class":162,"line":325},[18713],{"type":52,"tag":160,"props":18714,"children":18715},{"style":10416},[18716],{"type":58,"value":18170},{"type":52,"tag":160,"props":18718,"children":18719},{"class":162,"line":334},[18720],{"type":52,"tag":160,"props":18721,"children":18722},{"style":10416},[18723],{"type":58,"value":10483},{"type":52,"tag":160,"props":18725,"children":18726},{"class":162,"line":343},[18727],{"type":52,"tag":160,"props":18728,"children":18729},{"style":10416},[18730],{"type":58,"value":10531},{"type":52,"tag":160,"props":18732,"children":18733},{"class":162,"line":11},[18734],{"type":52,"tag":160,"props":18735,"children":18736},{"style":10416},[18737],{"type":58,"value":14479},{"type":52,"tag":160,"props":18739,"children":18740},{"class":162,"line":359},[18741],{"type":52,"tag":160,"props":18742,"children":18743},{"style":10416},[18744],{"type":58,"value":10507},{"type":52,"tag":160,"props":18746,"children":18747},{"class":162,"line":368},[18748],{"type":52,"tag":160,"props":18749,"children":18750},{"style":10416},[18751],{"type":58,"value":10515},{"type":52,"tag":160,"props":18753,"children":18754},{"class":162,"line":377},[18755],{"type":52,"tag":160,"props":18756,"children":18757},{"style":10416},[18758],{"type":58,"value":10523},{"type":52,"tag":160,"props":18760,"children":18761},{"class":162,"line":386},[18762],{"type":52,"tag":160,"props":18763,"children":18764},{"style":10416},[18765],{"type":58,"value":10561},{"type":52,"tag":160,"props":18767,"children":18768},{"class":162,"line":395},[18769],{"type":52,"tag":160,"props":18770,"children":18771},{"style":10416},[18772],{"type":58,"value":10569},{"type":52,"tag":160,"props":18774,"children":18775},{"class":162,"line":404},[18776],{"type":52,"tag":160,"props":18777,"children":18778},{"style":10416},[18779],{"type":58,"value":18234},{"type":52,"tag":160,"props":18781,"children":18782},{"class":162,"line":413},[18783],{"type":52,"tag":160,"props":18784,"children":18785},{"style":10416},[18786],{"type":58,"value":10585},{"type":52,"tag":160,"props":18788,"children":18789},{"class":162,"line":422},[18790],{"type":52,"tag":160,"props":18791,"children":18792},{"style":10416},[18793],{"type":58,"value":10593},{"type":52,"tag":160,"props":18795,"children":18796},{"class":162,"line":430},[18797],{"type":52,"tag":160,"props":18798,"children":18799},{"emptyLinePlaceholder":26},[18800],{"type":58,"value":287},{"type":52,"tag":160,"props":18802,"children":18803},{"class":162,"line":439},[18804],{"type":52,"tag":160,"props":18805,"children":18806},{"style":4181},[18807],{"type":58,"value":10608},{"type":52,"tag":160,"props":18809,"children":18810},{"class":162,"line":448},[18811,18815,18820,18824],{"type":52,"tag":160,"props":18812,"children":18813},{"style":4181},[18814],{"type":58,"value":14530},{"type":52,"tag":160,"props":18816,"children":18817},{"style":4080},[18818],{"type":58,"value":18819},"(order_date) ",{"type":52,"tag":160,"props":18821,"children":18822},{"style":4181},[18823],{"type":58,"value":10814},{"type":52,"tag":160,"props":18825,"children":18826},{"style":4080},[18827],{"type":58,"value":10706},{"type":52,"tag":160,"props":18829,"children":18830},{"class":162,"line":457},[18831,18835,18839,18843,18847,18851],{"type":52,"tag":160,"props":18832,"children":18833},{"style":1771},[18834],{"type":58,"value":18286},{"type":52,"tag":160,"props":18836,"children":18837},{"style":4080},[18838],{"type":58,"value":10763},{"type":52,"tag":160,"props":18840,"children":18841},{"style":4181},[18842],{"type":58,"value":16713},{"type":52,"tag":160,"props":18844,"children":18845},{"style":4080},[18846],{"type":58,"value":11279},{"type":52,"tag":160,"props":18848,"children":18849},{"style":4181},[18850],{"type":58,"value":10814},{"type":52,"tag":160,"props":18852,"children":18853},{"style":4080},[18854],{"type":58,"value":18307},{"type":52,"tag":160,"props":18856,"children":18857},{"class":162,"line":466},[18858,18863,18867,18871,18875,18879],{"type":52,"tag":160,"props":18859,"children":18860},{"style":4080},[18861],{"type":58,"value":18862},"    COUNTIF(payment_status ",{"type":52,"tag":160,"props":18864,"children":18865},{"style":4181},[18866],{"type":58,"value":11284},{"type":52,"tag":160,"props":18868,"children":18869},{"style":173},[18870],{"type":58,"value":18324},{"type":52,"tag":160,"props":18872,"children":18873},{"style":4080},[18874],{"type":58,"value":11279},{"type":52,"tag":160,"props":18876,"children":18877},{"style":4181},[18878],{"type":58,"value":10814},{"type":52,"tag":160,"props":18880,"children":18881},{"style":4080},[18882],{"type":58,"value":18337},{"type":52,"tag":160,"props":18884,"children":18885},{"class":162,"line":474},[18886,18891,18895,18899,18903],{"type":52,"tag":160,"props":18887,"children":18888},{"style":4080},[18889],{"type":58,"value":18890},"    COUNTIF(cancel_reason ",{"type":52,"tag":160,"props":18892,"children":18893},{"style":4181},[18894],{"type":58,"value":18350},{"type":52,"tag":160,"props":18896,"children":18897},{"style":4080},[18898],{"type":58,"value":11279},{"type":52,"tag":160,"props":18900,"children":18901},{"style":4181},[18902],{"type":58,"value":10814},{"type":52,"tag":160,"props":18904,"children":18905},{"style":4080},[18906],{"type":58,"value":18363},{"type":52,"tag":160,"props":18908,"children":18909},{"class":162,"line":483},[18910,18914,18918,18922],{"type":52,"tag":160,"props":18911,"children":18912},{"style":1771},[18913],{"type":58,"value":18371},{"type":52,"tag":160,"props":18915,"children":18916},{"style":4080},[18917],{"type":58,"value":18376},{"type":52,"tag":160,"props":18919,"children":18920},{"style":4181},[18921],{"type":58,"value":10814},{"type":52,"tag":160,"props":18923,"children":18924},{"style":4080},[18925],{"type":58,"value":18385},{"type":52,"tag":160,"props":18927,"children":18928},{"class":162,"line":492},[18929,18933,18937,18941,18945,18949,18953,18957,18961,18965,18969,18973,18977,18981,18985],{"type":52,"tag":160,"props":18930,"children":18931},{"style":1771},[18932],{"type":58,"value":18371},{"type":52,"tag":160,"props":18934,"children":18935},{"style":4080},[18936],{"type":58,"value":10763},{"type":52,"tag":160,"props":18938,"children":18939},{"style":4181},[18940],{"type":58,"value":16151},{"type":52,"tag":160,"props":18942,"children":18943},{"style":4181},[18944],{"type":58,"value":16745},{"type":52,"tag":160,"props":18946,"children":18947},{"style":4080},[18948],{"type":58,"value":18409},{"type":52,"tag":160,"props":18950,"children":18951},{"style":4181},[18952],{"type":58,"value":11284},{"type":52,"tag":160,"props":18954,"children":18955},{"style":173},[18956],{"type":58,"value":18324},{"type":52,"tag":160,"props":18958,"children":18959},{"style":4181},[18960],{"type":58,"value":16340},{"type":52,"tag":160,"props":18962,"children":18963},{"style":4080},[18964],{"type":58,"value":18426},{"type":52,"tag":160,"props":18966,"children":18967},{"style":4181},[18968],{"type":58,"value":18431},{"type":52,"tag":160,"props":18970,"children":18971},{"style":1771},[18972],{"type":58,"value":18436},{"type":52,"tag":160,"props":18974,"children":18975},{"style":4181},[18976],{"type":58,"value":16782},{"type":52,"tag":160,"props":18978,"children":18979},{"style":4080},[18980],{"type":58,"value":11279},{"type":52,"tag":160,"props":18982,"children":18983},{"style":4181},[18984],{"type":58,"value":10814},{"type":52,"tag":160,"props":18986,"children":18987},{"style":4080},[18988],{"type":58,"value":18453},{"type":52,"tag":160,"props":18990,"children":18991},{"class":162,"line":501},[18992,18996,19000,19004],{"type":52,"tag":160,"props":18993,"children":18994},{"style":1771},[18995],{"type":58,"value":18371},{"type":52,"tag":160,"props":18997,"children":18998},{"style":4080},[18999],{"type":58,"value":18465},{"type":52,"tag":160,"props":19001,"children":19002},{"style":4181},[19003],{"type":58,"value":10814},{"type":52,"tag":160,"props":19005,"children":19006},{"style":4080},[19007],{"type":58,"value":18474},{"type":52,"tag":160,"props":19009,"children":19010},{"class":162,"line":510},[19011,19015,19019,19023],{"type":52,"tag":160,"props":19012,"children":19013},{"style":1771},[19014],{"type":58,"value":18371},{"type":52,"tag":160,"props":19016,"children":19017},{"style":4080},[19018],{"type":58,"value":18486},{"type":52,"tag":160,"props":19020,"children":19021},{"style":4181},[19022],{"type":58,"value":10814},{"type":52,"tag":160,"props":19024,"children":19025},{"style":4080},[19026],{"type":58,"value":18495},{"type":52,"tag":160,"props":19028,"children":19029},{"class":162,"line":519},[19030,19034,19038,19043,19047,19051,19055,19059,19063,19067,19071,19075,19079,19083,19087,19091,19095,19100,19105,19109,19113,19117,19121,19125,19129,19133,19137],{"type":52,"tag":160,"props":19031,"children":19032},{"style":1771},[19033],{"type":58,"value":18503},{"type":52,"tag":160,"props":19035,"children":19036},{"style":4080},[19037],{"type":58,"value":10763},{"type":52,"tag":160,"props":19039,"children":19040},{"style":1771},[19041],{"type":58,"value":19042},"sum",{"type":52,"tag":160,"props":19044,"children":19045},{"style":4080},[19046],{"type":58,"value":10763},{"type":52,"tag":160,"props":19048,"children":19049},{"style":4181},[19050],{"type":58,"value":16151},{"type":52,"tag":160,"props":19052,"children":19053},{"style":4181},[19054],{"type":58,"value":16745},{"type":52,"tag":160,"props":19056,"children":19057},{"style":4080},[19058],{"type":58,"value":18409},{"type":52,"tag":160,"props":19060,"children":19061},{"style":4181},[19062],{"type":58,"value":11284},{"type":52,"tag":160,"props":19064,"children":19065},{"style":173},[19066],{"type":58,"value":18324},{"type":52,"tag":160,"props":19068,"children":19069},{"style":4181},[19070],{"type":58,"value":16340},{"type":52,"tag":160,"props":19072,"children":19073},{"style":4080},[19074],{"type":58,"value":18426},{"type":52,"tag":160,"props":19076,"children":19077},{"style":4181},[19078],{"type":58,"value":18431},{"type":52,"tag":160,"props":19080,"children":19081},{"style":1771},[19082],{"type":58,"value":18436},{"type":52,"tag":160,"props":19084,"children":19085},{"style":4181},[19086],{"type":58,"value":16782},{"type":52,"tag":160,"props":19088,"children":19089},{"style":4080},[19090],{"type":58,"value":11279},{"type":52,"tag":160,"props":19092,"children":19093},{"style":4181},[19094],{"type":58,"value":18513},{"type":52,"tag":160,"props":19096,"children":19097},{"style":1771},[19098],{"type":58,"value":19099}," NULLIF",{"type":52,"tag":160,"props":19101,"children":19102},{"style":4080},[19103],{"type":58,"value":19104},"(COUNTIF(payment_status ",{"type":52,"tag":160,"props":19106,"children":19107},{"style":4181},[19108],{"type":58,"value":11284},{"type":52,"tag":160,"props":19110,"children":19111},{"style":173},[19112],{"type":58,"value":18324},{"type":52,"tag":160,"props":19114,"children":19115},{"style":4080},[19116],{"type":58,"value":18532},{"type":52,"tag":160,"props":19118,"children":19119},{"style":1771},[19120],{"type":58,"value":11098},{"type":52,"tag":160,"props":19122,"children":19123},{"style":4080},[19124],{"type":58,"value":18532},{"type":52,"tag":160,"props":19126,"children":19127},{"style":1771},[19128],{"type":58,"value":10804},{"type":52,"tag":160,"props":19130,"children":19131},{"style":4080},[19132],{"type":58,"value":11279},{"type":52,"tag":160,"props":19134,"children":19135},{"style":4181},[19136],{"type":58,"value":10814},{"type":52,"tag":160,"props":19138,"children":19139},{"style":4080},[19140],{"type":58,"value":18549},{"type":52,"tag":160,"props":19142,"children":19143},{"class":162,"line":528},[19144,19148,19153,19157,19161,19165,19169,19173,19178,19182,19186,19190,19194,19198,19202,19206,19210,19214,19218,19222],{"type":52,"tag":160,"props":19145,"children":19146},{"style":1771},[19147],{"type":58,"value":18503},{"type":52,"tag":160,"props":19149,"children":19150},{"style":4080},[19151],{"type":58,"value":19152},"(COUNTIF(cancel_reason ",{"type":52,"tag":160,"props":19154,"children":19155},{"style":4181},[19156],{"type":58,"value":18350},{"type":52,"tag":160,"props":19158,"children":19159},{"style":4080},[19160],{"type":58,"value":11279},{"type":52,"tag":160,"props":19162,"children":19163},{"style":4181},[19164],{"type":58,"value":18513},{"type":52,"tag":160,"props":19166,"children":19167},{"style":1771},[19168],{"type":58,"value":19099},{"type":52,"tag":160,"props":19170,"children":19171},{"style":4080},[19172],{"type":58,"value":10763},{"type":52,"tag":160,"props":19174,"children":19175},{"style":1771},[19176],{"type":58,"value":19177},"count",{"type":52,"tag":160,"props":19179,"children":19180},{"style":4080},[19181],{"type":58,"value":10763},{"type":52,"tag":160,"props":19183,"children":19184},{"style":4181},[19185],{"type":58,"value":16713},{"type":52,"tag":160,"props":19187,"children":19188},{"style":4080},[19189],{"type":58,"value":18532},{"type":52,"tag":160,"props":19191,"children":19192},{"style":1771},[19193],{"type":58,"value":11098},{"type":52,"tag":160,"props":19195,"children":19196},{"style":4080},[19197],{"type":58,"value":11279},{"type":52,"tag":160,"props":19199,"children":19200},{"style":4181},[19201],{"type":58,"value":16713},{"type":52,"tag":160,"props":19203,"children":19204},{"style":1771},[19205],{"type":58,"value":11089},{"type":52,"tag":160,"props":19207,"children":19208},{"style":4080},[19209],{"type":58,"value":3976},{"type":52,"tag":160,"props":19211,"children":19212},{"style":1771},[19213],{"type":58,"value":10804},{"type":52,"tag":160,"props":19215,"children":19216},{"style":4080},[19217],{"type":58,"value":11279},{"type":52,"tag":160,"props":19219,"children":19220},{"style":4181},[19221],{"type":58,"value":10814},{"type":52,"tag":160,"props":19223,"children":19224},{"style":4080},[19225],{"type":58,"value":18611},{"type":52,"tag":160,"props":19227,"children":19228},{"class":162,"line":537},[19229,19233,19237,19241,19246],{"type":52,"tag":160,"props":19230,"children":19231},{"style":4181},[19232],{"type":58,"value":11165},{"type":52,"tag":160,"props":19234,"children":19235},{"style":1771},[19236],{"type":58,"value":18623},{"type":52,"tag":160,"props":19238,"children":19239},{"style":4080},[19240],{"type":58,"value":3931},{"type":52,"tag":160,"props":19242,"children":19243},{"style":1771},[19244],{"type":58,"value":19245},"stg_orders",{"type":52,"tag":160,"props":19247,"children":19248},{"style":4080},[19249],{"type":58,"value":11184},{"type":52,"tag":160,"props":19251,"children":19252},{"class":162,"line":546},[19253,19257,19261,19265,19269,19274,19278,19283,19287,19292],{"type":52,"tag":160,"props":19254,"children":19255},{"style":4181},[19256],{"type":58,"value":12134},{"type":52,"tag":160,"props":19258,"children":19259},{"style":1771},[19260],{"type":58,"value":11222},{"type":52,"tag":160,"props":19262,"children":19263},{"style":4080},[19264],{"type":58,"value":3931},{"type":52,"tag":160,"props":19266,"children":19267},{"style":1771},[19268],{"type":58,"value":6388},{"type":52,"tag":160,"props":19270,"children":19271},{"style":4181},[19272],{"type":58,"value":19273}," IN",{"type":52,"tag":160,"props":19275,"children":19276},{"style":4080},[19277],{"type":58,"value":12212},{"type":52,"tag":160,"props":19279,"children":19280},{"style":173},[19281],{"type":58,"value":19282},"'paid'",{"type":52,"tag":160,"props":19284,"children":19285},{"style":4080},[19286],{"type":58,"value":3976},{"type":52,"tag":160,"props":19288,"children":19289},{"style":173},[19290],{"type":58,"value":19291},"'partially_refunded'",{"type":52,"tag":160,"props":19293,"children":19294},{"style":4080},[19295],{"type":58,"value":11307},{"type":52,"tag":160,"props":19297,"children":19298},{"class":162,"line":555},[19299,19303,19307],{"type":52,"tag":160,"props":19300,"children":19301},{"style":4181},[19302],{"type":58,"value":17161},{"type":52,"tag":160,"props":19304,"children":19305},{"style":4181},[19306],{"type":58,"value":12078},{"type":52,"tag":160,"props":19308,"children":19309},{"style":4080},[19310],{"type":58,"value":19311},"(order_date)\n",{"type":52,"tag":160,"props":19313,"children":19314},{"class":162,"line":564},[19315,19319],{"type":52,"tag":160,"props":19316,"children":19317},{"style":4181},[19318],{"type":58,"value":18652},{"type":52,"tag":160,"props":19320,"children":19321},{"style":4080},[19322],{"type":58,"value":18657},{"type":52,"tag":259,"props":19324,"children":19325},{"v-slot:snowflake":7},[19326],{"type":52,"tag":150,"props":19327,"children":19329},{"className":10404,"code":19328,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_daily_revenue\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_orders\ncolumns:\n  - name: order_date\n    type: date\n    checks:\n      - name: not_null\n      - name: unique\ncustom_checks:\n  - name: has_rows\n    query: \"SELECT count(*) > 0 FROM reports.rpt_daily_revenue\"\n    value: 1\n@bruin *\u002F\n\nSELECT\n    order_date::DATE AS order_date,\n    count(*) AS total_orders,\n    COUNT(CASE WHEN payment_status = 'paid' THEN 1 END) AS paid_orders,\n    COUNT(CASE WHEN cancel_reason IS NOT NULL THEN 1 END) AS cancelled_orders,\n    sum(order_total) AS gross_revenue,\n    sum(CASE WHEN payment_status = 'paid' THEN order_total ELSE 0 END) AS net_revenue,\n    sum(discount_amount) AS total_discounts,\n    sum(tax_amount) AS total_tax,\n    round(sum(CASE WHEN payment_status = 'paid' THEN order_total ELSE 0 END) \u002F NULLIF(COUNT(CASE WHEN payment_status = 'paid' THEN 1 END), 0), 2) AS avg_order_value,\n    round(COUNT(CASE WHEN cancel_reason IS NOT NULL THEN 1 END) \u002F NULLIF(count(*), 0) * 100, 2) AS cancellation_rate\nFROM staging.stg_orders\nGROUP BY order_date::DATE\nORDER BY order_date\n",[19330],{"type":52,"tag":71,"props":19331,"children":19332},{"__ignoreMap":7},[19333,19340,19347,19354,19361,19368,19375,19382,19389,19396,19403,19410,19417,19424,19431,19438,19445,19452,19459,19466,19473,19493,19520,19575,19627,19646,19709,19728,19747,19891,20006,20025,20041],{"type":52,"tag":160,"props":19334,"children":19335},{"class":162,"line":163},[19336],{"type":52,"tag":160,"props":19337,"children":19338},{"style":10416},[19339],{"type":58,"value":10419},{"type":52,"tag":160,"props":19341,"children":19342},{"class":162,"line":281},[19343],{"type":52,"tag":160,"props":19344,"children":19345},{"style":10416},[19346],{"type":58,"value":18134},{"type":52,"tag":160,"props":19348,"children":19349},{"class":162,"line":290},[19350],{"type":52,"tag":160,"props":19351,"children":19352},{"style":10416},[19353],{"type":58,"value":10435},{"type":52,"tag":160,"props":19355,"children":19356},{"class":162,"line":299},[19357],{"type":52,"tag":160,"props":19358,"children":19359},{"style":10416},[19360],{"type":58,"value":10443},{"type":52,"tag":160,"props":19362,"children":19363},{"class":162,"line":27},[19364],{"type":52,"tag":160,"props":19365,"children":19366},{"style":10416},[19367],{"type":58,"value":10451},{"type":52,"tag":160,"props":19369,"children":19370},{"class":162,"line":316},[19371],{"type":52,"tag":160,"props":19372,"children":19373},{"style":10416},[19374],{"type":58,"value":10459},{"type":52,"tag":160,"props":19376,"children":19377},{"class":162,"line":325},[19378],{"type":52,"tag":160,"props":19379,"children":19380},{"style":10416},[19381],{"type":58,"value":18170},{"type":52,"tag":160,"props":19383,"children":19384},{"class":162,"line":334},[19385],{"type":52,"tag":160,"props":19386,"children":19387},{"style":10416},[19388],{"type":58,"value":10483},{"type":52,"tag":160,"props":19390,"children":19391},{"class":162,"line":343},[19392],{"type":52,"tag":160,"props":19393,"children":19394},{"style":10416},[19395],{"type":58,"value":10531},{"type":52,"tag":160,"props":19397,"children":19398},{"class":162,"line":11},[19399],{"type":52,"tag":160,"props":19400,"children":19401},{"style":10416},[19402],{"type":58,"value":14479},{"type":52,"tag":160,"props":19404,"children":19405},{"class":162,"line":359},[19406],{"type":52,"tag":160,"props":19407,"children":19408},{"style":10416},[19409],{"type":58,"value":10507},{"type":52,"tag":160,"props":19411,"children":19412},{"class":162,"line":368},[19413],{"type":52,"tag":160,"props":19414,"children":19415},{"style":10416},[19416],{"type":58,"value":10515},{"type":52,"tag":160,"props":19418,"children":19419},{"class":162,"line":377},[19420],{"type":52,"tag":160,"props":19421,"children":19422},{"style":10416},[19423],{"type":58,"value":10523},{"type":52,"tag":160,"props":19425,"children":19426},{"class":162,"line":386},[19427],{"type":52,"tag":160,"props":19428,"children":19429},{"style":10416},[19430],{"type":58,"value":10561},{"type":52,"tag":160,"props":19432,"children":19433},{"class":162,"line":395},[19434],{"type":52,"tag":160,"props":19435,"children":19436},{"style":10416},[19437],{"type":58,"value":10569},{"type":52,"tag":160,"props":19439,"children":19440},{"class":162,"line":404},[19441],{"type":52,"tag":160,"props":19442,"children":19443},{"style":10416},[19444],{"type":58,"value":18234},{"type":52,"tag":160,"props":19446,"children":19447},{"class":162,"line":413},[19448],{"type":52,"tag":160,"props":19449,"children":19450},{"style":10416},[19451],{"type":58,"value":10585},{"type":52,"tag":160,"props":19453,"children":19454},{"class":162,"line":422},[19455],{"type":52,"tag":160,"props":19456,"children":19457},{"style":10416},[19458],{"type":58,"value":10593},{"type":52,"tag":160,"props":19460,"children":19461},{"class":162,"line":430},[19462],{"type":52,"tag":160,"props":19463,"children":19464},{"emptyLinePlaceholder":26},[19465],{"type":58,"value":287},{"type":52,"tag":160,"props":19467,"children":19468},{"class":162,"line":439},[19469],{"type":52,"tag":160,"props":19470,"children":19471},{"style":4181},[19472],{"type":58,"value":10608},{"type":52,"tag":160,"props":19474,"children":19475},{"class":162,"line":448},[19476,19481,19485,19489],{"type":52,"tag":160,"props":19477,"children":19478},{"style":4080},[19479],{"type":58,"value":19480},"    order_date::",{"type":52,"tag":160,"props":19482,"children":19483},{"style":4181},[19484],{"type":58,"value":13073},{"type":52,"tag":160,"props":19486,"children":19487},{"style":4181},[19488],{"type":58,"value":10630},{"type":52,"tag":160,"props":19490,"children":19491},{"style":4080},[19492],{"type":58,"value":10706},{"type":52,"tag":160,"props":19494,"children":19495},{"class":162,"line":457},[19496,19500,19504,19508,19512,19516],{"type":52,"tag":160,"props":19497,"children":19498},{"style":1771},[19499],{"type":58,"value":18286},{"type":52,"tag":160,"props":19501,"children":19502},{"style":4080},[19503],{"type":58,"value":10763},{"type":52,"tag":160,"props":19505,"children":19506},{"style":4181},[19507],{"type":58,"value":16713},{"type":52,"tag":160,"props":19509,"children":19510},{"style":4080},[19511],{"type":58,"value":11279},{"type":52,"tag":160,"props":19513,"children":19514},{"style":4181},[19515],{"type":58,"value":10814},{"type":52,"tag":160,"props":19517,"children":19518},{"style":4080},[19519],{"type":58,"value":18307},{"type":52,"tag":160,"props":19521,"children":19522},{"class":162,"line":466},[19523,19527,19531,19535,19539,19543,19547,19551,19555,19559,19563,19567,19571],{"type":52,"tag":160,"props":19524,"children":19525},{"style":1771},[19526],{"type":58,"value":16704},{"type":52,"tag":160,"props":19528,"children":19529},{"style":4080},[19530],{"type":58,"value":10763},{"type":52,"tag":160,"props":19532,"children":19533},{"style":4181},[19534],{"type":58,"value":16151},{"type":52,"tag":160,"props":19536,"children":19537},{"style":4181},[19538],{"type":58,"value":16745},{"type":52,"tag":160,"props":19540,"children":19541},{"style":4080},[19542],{"type":58,"value":18409},{"type":52,"tag":160,"props":19544,"children":19545},{"style":4181},[19546],{"type":58,"value":11284},{"type":52,"tag":160,"props":19548,"children":19549},{"style":173},[19550],{"type":58,"value":18324},{"type":52,"tag":160,"props":19552,"children":19553},{"style":4181},[19554],{"type":58,"value":16340},{"type":52,"tag":160,"props":19556,"children":19557},{"style":1771},[19558],{"type":58,"value":16777},{"type":52,"tag":160,"props":19560,"children":19561},{"style":4181},[19562],{"type":58,"value":16782},{"type":52,"tag":160,"props":19564,"children":19565},{"style":4080},[19566],{"type":58,"value":11279},{"type":52,"tag":160,"props":19568,"children":19569},{"style":4181},[19570],{"type":58,"value":10814},{"type":52,"tag":160,"props":19572,"children":19573},{"style":4080},[19574],{"type":58,"value":18337},{"type":52,"tag":160,"props":19576,"children":19577},{"class":162,"line":474},[19578,19582,19586,19590,19594,19599,19603,19607,19611,19615,19619,19623],{"type":52,"tag":160,"props":19579,"children":19580},{"style":1771},[19581],{"type":58,"value":16704},{"type":52,"tag":160,"props":19583,"children":19584},{"style":4080},[19585],{"type":58,"value":10763},{"type":52,"tag":160,"props":19587,"children":19588},{"style":4181},[19589],{"type":58,"value":16151},{"type":52,"tag":160,"props":19591,"children":19592},{"style":4181},[19593],{"type":58,"value":16745},{"type":52,"tag":160,"props":19595,"children":19596},{"style":4080},[19597],{"type":58,"value":19598}," cancel_reason ",{"type":52,"tag":160,"props":19600,"children":19601},{"style":4181},[19602],{"type":58,"value":18350},{"type":52,"tag":160,"props":19604,"children":19605},{"style":4181},[19606],{"type":58,"value":16340},{"type":52,"tag":160,"props":19608,"children":19609},{"style":1771},[19610],{"type":58,"value":16777},{"type":52,"tag":160,"props":19612,"children":19613},{"style":4181},[19614],{"type":58,"value":16782},{"type":52,"tag":160,"props":19616,"children":19617},{"style":4080},[19618],{"type":58,"value":11279},{"type":52,"tag":160,"props":19620,"children":19621},{"style":4181},[19622],{"type":58,"value":10814},{"type":52,"tag":160,"props":19624,"children":19625},{"style":4080},[19626],{"type":58,"value":18363},{"type":52,"tag":160,"props":19628,"children":19629},{"class":162,"line":483},[19630,19634,19638,19642],{"type":52,"tag":160,"props":19631,"children":19632},{"style":1771},[19633],{"type":58,"value":18371},{"type":52,"tag":160,"props":19635,"children":19636},{"style":4080},[19637],{"type":58,"value":18376},{"type":52,"tag":160,"props":19639,"children":19640},{"style":4181},[19641],{"type":58,"value":10814},{"type":52,"tag":160,"props":19643,"children":19644},{"style":4080},[19645],{"type":58,"value":18385},{"type":52,"tag":160,"props":19647,"children":19648},{"class":162,"line":492},[19649,19653,19657,19661,19665,19669,19673,19677,19681,19685,19689,19693,19697,19701,19705],{"type":52,"tag":160,"props":19650,"children":19651},{"style":1771},[19652],{"type":58,"value":18371},{"type":52,"tag":160,"props":19654,"children":19655},{"style":4080},[19656],{"type":58,"value":10763},{"type":52,"tag":160,"props":19658,"children":19659},{"style":4181},[19660],{"type":58,"value":16151},{"type":52,"tag":160,"props":19662,"children":19663},{"style":4181},[19664],{"type":58,"value":16745},{"type":52,"tag":160,"props":19666,"children":19667},{"style":4080},[19668],{"type":58,"value":18409},{"type":52,"tag":160,"props":19670,"children":19671},{"style":4181},[19672],{"type":58,"value":11284},{"type":52,"tag":160,"props":19674,"children":19675},{"style":173},[19676],{"type":58,"value":18324},{"type":52,"tag":160,"props":19678,"children":19679},{"style":4181},[19680],{"type":58,"value":16340},{"type":52,"tag":160,"props":19682,"children":19683},{"style":4080},[19684],{"type":58,"value":18426},{"type":52,"tag":160,"props":19686,"children":19687},{"style":4181},[19688],{"type":58,"value":18431},{"type":52,"tag":160,"props":19690,"children":19691},{"style":1771},[19692],{"type":58,"value":18436},{"type":52,"tag":160,"props":19694,"children":19695},{"style":4181},[19696],{"type":58,"value":16782},{"type":52,"tag":160,"props":19698,"children":19699},{"style":4080},[19700],{"type":58,"value":11279},{"type":52,"tag":160,"props":19702,"children":19703},{"style":4181},[19704],{"type":58,"value":10814},{"type":52,"tag":160,"props":19706,"children":19707},{"style":4080},[19708],{"type":58,"value":18453},{"type":52,"tag":160,"props":19710,"children":19711},{"class":162,"line":501},[19712,19716,19720,19724],{"type":52,"tag":160,"props":19713,"children":19714},{"style":1771},[19715],{"type":58,"value":18371},{"type":52,"tag":160,"props":19717,"children":19718},{"style":4080},[19719],{"type":58,"value":18465},{"type":52,"tag":160,"props":19721,"children":19722},{"style":4181},[19723],{"type":58,"value":10814},{"type":52,"tag":160,"props":19725,"children":19726},{"style":4080},[19727],{"type":58,"value":18474},{"type":52,"tag":160,"props":19729,"children":19730},{"class":162,"line":510},[19731,19735,19739,19743],{"type":52,"tag":160,"props":19732,"children":19733},{"style":1771},[19734],{"type":58,"value":18371},{"type":52,"tag":160,"props":19736,"children":19737},{"style":4080},[19738],{"type":58,"value":18486},{"type":52,"tag":160,"props":19740,"children":19741},{"style":4181},[19742],{"type":58,"value":10814},{"type":52,"tag":160,"props":19744,"children":19745},{"style":4080},[19746],{"type":58,"value":18495},{"type":52,"tag":160,"props":19748,"children":19749},{"class":162,"line":519},[19750,19754,19758,19762,19766,19770,19774,19778,19782,19786,19790,19794,19798,19802,19806,19810,19814,19818,19822,19827,19831,19835,19839,19843,19847,19851,19855,19859,19863,19867,19871,19875,19879,19883,19887],{"type":52,"tag":160,"props":19751,"children":19752},{"style":1771},[19753],{"type":58,"value":18503},{"type":52,"tag":160,"props":19755,"children":19756},{"style":4080},[19757],{"type":58,"value":10763},{"type":52,"tag":160,"props":19759,"children":19760},{"style":1771},[19761],{"type":58,"value":19042},{"type":52,"tag":160,"props":19763,"children":19764},{"style":4080},[19765],{"type":58,"value":10763},{"type":52,"tag":160,"props":19767,"children":19768},{"style":4181},[19769],{"type":58,"value":16151},{"type":52,"tag":160,"props":19771,"children":19772},{"style":4181},[19773],{"type":58,"value":16745},{"type":52,"tag":160,"props":19775,"children":19776},{"style":4080},[19777],{"type":58,"value":18409},{"type":52,"tag":160,"props":19779,"children":19780},{"style":4181},[19781],{"type":58,"value":11284},{"type":52,"tag":160,"props":19783,"children":19784},{"style":173},[19785],{"type":58,"value":18324},{"type":52,"tag":160,"props":19787,"children":19788},{"style":4181},[19789],{"type":58,"value":16340},{"type":52,"tag":160,"props":19791,"children":19792},{"style":4080},[19793],{"type":58,"value":18426},{"type":52,"tag":160,"props":19795,"children":19796},{"style":4181},[19797],{"type":58,"value":18431},{"type":52,"tag":160,"props":19799,"children":19800},{"style":1771},[19801],{"type":58,"value":18436},{"type":52,"tag":160,"props":19803,"children":19804},{"style":4181},[19805],{"type":58,"value":16782},{"type":52,"tag":160,"props":19807,"children":19808},{"style":4080},[19809],{"type":58,"value":11279},{"type":52,"tag":160,"props":19811,"children":19812},{"style":4181},[19813],{"type":58,"value":18513},{"type":52,"tag":160,"props":19815,"children":19816},{"style":1771},[19817],{"type":58,"value":19099},{"type":52,"tag":160,"props":19819,"children":19820},{"style":4080},[19821],{"type":58,"value":10763},{"type":52,"tag":160,"props":19823,"children":19824},{"style":1771},[19825],{"type":58,"value":19826},"COUNT",{"type":52,"tag":160,"props":19828,"children":19829},{"style":4080},[19830],{"type":58,"value":10763},{"type":52,"tag":160,"props":19832,"children":19833},{"style":4181},[19834],{"type":58,"value":16151},{"type":52,"tag":160,"props":19836,"children":19837},{"style":4181},[19838],{"type":58,"value":16745},{"type":52,"tag":160,"props":19840,"children":19841},{"style":4080},[19842],{"type":58,"value":18409},{"type":52,"tag":160,"props":19844,"children":19845},{"style":4181},[19846],{"type":58,"value":11284},{"type":52,"tag":160,"props":19848,"children":19849},{"style":173},[19850],{"type":58,"value":18324},{"type":52,"tag":160,"props":19852,"children":19853},{"style":4181},[19854],{"type":58,"value":16340},{"type":52,"tag":160,"props":19856,"children":19857},{"style":1771},[19858],{"type":58,"value":16777},{"type":52,"tag":160,"props":19860,"children":19861},{"style":4181},[19862],{"type":58,"value":16782},{"type":52,"tag":160,"props":19864,"children":19865},{"style":4080},[19866],{"type":58,"value":18532},{"type":52,"tag":160,"props":19868,"children":19869},{"style":1771},[19870],{"type":58,"value":11098},{"type":52,"tag":160,"props":19872,"children":19873},{"style":4080},[19874],{"type":58,"value":18532},{"type":52,"tag":160,"props":19876,"children":19877},{"style":1771},[19878],{"type":58,"value":10804},{"type":52,"tag":160,"props":19880,"children":19881},{"style":4080},[19882],{"type":58,"value":11279},{"type":52,"tag":160,"props":19884,"children":19885},{"style":4181},[19886],{"type":58,"value":10814},{"type":52,"tag":160,"props":19888,"children":19889},{"style":4080},[19890],{"type":58,"value":18549},{"type":52,"tag":160,"props":19892,"children":19893},{"class":162,"line":528},[19894,19898,19902,19906,19910,19914,19918,19922,19926,19930,19934,19938,19942,19946,19950,19954,19958,19962,19966,19970,19974,19978,19982,19986,19990,19994,19998,20002],{"type":52,"tag":160,"props":19895,"children":19896},{"style":1771},[19897],{"type":58,"value":18503},{"type":52,"tag":160,"props":19899,"children":19900},{"style":4080},[19901],{"type":58,"value":10763},{"type":52,"tag":160,"props":19903,"children":19904},{"style":1771},[19905],{"type":58,"value":19826},{"type":52,"tag":160,"props":19907,"children":19908},{"style":4080},[19909],{"type":58,"value":10763},{"type":52,"tag":160,"props":19911,"children":19912},{"style":4181},[19913],{"type":58,"value":16151},{"type":52,"tag":160,"props":19915,"children":19916},{"style":4181},[19917],{"type":58,"value":16745},{"type":52,"tag":160,"props":19919,"children":19920},{"style":4080},[19921],{"type":58,"value":19598},{"type":52,"tag":160,"props":19923,"children":19924},{"style":4181},[19925],{"type":58,"value":18350},{"type":52,"tag":160,"props":19927,"children":19928},{"style":4181},[19929],{"type":58,"value":16340},{"type":52,"tag":160,"props":19931,"children":19932},{"style":1771},[19933],{"type":58,"value":16777},{"type":52,"tag":160,"props":19935,"children":19936},{"style":4181},[19937],{"type":58,"value":16782},{"type":52,"tag":160,"props":19939,"children":19940},{"style":4080},[19941],{"type":58,"value":11279},{"type":52,"tag":160,"props":19943,"children":19944},{"style":4181},[19945],{"type":58,"value":18513},{"type":52,"tag":160,"props":19947,"children":19948},{"style":1771},[19949],{"type":58,"value":19099},{"type":52,"tag":160,"props":19951,"children":19952},{"style":4080},[19953],{"type":58,"value":10763},{"type":52,"tag":160,"props":19955,"children":19956},{"style":1771},[19957],{"type":58,"value":19177},{"type":52,"tag":160,"props":19959,"children":19960},{"style":4080},[19961],{"type":58,"value":10763},{"type":52,"tag":160,"props":19963,"children":19964},{"style":4181},[19965],{"type":58,"value":16713},{"type":52,"tag":160,"props":19967,"children":19968},{"style":4080},[19969],{"type":58,"value":18532},{"type":52,"tag":160,"props":19971,"children":19972},{"style":1771},[19973],{"type":58,"value":11098},{"type":52,"tag":160,"props":19975,"children":19976},{"style":4080},[19977],{"type":58,"value":11279},{"type":52,"tag":160,"props":19979,"children":19980},{"style":4181},[19981],{"type":58,"value":16713},{"type":52,"tag":160,"props":19983,"children":19984},{"style":1771},[19985],{"type":58,"value":11089},{"type":52,"tag":160,"props":19987,"children":19988},{"style":4080},[19989],{"type":58,"value":3976},{"type":52,"tag":160,"props":19991,"children":19992},{"style":1771},[19993],{"type":58,"value":10804},{"type":52,"tag":160,"props":19995,"children":19996},{"style":4080},[19997],{"type":58,"value":11279},{"type":52,"tag":160,"props":19999,"children":20000},{"style":4181},[20001],{"type":58,"value":10814},{"type":52,"tag":160,"props":20003,"children":20004},{"style":4080},[20005],{"type":58,"value":18611},{"type":52,"tag":160,"props":20007,"children":20008},{"class":162,"line":537},[20009,20013,20017,20021],{"type":52,"tag":160,"props":20010,"children":20011},{"style":4181},[20012],{"type":58,"value":11165},{"type":52,"tag":160,"props":20014,"children":20015},{"style":1771},[20016],{"type":58,"value":18623},{"type":52,"tag":160,"props":20018,"children":20019},{"style":4080},[20020],{"type":58,"value":3931},{"type":52,"tag":160,"props":20022,"children":20023},{"style":1771},[20024],{"type":58,"value":18632},{"type":52,"tag":160,"props":20026,"children":20027},{"class":162,"line":546},[20028,20032,20037],{"type":52,"tag":160,"props":20029,"children":20030},{"style":4181},[20031],{"type":58,"value":17161},{"type":52,"tag":160,"props":20033,"children":20034},{"style":4080},[20035],{"type":58,"value":20036}," order_date::",{"type":52,"tag":160,"props":20038,"children":20039},{"style":4181},[20040],{"type":58,"value":13098},{"type":52,"tag":160,"props":20042,"children":20043},{"class":162,"line":555},[20044,20048],{"type":52,"tag":160,"props":20045,"children":20046},{"style":4181},[20047],{"type":58,"value":18652},{"type":52,"tag":160,"props":20049,"children":20050},{"style":4080},[20051],{"type":58,"value":18657},{"type":52,"tag":131,"props":20053,"children":20055},{"id":20054},"_2-customer-cohorts-rpt_customer_cohortssql",[20056,20058],{"type":58,"value":20057},"2) Customer cohorts - ",{"type":52,"tag":71,"props":20059,"children":20061},{"className":20060},[],[20062],{"type":58,"value":20063},"rpt_customer_cohorts.sql",{"type":52,"tag":107,"props":20065,"children":20066},{},[20067],{"type":58,"value":20068},"Monthly cohort analysis showing retention and lifetime value. This tells you if you're acquiring customers who stick around.",{"type":52,"tag":107,"props":20070,"children":20071},{},[20072,20073,20082],{"type":58,"value":10384},{"type":52,"tag":218,"props":20074,"children":20075},{},[20076],{"type":52,"tag":71,"props":20077,"children":20079},{"className":20078},[],[20080],{"type":58,"value":20081},"ecommerce\u002Fassets\u002Freports\u002Frpt_customer_cohorts.sql",{"type":58,"value":10395},{"type":52,"tag":253,"props":20084,"children":20085},{":variants":255,"group":256},[20086,21015,21954],{"type":52,"tag":259,"props":20087,"children":20088},{"v-slot:clickhouse":7},[20089],{"type":52,"tag":150,"props":20090,"children":20092},{"className":10404,"code":20091,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_customer_cohorts\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_orders\n  - staging.stg_customers\ncolumns:\n  - name: cohort_month\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nWITH customer_orders AS (\n    SELECT\n        o.customer_email,\n        toStartOfMonth(c.first_seen_at) AS cohort_month,\n        toStartOfMonth(o.order_date) AS order_month,\n        o.order_total\n    FROM staging.stg_orders o\n    INNER JOIN staging.stg_customers c\n        ON o.customer_email = c.customer_email\n    WHERE o.payment_status = 'paid'\n),\ncohort_sizes AS (\n    SELECT\n        cohort_month,\n        count(DISTINCT customer_email) AS cohort_size\n    FROM customer_orders\n    GROUP BY cohort_month\n)\nSELECT\n    co.cohort_month,\n    cs.cohort_size,\n    dateDiff('month', co.cohort_month, co.order_month) AS months_since_first,\n    count(DISTINCT co.customer_email) AS active_customers,\n    round(active_customers \u002F nullIf(cs.cohort_size, 0) * 100, 2) AS retention_rate,\n    sum(co.order_total) AS cohort_revenue,\n    round(cohort_revenue \u002F nullIf(cs.cohort_size, 0), 2) AS revenue_per_customer\nFROM customer_orders co\nINNER JOIN cohort_sizes cs\n    ON co.cohort_month = cs.cohort_month\nGROUP BY co.cohort_month, cs.cohort_size, months_since_first\nORDER BY co.cohort_month, months_since_first\n",[20093],{"type":52,"tag":71,"props":20094,"children":20095},{"__ignoreMap":7},[20096,20103,20111,20118,20125,20132,20139,20146,20154,20161,20169,20176,20183,20190,20197,20204,20226,20234,20255,20289,20322,20338,20362,20387,20424,20454,20462,20478,20485,20493,20524,20536,20549,20556,20563,20584,20605,20669,20710,20788,20825,20890,20902,20915,20952,20992],{"type":52,"tag":160,"props":20097,"children":20098},{"class":162,"line":163},[20099],{"type":52,"tag":160,"props":20100,"children":20101},{"style":10416},[20102],{"type":58,"value":10419},{"type":52,"tag":160,"props":20104,"children":20105},{"class":162,"line":281},[20106],{"type":52,"tag":160,"props":20107,"children":20108},{"style":10416},[20109],{"type":58,"value":20110},"name: reports.rpt_customer_cohorts\n",{"type":52,"tag":160,"props":20112,"children":20113},{"class":162,"line":290},[20114],{"type":52,"tag":160,"props":20115,"children":20116},{"style":10416},[20117],{"type":58,"value":10435},{"type":52,"tag":160,"props":20119,"children":20120},{"class":162,"line":299},[20121],{"type":52,"tag":160,"props":20122,"children":20123},{"style":10416},[20124],{"type":58,"value":10443},{"type":52,"tag":160,"props":20126,"children":20127},{"class":162,"line":27},[20128],{"type":52,"tag":160,"props":20129,"children":20130},{"style":10416},[20131],{"type":58,"value":10451},{"type":52,"tag":160,"props":20133,"children":20134},{"class":162,"line":316},[20135],{"type":52,"tag":160,"props":20136,"children":20137},{"style":10416},[20138],{"type":58,"value":10459},{"type":52,"tag":160,"props":20140,"children":20141},{"class":162,"line":325},[20142],{"type":52,"tag":160,"props":20143,"children":20144},{"style":10416},[20145],{"type":58,"value":18170},{"type":52,"tag":160,"props":20147,"children":20148},{"class":162,"line":334},[20149],{"type":52,"tag":160,"props":20150,"children":20151},{"style":10416},[20152],{"type":58,"value":20153},"  - staging.stg_customers\n",{"type":52,"tag":160,"props":20155,"children":20156},{"class":162,"line":343},[20157],{"type":52,"tag":160,"props":20158,"children":20159},{"style":10416},[20160],{"type":58,"value":10483},{"type":52,"tag":160,"props":20162,"children":20163},{"class":162,"line":11},[20164],{"type":52,"tag":160,"props":20165,"children":20166},{"style":10416},[20167],{"type":58,"value":20168},"  - name: cohort_month\n",{"type":52,"tag":160,"props":20170,"children":20171},{"class":162,"line":359},[20172],{"type":52,"tag":160,"props":20173,"children":20174},{"style":10416},[20175],{"type":58,"value":14479},{"type":52,"tag":160,"props":20177,"children":20178},{"class":162,"line":368},[20179],{"type":52,"tag":160,"props":20180,"children":20181},{"style":10416},[20182],{"type":58,"value":10507},{"type":52,"tag":160,"props":20184,"children":20185},{"class":162,"line":377},[20186],{"type":52,"tag":160,"props":20187,"children":20188},{"style":10416},[20189],{"type":58,"value":10515},{"type":52,"tag":160,"props":20191,"children":20192},{"class":162,"line":386},[20193],{"type":52,"tag":160,"props":20194,"children":20195},{"style":10416},[20196],{"type":58,"value":10593},{"type":52,"tag":160,"props":20198,"children":20199},{"class":162,"line":395},[20200],{"type":52,"tag":160,"props":20201,"children":20202},{"emptyLinePlaceholder":26},[20203],{"type":58,"value":287},{"type":52,"tag":160,"props":20205,"children":20206},{"class":162,"line":404},[20207,20212,20217,20221],{"type":52,"tag":160,"props":20208,"children":20209},{"style":4181},[20210],{"type":58,"value":20211},"WITH",{"type":52,"tag":160,"props":20213,"children":20214},{"style":4080},[20215],{"type":58,"value":20216}," customer_orders ",{"type":52,"tag":160,"props":20218,"children":20219},{"style":4181},[20220],{"type":58,"value":10814},{"type":52,"tag":160,"props":20222,"children":20223},{"style":4080},[20224],{"type":58,"value":20225}," (\n",{"type":52,"tag":160,"props":20227,"children":20228},{"class":162,"line":413},[20229],{"type":52,"tag":160,"props":20230,"children":20231},{"style":4181},[20232],{"type":58,"value":20233},"    SELECT\n",{"type":52,"tag":160,"props":20235,"children":20236},{"class":162,"line":422},[20237,20242,20246,20251],{"type":52,"tag":160,"props":20238,"children":20239},{"style":1771},[20240],{"type":58,"value":20241},"        o",{"type":52,"tag":160,"props":20243,"children":20244},{"style":4080},[20245],{"type":58,"value":3931},{"type":52,"tag":160,"props":20247,"children":20248},{"style":1771},[20249],{"type":58,"value":20250},"customer_email",{"type":52,"tag":160,"props":20252,"children":20253},{"style":4080},[20254],{"type":58,"value":10656},{"type":52,"tag":160,"props":20256,"children":20257},{"class":162,"line":430},[20258,20263,20267,20271,20276,20280,20284],{"type":52,"tag":160,"props":20259,"children":20260},{"style":4080},[20261],{"type":58,"value":20262},"        toStartOfMonth(",{"type":52,"tag":160,"props":20264,"children":20265},{"style":1771},[20266],{"type":58,"value":11293},{"type":52,"tag":160,"props":20268,"children":20269},{"style":4080},[20270],{"type":58,"value":3931},{"type":52,"tag":160,"props":20272,"children":20273},{"style":1771},[20274],{"type":58,"value":20275},"first_seen_at",{"type":52,"tag":160,"props":20277,"children":20278},{"style":4080},[20279],{"type":58,"value":11279},{"type":52,"tag":160,"props":20281,"children":20282},{"style":4181},[20283],{"type":58,"value":10814},{"type":52,"tag":160,"props":20285,"children":20286},{"style":4080},[20287],{"type":58,"value":20288}," cohort_month,\n",{"type":52,"tag":160,"props":20290,"children":20291},{"class":162,"line":439},[20292,20296,20300,20304,20309,20313,20317],{"type":52,"tag":160,"props":20293,"children":20294},{"style":4080},[20295],{"type":58,"value":20262},{"type":52,"tag":160,"props":20297,"children":20298},{"style":1771},[20299],{"type":58,"value":10768},{"type":52,"tag":160,"props":20301,"children":20302},{"style":4080},[20303],{"type":58,"value":3931},{"type":52,"tag":160,"props":20305,"children":20306},{"style":1771},[20307],{"type":58,"value":20308},"order_date",{"type":52,"tag":160,"props":20310,"children":20311},{"style":4080},[20312],{"type":58,"value":11279},{"type":52,"tag":160,"props":20314,"children":20315},{"style":4181},[20316],{"type":58,"value":10814},{"type":52,"tag":160,"props":20318,"children":20319},{"style":4080},[20320],{"type":58,"value":20321}," order_month,\n",{"type":52,"tag":160,"props":20323,"children":20324},{"class":162,"line":448},[20325,20329,20333],{"type":52,"tag":160,"props":20326,"children":20327},{"style":1771},[20328],{"type":58,"value":20241},{"type":52,"tag":160,"props":20330,"children":20331},{"style":4080},[20332],{"type":58,"value":3931},{"type":52,"tag":160,"props":20334,"children":20335},{"style":1771},[20336],{"type":58,"value":20337},"order_total\n",{"type":52,"tag":160,"props":20339,"children":20340},{"class":162,"line":457},[20341,20346,20350,20354,20358],{"type":52,"tag":160,"props":20342,"children":20343},{"style":4181},[20344],{"type":58,"value":20345},"    FROM",{"type":52,"tag":160,"props":20347,"children":20348},{"style":1771},[20349],{"type":58,"value":18623},{"type":52,"tag":160,"props":20351,"children":20352},{"style":4080},[20353],{"type":58,"value":3931},{"type":52,"tag":160,"props":20355,"children":20356},{"style":1771},[20357],{"type":58,"value":19245},{"type":52,"tag":160,"props":20359,"children":20360},{"style":4080},[20361],{"type":58,"value":11184},{"type":52,"tag":160,"props":20363,"children":20364},{"class":162,"line":466},[20365,20370,20374,20378,20383],{"type":52,"tag":160,"props":20366,"children":20367},{"style":4181},[20368],{"type":58,"value":20369},"    INNER JOIN",{"type":52,"tag":160,"props":20371,"children":20372},{"style":1771},[20373],{"type":58,"value":18623},{"type":52,"tag":160,"props":20375,"children":20376},{"style":4080},[20377],{"type":58,"value":3931},{"type":52,"tag":160,"props":20379,"children":20380},{"style":1771},[20381],{"type":58,"value":20382},"stg_customers",{"type":52,"tag":160,"props":20384,"children":20385},{"style":4080},[20386],{"type":58,"value":11209},{"type":52,"tag":160,"props":20388,"children":20389},{"class":162,"line":474},[20390,20395,20399,20403,20407,20411,20415,20419],{"type":52,"tag":160,"props":20391,"children":20392},{"style":4181},[20393],{"type":58,"value":20394},"        ON",{"type":52,"tag":160,"props":20396,"children":20397},{"style":1771},[20398],{"type":58,"value":11222},{"type":52,"tag":160,"props":20400,"children":20401},{"style":4080},[20402],{"type":58,"value":3931},{"type":52,"tag":160,"props":20404,"children":20405},{"style":1771},[20406],{"type":58,"value":20250},{"type":52,"tag":160,"props":20408,"children":20409},{"style":4181},[20410],{"type":58,"value":11235},{"type":52,"tag":160,"props":20412,"children":20413},{"style":1771},[20414],{"type":58,"value":11240},{"type":52,"tag":160,"props":20416,"children":20417},{"style":4080},[20418],{"type":58,"value":3931},{"type":52,"tag":160,"props":20420,"children":20421},{"style":1771},[20422],{"type":58,"value":20423},"customer_email\n",{"type":52,"tag":160,"props":20425,"children":20426},{"class":162,"line":483},[20427,20432,20436,20440,20445,20449],{"type":52,"tag":160,"props":20428,"children":20429},{"style":4181},[20430],{"type":58,"value":20431},"    WHERE",{"type":52,"tag":160,"props":20433,"children":20434},{"style":1771},[20435],{"type":58,"value":11222},{"type":52,"tag":160,"props":20437,"children":20438},{"style":4080},[20439],{"type":58,"value":3931},{"type":52,"tag":160,"props":20441,"children":20442},{"style":1771},[20443],{"type":58,"value":20444},"payment_status",{"type":52,"tag":160,"props":20446,"children":20447},{"style":4181},[20448],{"type":58,"value":11235},{"type":52,"tag":160,"props":20450,"children":20451},{"style":173},[20452],{"type":58,"value":20453}," 'paid'\n",{"type":52,"tag":160,"props":20455,"children":20456},{"class":162,"line":492},[20457],{"type":52,"tag":160,"props":20458,"children":20459},{"style":4080},[20460],{"type":58,"value":20461},"),\n",{"type":52,"tag":160,"props":20463,"children":20464},{"class":162,"line":501},[20465,20470,20474],{"type":52,"tag":160,"props":20466,"children":20467},{"style":4080},[20468],{"type":58,"value":20469},"cohort_sizes ",{"type":52,"tag":160,"props":20471,"children":20472},{"style":4181},[20473],{"type":58,"value":10814},{"type":52,"tag":160,"props":20475,"children":20476},{"style":4080},[20477],{"type":58,"value":20225},{"type":52,"tag":160,"props":20479,"children":20480},{"class":162,"line":510},[20481],{"type":52,"tag":160,"props":20482,"children":20483},{"style":4181},[20484],{"type":58,"value":20233},{"type":52,"tag":160,"props":20486,"children":20487},{"class":162,"line":519},[20488],{"type":52,"tag":160,"props":20489,"children":20490},{"style":4080},[20491],{"type":58,"value":20492},"        cohort_month,\n",{"type":52,"tag":160,"props":20494,"children":20495},{"class":162,"line":528},[20496,20501,20505,20510,20515,20519],{"type":52,"tag":160,"props":20497,"children":20498},{"style":1771},[20499],{"type":58,"value":20500},"        count",{"type":52,"tag":160,"props":20502,"children":20503},{"style":4080},[20504],{"type":58,"value":10763},{"type":52,"tag":160,"props":20506,"children":20507},{"style":4181},[20508],{"type":58,"value":20509},"DISTINCT",{"type":52,"tag":160,"props":20511,"children":20512},{"style":4080},[20513],{"type":58,"value":20514}," customer_email) ",{"type":52,"tag":160,"props":20516,"children":20517},{"style":4181},[20518],{"type":58,"value":10814},{"type":52,"tag":160,"props":20520,"children":20521},{"style":4080},[20522],{"type":58,"value":20523}," cohort_size\n",{"type":52,"tag":160,"props":20525,"children":20526},{"class":162,"line":537},[20527,20531],{"type":52,"tag":160,"props":20528,"children":20529},{"style":4181},[20530],{"type":58,"value":20345},{"type":52,"tag":160,"props":20532,"children":20533},{"style":4080},[20534],{"type":58,"value":20535}," customer_orders\n",{"type":52,"tag":160,"props":20537,"children":20538},{"class":162,"line":546},[20539,20544],{"type":52,"tag":160,"props":20540,"children":20541},{"style":4181},[20542],{"type":58,"value":20543},"    GROUP BY",{"type":52,"tag":160,"props":20545,"children":20546},{"style":4080},[20547],{"type":58,"value":20548}," cohort_month\n",{"type":52,"tag":160,"props":20550,"children":20551},{"class":162,"line":555},[20552],{"type":52,"tag":160,"props":20553,"children":20554},{"style":4080},[20555],{"type":58,"value":11307},{"type":52,"tag":160,"props":20557,"children":20558},{"class":162,"line":564},[20559],{"type":52,"tag":160,"props":20560,"children":20561},{"style":4181},[20562],{"type":58,"value":10608},{"type":52,"tag":160,"props":20564,"children":20565},{"class":162,"line":573},[20566,20571,20575,20580],{"type":52,"tag":160,"props":20567,"children":20568},{"style":1771},[20569],{"type":58,"value":20570},"    co",{"type":52,"tag":160,"props":20572,"children":20573},{"style":4080},[20574],{"type":58,"value":3931},{"type":52,"tag":160,"props":20576,"children":20577},{"style":1771},[20578],{"type":58,"value":20579},"cohort_month",{"type":52,"tag":160,"props":20581,"children":20582},{"style":4080},[20583],{"type":58,"value":10656},{"type":52,"tag":160,"props":20585,"children":20586},{"class":162,"line":582},[20587,20592,20596,20601],{"type":52,"tag":160,"props":20588,"children":20589},{"style":1771},[20590],{"type":58,"value":20591},"    cs",{"type":52,"tag":160,"props":20593,"children":20594},{"style":4080},[20595],{"type":58,"value":3931},{"type":52,"tag":160,"props":20597,"children":20598},{"style":1771},[20599],{"type":58,"value":20600},"cohort_size",{"type":52,"tag":160,"props":20602,"children":20603},{"style":4080},[20604],{"type":58,"value":10656},{"type":52,"tag":160,"props":20606,"children":20607},{"class":162,"line":591},[20608,20613,20617,20622,20626,20631,20635,20639,20643,20647,20651,20656,20660,20664],{"type":52,"tag":160,"props":20609,"children":20610},{"style":1771},[20611],{"type":58,"value":20612},"    dateDiff",{"type":52,"tag":160,"props":20614,"children":20615},{"style":4080},[20616],{"type":58,"value":10763},{"type":52,"tag":160,"props":20618,"children":20619},{"style":173},[20620],{"type":58,"value":20621},"'month'",{"type":52,"tag":160,"props":20623,"children":20624},{"style":4080},[20625],{"type":58,"value":3976},{"type":52,"tag":160,"props":20627,"children":20628},{"style":1771},[20629],{"type":58,"value":20630},"co",{"type":52,"tag":160,"props":20632,"children":20633},{"style":4080},[20634],{"type":58,"value":3931},{"type":52,"tag":160,"props":20636,"children":20637},{"style":1771},[20638],{"type":58,"value":20579},{"type":52,"tag":160,"props":20640,"children":20641},{"style":4080},[20642],{"type":58,"value":3976},{"type":52,"tag":160,"props":20644,"children":20645},{"style":1771},[20646],{"type":58,"value":20630},{"type":52,"tag":160,"props":20648,"children":20649},{"style":4080},[20650],{"type":58,"value":3931},{"type":52,"tag":160,"props":20652,"children":20653},{"style":1771},[20654],{"type":58,"value":20655},"order_month",{"type":52,"tag":160,"props":20657,"children":20658},{"style":4080},[20659],{"type":58,"value":11279},{"type":52,"tag":160,"props":20661,"children":20662},{"style":4181},[20663],{"type":58,"value":10814},{"type":52,"tag":160,"props":20665,"children":20666},{"style":4080},[20667],{"type":58,"value":20668}," months_since_first,\n",{"type":52,"tag":160,"props":20670,"children":20671},{"class":162,"line":599},[20672,20676,20680,20684,20689,20693,20697,20701,20705],{"type":52,"tag":160,"props":20673,"children":20674},{"style":1771},[20675],{"type":58,"value":18286},{"type":52,"tag":160,"props":20677,"children":20678},{"style":4080},[20679],{"type":58,"value":10763},{"type":52,"tag":160,"props":20681,"children":20682},{"style":4181},[20683],{"type":58,"value":20509},{"type":52,"tag":160,"props":20685,"children":20686},{"style":1771},[20687],{"type":58,"value":20688}," co",{"type":52,"tag":160,"props":20690,"children":20691},{"style":4080},[20692],{"type":58,"value":3931},{"type":52,"tag":160,"props":20694,"children":20695},{"style":1771},[20696],{"type":58,"value":20250},{"type":52,"tag":160,"props":20698,"children":20699},{"style":4080},[20700],{"type":58,"value":11279},{"type":52,"tag":160,"props":20702,"children":20703},{"style":4181},[20704],{"type":58,"value":10814},{"type":52,"tag":160,"props":20706,"children":20707},{"style":4080},[20708],{"type":58,"value":20709}," active_customers,\n",{"type":52,"tag":160,"props":20711,"children":20712},{"class":162,"line":608},[20713,20717,20722,20726,20730,20734,20739,20743,20747,20751,20755,20759,20763,20767,20771,20775,20779,20783],{"type":52,"tag":160,"props":20714,"children":20715},{"style":1771},[20716],{"type":58,"value":18503},{"type":52,"tag":160,"props":20718,"children":20719},{"style":4080},[20720],{"type":58,"value":20721},"(active_customers ",{"type":52,"tag":160,"props":20723,"children":20724},{"style":4181},[20725],{"type":58,"value":18513},{"type":52,"tag":160,"props":20727,"children":20728},{"style":1771},[20729],{"type":58,"value":18518},{"type":52,"tag":160,"props":20731,"children":20732},{"style":4080},[20733],{"type":58,"value":10763},{"type":52,"tag":160,"props":20735,"children":20736},{"style":1771},[20737],{"type":58,"value":20738},"cs",{"type":52,"tag":160,"props":20740,"children":20741},{"style":4080},[20742],{"type":58,"value":3931},{"type":52,"tag":160,"props":20744,"children":20745},{"style":1771},[20746],{"type":58,"value":20600},{"type":52,"tag":160,"props":20748,"children":20749},{"style":4080},[20750],{"type":58,"value":3976},{"type":52,"tag":160,"props":20752,"children":20753},{"style":1771},[20754],{"type":58,"value":11098},{"type":52,"tag":160,"props":20756,"children":20757},{"style":4080},[20758],{"type":58,"value":11279},{"type":52,"tag":160,"props":20760,"children":20761},{"style":4181},[20762],{"type":58,"value":16713},{"type":52,"tag":160,"props":20764,"children":20765},{"style":1771},[20766],{"type":58,"value":11089},{"type":52,"tag":160,"props":20768,"children":20769},{"style":4080},[20770],{"type":58,"value":3976},{"type":52,"tag":160,"props":20772,"children":20773},{"style":1771},[20774],{"type":58,"value":10804},{"type":52,"tag":160,"props":20776,"children":20777},{"style":4080},[20778],{"type":58,"value":11279},{"type":52,"tag":160,"props":20780,"children":20781},{"style":4181},[20782],{"type":58,"value":10814},{"type":52,"tag":160,"props":20784,"children":20785},{"style":4080},[20786],{"type":58,"value":20787}," retention_rate,\n",{"type":52,"tag":160,"props":20789,"children":20790},{"class":162,"line":617},[20791,20795,20799,20803,20807,20812,20816,20820],{"type":52,"tag":160,"props":20792,"children":20793},{"style":1771},[20794],{"type":58,"value":18371},{"type":52,"tag":160,"props":20796,"children":20797},{"style":4080},[20798],{"type":58,"value":10763},{"type":52,"tag":160,"props":20800,"children":20801},{"style":1771},[20802],{"type":58,"value":20630},{"type":52,"tag":160,"props":20804,"children":20805},{"style":4080},[20806],{"type":58,"value":3931},{"type":52,"tag":160,"props":20808,"children":20809},{"style":1771},[20810],{"type":58,"value":20811},"order_total",{"type":52,"tag":160,"props":20813,"children":20814},{"style":4080},[20815],{"type":58,"value":11279},{"type":52,"tag":160,"props":20817,"children":20818},{"style":4181},[20819],{"type":58,"value":10814},{"type":52,"tag":160,"props":20821,"children":20822},{"style":4080},[20823],{"type":58,"value":20824}," cohort_revenue,\n",{"type":52,"tag":160,"props":20826,"children":20827},{"class":162,"line":626},[20828,20832,20837,20841,20845,20849,20853,20857,20861,20865,20869,20873,20877,20881,20885],{"type":52,"tag":160,"props":20829,"children":20830},{"style":1771},[20831],{"type":58,"value":18503},{"type":52,"tag":160,"props":20833,"children":20834},{"style":4080},[20835],{"type":58,"value":20836},"(cohort_revenue ",{"type":52,"tag":160,"props":20838,"children":20839},{"style":4181},[20840],{"type":58,"value":18513},{"type":52,"tag":160,"props":20842,"children":20843},{"style":1771},[20844],{"type":58,"value":18518},{"type":52,"tag":160,"props":20846,"children":20847},{"style":4080},[20848],{"type":58,"value":10763},{"type":52,"tag":160,"props":20850,"children":20851},{"style":1771},[20852],{"type":58,"value":20738},{"type":52,"tag":160,"props":20854,"children":20855},{"style":4080},[20856],{"type":58,"value":3931},{"type":52,"tag":160,"props":20858,"children":20859},{"style":1771},[20860],{"type":58,"value":20600},{"type":52,"tag":160,"props":20862,"children":20863},{"style":4080},[20864],{"type":58,"value":3976},{"type":52,"tag":160,"props":20866,"children":20867},{"style":1771},[20868],{"type":58,"value":11098},{"type":52,"tag":160,"props":20870,"children":20871},{"style":4080},[20872],{"type":58,"value":18532},{"type":52,"tag":160,"props":20874,"children":20875},{"style":1771},[20876],{"type":58,"value":10804},{"type":52,"tag":160,"props":20878,"children":20879},{"style":4080},[20880],{"type":58,"value":11279},{"type":52,"tag":160,"props":20882,"children":20883},{"style":4181},[20884],{"type":58,"value":10814},{"type":52,"tag":160,"props":20886,"children":20887},{"style":4080},[20888],{"type":58,"value":20889}," revenue_per_customer\n",{"type":52,"tag":160,"props":20891,"children":20892},{"class":162,"line":635},[20893,20897],{"type":52,"tag":160,"props":20894,"children":20895},{"style":4181},[20896],{"type":58,"value":11165},{"type":52,"tag":160,"props":20898,"children":20899},{"style":4080},[20900],{"type":58,"value":20901}," customer_orders co\n",{"type":52,"tag":160,"props":20903,"children":20904},{"class":162,"line":644},[20905,20910],{"type":52,"tag":160,"props":20906,"children":20907},{"style":4181},[20908],{"type":58,"value":20909},"INNER JOIN",{"type":52,"tag":160,"props":20911,"children":20912},{"style":4080},[20913],{"type":58,"value":20914}," cohort_sizes cs\n",{"type":52,"tag":160,"props":20916,"children":20917},{"class":162,"line":653},[20918,20922,20926,20930,20934,20938,20943,20947],{"type":52,"tag":160,"props":20919,"children":20920},{"style":4181},[20921],{"type":58,"value":11217},{"type":52,"tag":160,"props":20923,"children":20924},{"style":1771},[20925],{"type":58,"value":20688},{"type":52,"tag":160,"props":20927,"children":20928},{"style":4080},[20929],{"type":58,"value":3931},{"type":52,"tag":160,"props":20931,"children":20932},{"style":1771},[20933],{"type":58,"value":20579},{"type":52,"tag":160,"props":20935,"children":20936},{"style":4181},[20937],{"type":58,"value":11235},{"type":52,"tag":160,"props":20939,"children":20940},{"style":1771},[20941],{"type":58,"value":20942}," cs",{"type":52,"tag":160,"props":20944,"children":20945},{"style":4080},[20946],{"type":58,"value":3931},{"type":52,"tag":160,"props":20948,"children":20949},{"style":1771},[20950],{"type":58,"value":20951},"cohort_month\n",{"type":52,"tag":160,"props":20953,"children":20954},{"class":162,"line":662},[20955,20959,20963,20967,20971,20975,20979,20983,20987],{"type":52,"tag":160,"props":20956,"children":20957},{"style":4181},[20958],{"type":58,"value":17161},{"type":52,"tag":160,"props":20960,"children":20961},{"style":1771},[20962],{"type":58,"value":20688},{"type":52,"tag":160,"props":20964,"children":20965},{"style":4080},[20966],{"type":58,"value":3931},{"type":52,"tag":160,"props":20968,"children":20969},{"style":1771},[20970],{"type":58,"value":20579},{"type":52,"tag":160,"props":20972,"children":20973},{"style":4080},[20974],{"type":58,"value":3976},{"type":52,"tag":160,"props":20976,"children":20977},{"style":1771},[20978],{"type":58,"value":20738},{"type":52,"tag":160,"props":20980,"children":20981},{"style":4080},[20982],{"type":58,"value":3931},{"type":52,"tag":160,"props":20984,"children":20985},{"style":1771},[20986],{"type":58,"value":20600},{"type":52,"tag":160,"props":20988,"children":20989},{"style":4080},[20990],{"type":58,"value":20991},", months_since_first\n",{"type":52,"tag":160,"props":20993,"children":20994},{"class":162,"line":671},[20995,20999,21003,21007,21011],{"type":52,"tag":160,"props":20996,"children":20997},{"style":4181},[20998],{"type":58,"value":18652},{"type":52,"tag":160,"props":21000,"children":21001},{"style":1771},[21002],{"type":58,"value":20688},{"type":52,"tag":160,"props":21004,"children":21005},{"style":4080},[21006],{"type":58,"value":3931},{"type":52,"tag":160,"props":21008,"children":21009},{"style":1771},[21010],{"type":58,"value":20579},{"type":52,"tag":160,"props":21012,"children":21013},{"style":4080},[21014],{"type":58,"value":20991},{"type":52,"tag":259,"props":21016,"children":21017},{"v-slot:bigquery":7},[21018],{"type":52,"tag":150,"props":21019,"children":21021},{"className":10404,"code":21020,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_customer_cohorts\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_orders\n  - staging.stg_customers\ncolumns:\n  - name: cohort_month\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nWITH customer_orders AS (\n    SELECT\n        o.customer_email,\n        DATE_TRUNC(c.first_seen_at, MONTH) AS cohort_month,\n        DATE_TRUNC(o.order_date, MONTH) AS order_month,\n        o.order_total\n    FROM staging.stg_orders o\n    INNER JOIN staging.stg_customers c\n        ON o.customer_email = c.customer_email\n    WHERE o.payment_status = 'paid'\n),\ncohort_sizes AS (\n    SELECT\n        cohort_month,\n        count(DISTINCT customer_email) AS cohort_size\n    FROM customer_orders\n    GROUP BY cohort_month\n)\nSELECT\n    co.cohort_month,\n    cs.cohort_size,\n    DATE_DIFF(co.order_month, co.cohort_month, MONTH) AS months_since_first,\n    count(DISTINCT co.customer_email) AS active_customers,\n    round(count(DISTINCT co.customer_email) \u002F NULLIF(cs.cohort_size, 0) * 100, 2) AS retention_rate,\n    sum(co.order_total) AS cohort_revenue,\n    round(sum(co.order_total) \u002F NULLIF(cs.cohort_size, 0), 2) AS revenue_per_customer\nFROM customer_orders co\nINNER JOIN cohort_sizes cs\n    ON co.cohort_month = cs.cohort_month\nGROUP BY co.cohort_month, cs.cohort_size, months_since_first\nORDER BY co.cohort_month, months_since_first\n",[21022],{"type":52,"tag":71,"props":21023,"children":21024},{"__ignoreMap":7},[21025,21032,21039,21046,21053,21060,21067,21074,21081,21088,21095,21102,21109,21116,21123,21130,21149,21156,21175,21216,21255,21270,21293,21316,21351,21378,21385,21400,21407,21414,21441,21452,21463,21470,21477,21496,21515,21571,21610,21713,21748,21835,21846,21857,21892,21931],{"type":52,"tag":160,"props":21026,"children":21027},{"class":162,"line":163},[21028],{"type":52,"tag":160,"props":21029,"children":21030},{"style":10416},[21031],{"type":58,"value":10419},{"type":52,"tag":160,"props":21033,"children":21034},{"class":162,"line":281},[21035],{"type":52,"tag":160,"props":21036,"children":21037},{"style":10416},[21038],{"type":58,"value":20110},{"type":52,"tag":160,"props":21040,"children":21041},{"class":162,"line":290},[21042],{"type":52,"tag":160,"props":21043,"children":21044},{"style":10416},[21045],{"type":58,"value":10435},{"type":52,"tag":160,"props":21047,"children":21048},{"class":162,"line":299},[21049],{"type":52,"tag":160,"props":21050,"children":21051},{"style":10416},[21052],{"type":58,"value":10443},{"type":52,"tag":160,"props":21054,"children":21055},{"class":162,"line":27},[21056],{"type":52,"tag":160,"props":21057,"children":21058},{"style":10416},[21059],{"type":58,"value":10451},{"type":52,"tag":160,"props":21061,"children":21062},{"class":162,"line":316},[21063],{"type":52,"tag":160,"props":21064,"children":21065},{"style":10416},[21066],{"type":58,"value":10459},{"type":52,"tag":160,"props":21068,"children":21069},{"class":162,"line":325},[21070],{"type":52,"tag":160,"props":21071,"children":21072},{"style":10416},[21073],{"type":58,"value":18170},{"type":52,"tag":160,"props":21075,"children":21076},{"class":162,"line":334},[21077],{"type":52,"tag":160,"props":21078,"children":21079},{"style":10416},[21080],{"type":58,"value":20153},{"type":52,"tag":160,"props":21082,"children":21083},{"class":162,"line":343},[21084],{"type":52,"tag":160,"props":21085,"children":21086},{"style":10416},[21087],{"type":58,"value":10483},{"type":52,"tag":160,"props":21089,"children":21090},{"class":162,"line":11},[21091],{"type":52,"tag":160,"props":21092,"children":21093},{"style":10416},[21094],{"type":58,"value":20168},{"type":52,"tag":160,"props":21096,"children":21097},{"class":162,"line":359},[21098],{"type":52,"tag":160,"props":21099,"children":21100},{"style":10416},[21101],{"type":58,"value":14479},{"type":52,"tag":160,"props":21103,"children":21104},{"class":162,"line":368},[21105],{"type":52,"tag":160,"props":21106,"children":21107},{"style":10416},[21108],{"type":58,"value":10507},{"type":52,"tag":160,"props":21110,"children":21111},{"class":162,"line":377},[21112],{"type":52,"tag":160,"props":21113,"children":21114},{"style":10416},[21115],{"type":58,"value":10515},{"type":52,"tag":160,"props":21117,"children":21118},{"class":162,"line":386},[21119],{"type":52,"tag":160,"props":21120,"children":21121},{"style":10416},[21122],{"type":58,"value":10593},{"type":52,"tag":160,"props":21124,"children":21125},{"class":162,"line":395},[21126],{"type":52,"tag":160,"props":21127,"children":21128},{"emptyLinePlaceholder":26},[21129],{"type":58,"value":287},{"type":52,"tag":160,"props":21131,"children":21132},{"class":162,"line":404},[21133,21137,21141,21145],{"type":52,"tag":160,"props":21134,"children":21135},{"style":4181},[21136],{"type":58,"value":20211},{"type":52,"tag":160,"props":21138,"children":21139},{"style":4080},[21140],{"type":58,"value":20216},{"type":52,"tag":160,"props":21142,"children":21143},{"style":4181},[21144],{"type":58,"value":10814},{"type":52,"tag":160,"props":21146,"children":21147},{"style":4080},[21148],{"type":58,"value":20225},{"type":52,"tag":160,"props":21150,"children":21151},{"class":162,"line":413},[21152],{"type":52,"tag":160,"props":21153,"children":21154},{"style":4181},[21155],{"type":58,"value":20233},{"type":52,"tag":160,"props":21157,"children":21158},{"class":162,"line":422},[21159,21163,21167,21171],{"type":52,"tag":160,"props":21160,"children":21161},{"style":1771},[21162],{"type":58,"value":20241},{"type":52,"tag":160,"props":21164,"children":21165},{"style":4080},[21166],{"type":58,"value":3931},{"type":52,"tag":160,"props":21168,"children":21169},{"style":1771},[21170],{"type":58,"value":20250},{"type":52,"tag":160,"props":21172,"children":21173},{"style":4080},[21174],{"type":58,"value":10656},{"type":52,"tag":160,"props":21176,"children":21177},{"class":162,"line":430},[21178,21183,21187,21191,21195,21199,21204,21208,21212],{"type":52,"tag":160,"props":21179,"children":21180},{"style":4080},[21181],{"type":58,"value":21182},"        DATE_TRUNC(",{"type":52,"tag":160,"props":21184,"children":21185},{"style":1771},[21186],{"type":58,"value":11293},{"type":52,"tag":160,"props":21188,"children":21189},{"style":4080},[21190],{"type":58,"value":3931},{"type":52,"tag":160,"props":21192,"children":21193},{"style":1771},[21194],{"type":58,"value":20275},{"type":52,"tag":160,"props":21196,"children":21197},{"style":4080},[21198],{"type":58,"value":3976},{"type":52,"tag":160,"props":21200,"children":21201},{"style":4181},[21202],{"type":58,"value":21203},"MONTH",{"type":52,"tag":160,"props":21205,"children":21206},{"style":4080},[21207],{"type":58,"value":11279},{"type":52,"tag":160,"props":21209,"children":21210},{"style":4181},[21211],{"type":58,"value":10814},{"type":52,"tag":160,"props":21213,"children":21214},{"style":4080},[21215],{"type":58,"value":20288},{"type":52,"tag":160,"props":21217,"children":21218},{"class":162,"line":439},[21219,21223,21227,21231,21235,21239,21243,21247,21251],{"type":52,"tag":160,"props":21220,"children":21221},{"style":4080},[21222],{"type":58,"value":21182},{"type":52,"tag":160,"props":21224,"children":21225},{"style":1771},[21226],{"type":58,"value":10768},{"type":52,"tag":160,"props":21228,"children":21229},{"style":4080},[21230],{"type":58,"value":3931},{"type":52,"tag":160,"props":21232,"children":21233},{"style":1771},[21234],{"type":58,"value":20308},{"type":52,"tag":160,"props":21236,"children":21237},{"style":4080},[21238],{"type":58,"value":3976},{"type":52,"tag":160,"props":21240,"children":21241},{"style":4181},[21242],{"type":58,"value":21203},{"type":52,"tag":160,"props":21244,"children":21245},{"style":4080},[21246],{"type":58,"value":11279},{"type":52,"tag":160,"props":21248,"children":21249},{"style":4181},[21250],{"type":58,"value":10814},{"type":52,"tag":160,"props":21252,"children":21253},{"style":4080},[21254],{"type":58,"value":20321},{"type":52,"tag":160,"props":21256,"children":21257},{"class":162,"line":448},[21258,21262,21266],{"type":52,"tag":160,"props":21259,"children":21260},{"style":1771},[21261],{"type":58,"value":20241},{"type":52,"tag":160,"props":21263,"children":21264},{"style":4080},[21265],{"type":58,"value":3931},{"type":52,"tag":160,"props":21267,"children":21268},{"style":1771},[21269],{"type":58,"value":20337},{"type":52,"tag":160,"props":21271,"children":21272},{"class":162,"line":457},[21273,21277,21281,21285,21289],{"type":52,"tag":160,"props":21274,"children":21275},{"style":4181},[21276],{"type":58,"value":20345},{"type":52,"tag":160,"props":21278,"children":21279},{"style":1771},[21280],{"type":58,"value":18623},{"type":52,"tag":160,"props":21282,"children":21283},{"style":4080},[21284],{"type":58,"value":3931},{"type":52,"tag":160,"props":21286,"children":21287},{"style":1771},[21288],{"type":58,"value":19245},{"type":52,"tag":160,"props":21290,"children":21291},{"style":4080},[21292],{"type":58,"value":11184},{"type":52,"tag":160,"props":21294,"children":21295},{"class":162,"line":466},[21296,21300,21304,21308,21312],{"type":52,"tag":160,"props":21297,"children":21298},{"style":4181},[21299],{"type":58,"value":20369},{"type":52,"tag":160,"props":21301,"children":21302},{"style":1771},[21303],{"type":58,"value":18623},{"type":52,"tag":160,"props":21305,"children":21306},{"style":4080},[21307],{"type":58,"value":3931},{"type":52,"tag":160,"props":21309,"children":21310},{"style":1771},[21311],{"type":58,"value":20382},{"type":52,"tag":160,"props":21313,"children":21314},{"style":4080},[21315],{"type":58,"value":11209},{"type":52,"tag":160,"props":21317,"children":21318},{"class":162,"line":474},[21319,21323,21327,21331,21335,21339,21343,21347],{"type":52,"tag":160,"props":21320,"children":21321},{"style":4181},[21322],{"type":58,"value":20394},{"type":52,"tag":160,"props":21324,"children":21325},{"style":1771},[21326],{"type":58,"value":11222},{"type":52,"tag":160,"props":21328,"children":21329},{"style":4080},[21330],{"type":58,"value":3931},{"type":52,"tag":160,"props":21332,"children":21333},{"style":1771},[21334],{"type":58,"value":20250},{"type":52,"tag":160,"props":21336,"children":21337},{"style":4181},[21338],{"type":58,"value":11235},{"type":52,"tag":160,"props":21340,"children":21341},{"style":1771},[21342],{"type":58,"value":11240},{"type":52,"tag":160,"props":21344,"children":21345},{"style":4080},[21346],{"type":58,"value":3931},{"type":52,"tag":160,"props":21348,"children":21349},{"style":1771},[21350],{"type":58,"value":20423},{"type":52,"tag":160,"props":21352,"children":21353},{"class":162,"line":483},[21354,21358,21362,21366,21370,21374],{"type":52,"tag":160,"props":21355,"children":21356},{"style":4181},[21357],{"type":58,"value":20431},{"type":52,"tag":160,"props":21359,"children":21360},{"style":1771},[21361],{"type":58,"value":11222},{"type":52,"tag":160,"props":21363,"children":21364},{"style":4080},[21365],{"type":58,"value":3931},{"type":52,"tag":160,"props":21367,"children":21368},{"style":1771},[21369],{"type":58,"value":20444},{"type":52,"tag":160,"props":21371,"children":21372},{"style":4181},[21373],{"type":58,"value":11235},{"type":52,"tag":160,"props":21375,"children":21376},{"style":173},[21377],{"type":58,"value":20453},{"type":52,"tag":160,"props":21379,"children":21380},{"class":162,"line":492},[21381],{"type":52,"tag":160,"props":21382,"children":21383},{"style":4080},[21384],{"type":58,"value":20461},{"type":52,"tag":160,"props":21386,"children":21387},{"class":162,"line":501},[21388,21392,21396],{"type":52,"tag":160,"props":21389,"children":21390},{"style":4080},[21391],{"type":58,"value":20469},{"type":52,"tag":160,"props":21393,"children":21394},{"style":4181},[21395],{"type":58,"value":10814},{"type":52,"tag":160,"props":21397,"children":21398},{"style":4080},[21399],{"type":58,"value":20225},{"type":52,"tag":160,"props":21401,"children":21402},{"class":162,"line":510},[21403],{"type":52,"tag":160,"props":21404,"children":21405},{"style":4181},[21406],{"type":58,"value":20233},{"type":52,"tag":160,"props":21408,"children":21409},{"class":162,"line":519},[21410],{"type":52,"tag":160,"props":21411,"children":21412},{"style":4080},[21413],{"type":58,"value":20492},{"type":52,"tag":160,"props":21415,"children":21416},{"class":162,"line":528},[21417,21421,21425,21429,21433,21437],{"type":52,"tag":160,"props":21418,"children":21419},{"style":1771},[21420],{"type":58,"value":20500},{"type":52,"tag":160,"props":21422,"children":21423},{"style":4080},[21424],{"type":58,"value":10763},{"type":52,"tag":160,"props":21426,"children":21427},{"style":4181},[21428],{"type":58,"value":20509},{"type":52,"tag":160,"props":21430,"children":21431},{"style":4080},[21432],{"type":58,"value":20514},{"type":52,"tag":160,"props":21434,"children":21435},{"style":4181},[21436],{"type":58,"value":10814},{"type":52,"tag":160,"props":21438,"children":21439},{"style":4080},[21440],{"type":58,"value":20523},{"type":52,"tag":160,"props":21442,"children":21443},{"class":162,"line":537},[21444,21448],{"type":52,"tag":160,"props":21445,"children":21446},{"style":4181},[21447],{"type":58,"value":20345},{"type":52,"tag":160,"props":21449,"children":21450},{"style":4080},[21451],{"type":58,"value":20535},{"type":52,"tag":160,"props":21453,"children":21454},{"class":162,"line":546},[21455,21459],{"type":52,"tag":160,"props":21456,"children":21457},{"style":4181},[21458],{"type":58,"value":20543},{"type":52,"tag":160,"props":21460,"children":21461},{"style":4080},[21462],{"type":58,"value":20548},{"type":52,"tag":160,"props":21464,"children":21465},{"class":162,"line":555},[21466],{"type":52,"tag":160,"props":21467,"children":21468},{"style":4080},[21469],{"type":58,"value":11307},{"type":52,"tag":160,"props":21471,"children":21472},{"class":162,"line":564},[21473],{"type":52,"tag":160,"props":21474,"children":21475},{"style":4181},[21476],{"type":58,"value":10608},{"type":52,"tag":160,"props":21478,"children":21479},{"class":162,"line":573},[21480,21484,21488,21492],{"type":52,"tag":160,"props":21481,"children":21482},{"style":1771},[21483],{"type":58,"value":20570},{"type":52,"tag":160,"props":21485,"children":21486},{"style":4080},[21487],{"type":58,"value":3931},{"type":52,"tag":160,"props":21489,"children":21490},{"style":1771},[21491],{"type":58,"value":20579},{"type":52,"tag":160,"props":21493,"children":21494},{"style":4080},[21495],{"type":58,"value":10656},{"type":52,"tag":160,"props":21497,"children":21498},{"class":162,"line":582},[21499,21503,21507,21511],{"type":52,"tag":160,"props":21500,"children":21501},{"style":1771},[21502],{"type":58,"value":20591},{"type":52,"tag":160,"props":21504,"children":21505},{"style":4080},[21506],{"type":58,"value":3931},{"type":52,"tag":160,"props":21508,"children":21509},{"style":1771},[21510],{"type":58,"value":20600},{"type":52,"tag":160,"props":21512,"children":21513},{"style":4080},[21514],{"type":58,"value":10656},{"type":52,"tag":160,"props":21516,"children":21517},{"class":162,"line":591},[21518,21523,21527,21531,21535,21539,21543,21547,21551,21555,21559,21563,21567],{"type":52,"tag":160,"props":21519,"children":21520},{"style":4080},[21521],{"type":58,"value":21522},"    DATE_DIFF(",{"type":52,"tag":160,"props":21524,"children":21525},{"style":1771},[21526],{"type":58,"value":20630},{"type":52,"tag":160,"props":21528,"children":21529},{"style":4080},[21530],{"type":58,"value":3931},{"type":52,"tag":160,"props":21532,"children":21533},{"style":1771},[21534],{"type":58,"value":20655},{"type":52,"tag":160,"props":21536,"children":21537},{"style":4080},[21538],{"type":58,"value":3976},{"type":52,"tag":160,"props":21540,"children":21541},{"style":1771},[21542],{"type":58,"value":20630},{"type":52,"tag":160,"props":21544,"children":21545},{"style":4080},[21546],{"type":58,"value":3931},{"type":52,"tag":160,"props":21548,"children":21549},{"style":1771},[21550],{"type":58,"value":20579},{"type":52,"tag":160,"props":21552,"children":21553},{"style":4080},[21554],{"type":58,"value":3976},{"type":52,"tag":160,"props":21556,"children":21557},{"style":4181},[21558],{"type":58,"value":21203},{"type":52,"tag":160,"props":21560,"children":21561},{"style":4080},[21562],{"type":58,"value":11279},{"type":52,"tag":160,"props":21564,"children":21565},{"style":4181},[21566],{"type":58,"value":10814},{"type":52,"tag":160,"props":21568,"children":21569},{"style":4080},[21570],{"type":58,"value":20668},{"type":52,"tag":160,"props":21572,"children":21573},{"class":162,"line":599},[21574,21578,21582,21586,21590,21594,21598,21602,21606],{"type":52,"tag":160,"props":21575,"children":21576},{"style":1771},[21577],{"type":58,"value":18286},{"type":52,"tag":160,"props":21579,"children":21580},{"style":4080},[21581],{"type":58,"value":10763},{"type":52,"tag":160,"props":21583,"children":21584},{"style":4181},[21585],{"type":58,"value":20509},{"type":52,"tag":160,"props":21587,"children":21588},{"style":1771},[21589],{"type":58,"value":20688},{"type":52,"tag":160,"props":21591,"children":21592},{"style":4080},[21593],{"type":58,"value":3931},{"type":52,"tag":160,"props":21595,"children":21596},{"style":1771},[21597],{"type":58,"value":20250},{"type":52,"tag":160,"props":21599,"children":21600},{"style":4080},[21601],{"type":58,"value":11279},{"type":52,"tag":160,"props":21603,"children":21604},{"style":4181},[21605],{"type":58,"value":10814},{"type":52,"tag":160,"props":21607,"children":21608},{"style":4080},[21609],{"type":58,"value":20709},{"type":52,"tag":160,"props":21611,"children":21612},{"class":162,"line":608},[21613,21617,21621,21625,21629,21633,21637,21641,21645,21649,21653,21657,21661,21665,21669,21673,21677,21681,21685,21689,21693,21697,21701,21705,21709],{"type":52,"tag":160,"props":21614,"children":21615},{"style":1771},[21616],{"type":58,"value":18503},{"type":52,"tag":160,"props":21618,"children":21619},{"style":4080},[21620],{"type":58,"value":10763},{"type":52,"tag":160,"props":21622,"children":21623},{"style":1771},[21624],{"type":58,"value":19177},{"type":52,"tag":160,"props":21626,"children":21627},{"style":4080},[21628],{"type":58,"value":10763},{"type":52,"tag":160,"props":21630,"children":21631},{"style":4181},[21632],{"type":58,"value":20509},{"type":52,"tag":160,"props":21634,"children":21635},{"style":1771},[21636],{"type":58,"value":20688},{"type":52,"tag":160,"props":21638,"children":21639},{"style":4080},[21640],{"type":58,"value":3931},{"type":52,"tag":160,"props":21642,"children":21643},{"style":1771},[21644],{"type":58,"value":20250},{"type":52,"tag":160,"props":21646,"children":21647},{"style":4080},[21648],{"type":58,"value":11279},{"type":52,"tag":160,"props":21650,"children":21651},{"style":4181},[21652],{"type":58,"value":18513},{"type":52,"tag":160,"props":21654,"children":21655},{"style":1771},[21656],{"type":58,"value":19099},{"type":52,"tag":160,"props":21658,"children":21659},{"style":4080},[21660],{"type":58,"value":10763},{"type":52,"tag":160,"props":21662,"children":21663},{"style":1771},[21664],{"type":58,"value":20738},{"type":52,"tag":160,"props":21666,"children":21667},{"style":4080},[21668],{"type":58,"value":3931},{"type":52,"tag":160,"props":21670,"children":21671},{"style":1771},[21672],{"type":58,"value":20600},{"type":52,"tag":160,"props":21674,"children":21675},{"style":4080},[21676],{"type":58,"value":3976},{"type":52,"tag":160,"props":21678,"children":21679},{"style":1771},[21680],{"type":58,"value":11098},{"type":52,"tag":160,"props":21682,"children":21683},{"style":4080},[21684],{"type":58,"value":11279},{"type":52,"tag":160,"props":21686,"children":21687},{"style":4181},[21688],{"type":58,"value":16713},{"type":52,"tag":160,"props":21690,"children":21691},{"style":1771},[21692],{"type":58,"value":11089},{"type":52,"tag":160,"props":21694,"children":21695},{"style":4080},[21696],{"type":58,"value":3976},{"type":52,"tag":160,"props":21698,"children":21699},{"style":1771},[21700],{"type":58,"value":10804},{"type":52,"tag":160,"props":21702,"children":21703},{"style":4080},[21704],{"type":58,"value":11279},{"type":52,"tag":160,"props":21706,"children":21707},{"style":4181},[21708],{"type":58,"value":10814},{"type":52,"tag":160,"props":21710,"children":21711},{"style":4080},[21712],{"type":58,"value":20787},{"type":52,"tag":160,"props":21714,"children":21715},{"class":162,"line":617},[21716,21720,21724,21728,21732,21736,21740,21744],{"type":52,"tag":160,"props":21717,"children":21718},{"style":1771},[21719],{"type":58,"value":18371},{"type":52,"tag":160,"props":21721,"children":21722},{"style":4080},[21723],{"type":58,"value":10763},{"type":52,"tag":160,"props":21725,"children":21726},{"style":1771},[21727],{"type":58,"value":20630},{"type":52,"tag":160,"props":21729,"children":21730},{"style":4080},[21731],{"type":58,"value":3931},{"type":52,"tag":160,"props":21733,"children":21734},{"style":1771},[21735],{"type":58,"value":20811},{"type":52,"tag":160,"props":21737,"children":21738},{"style":4080},[21739],{"type":58,"value":11279},{"type":52,"tag":160,"props":21741,"children":21742},{"style":4181},[21743],{"type":58,"value":10814},{"type":52,"tag":160,"props":21745,"children":21746},{"style":4080},[21747],{"type":58,"value":20824},{"type":52,"tag":160,"props":21749,"children":21750},{"class":162,"line":626},[21751,21755,21759,21763,21767,21771,21775,21779,21783,21787,21791,21795,21799,21803,21807,21811,21815,21819,21823,21827,21831],{"type":52,"tag":160,"props":21752,"children":21753},{"style":1771},[21754],{"type":58,"value":18503},{"type":52,"tag":160,"props":21756,"children":21757},{"style":4080},[21758],{"type":58,"value":10763},{"type":52,"tag":160,"props":21760,"children":21761},{"style":1771},[21762],{"type":58,"value":19042},{"type":52,"tag":160,"props":21764,"children":21765},{"style":4080},[21766],{"type":58,"value":10763},{"type":52,"tag":160,"props":21768,"children":21769},{"style":1771},[21770],{"type":58,"value":20630},{"type":52,"tag":160,"props":21772,"children":21773},{"style":4080},[21774],{"type":58,"value":3931},{"type":52,"tag":160,"props":21776,"children":21777},{"style":1771},[21778],{"type":58,"value":20811},{"type":52,"tag":160,"props":21780,"children":21781},{"style":4080},[21782],{"type":58,"value":11279},{"type":52,"tag":160,"props":21784,"children":21785},{"style":4181},[21786],{"type":58,"value":18513},{"type":52,"tag":160,"props":21788,"children":21789},{"style":1771},[21790],{"type":58,"value":19099},{"type":52,"tag":160,"props":21792,"children":21793},{"style":4080},[21794],{"type":58,"value":10763},{"type":52,"tag":160,"props":21796,"children":21797},{"style":1771},[21798],{"type":58,"value":20738},{"type":52,"tag":160,"props":21800,"children":21801},{"style":4080},[21802],{"type":58,"value":3931},{"type":52,"tag":160,"props":21804,"children":21805},{"style":1771},[21806],{"type":58,"value":20600},{"type":52,"tag":160,"props":21808,"children":21809},{"style":4080},[21810],{"type":58,"value":3976},{"type":52,"tag":160,"props":21812,"children":21813},{"style":1771},[21814],{"type":58,"value":11098},{"type":52,"tag":160,"props":21816,"children":21817},{"style":4080},[21818],{"type":58,"value":18532},{"type":52,"tag":160,"props":21820,"children":21821},{"style":1771},[21822],{"type":58,"value":10804},{"type":52,"tag":160,"props":21824,"children":21825},{"style":4080},[21826],{"type":58,"value":11279},{"type":52,"tag":160,"props":21828,"children":21829},{"style":4181},[21830],{"type":58,"value":10814},{"type":52,"tag":160,"props":21832,"children":21833},{"style":4080},[21834],{"type":58,"value":20889},{"type":52,"tag":160,"props":21836,"children":21837},{"class":162,"line":635},[21838,21842],{"type":52,"tag":160,"props":21839,"children":21840},{"style":4181},[21841],{"type":58,"value":11165},{"type":52,"tag":160,"props":21843,"children":21844},{"style":4080},[21845],{"type":58,"value":20901},{"type":52,"tag":160,"props":21847,"children":21848},{"class":162,"line":644},[21849,21853],{"type":52,"tag":160,"props":21850,"children":21851},{"style":4181},[21852],{"type":58,"value":20909},{"type":52,"tag":160,"props":21854,"children":21855},{"style":4080},[21856],{"type":58,"value":20914},{"type":52,"tag":160,"props":21858,"children":21859},{"class":162,"line":653},[21860,21864,21868,21872,21876,21880,21884,21888],{"type":52,"tag":160,"props":21861,"children":21862},{"style":4181},[21863],{"type":58,"value":11217},{"type":52,"tag":160,"props":21865,"children":21866},{"style":1771},[21867],{"type":58,"value":20688},{"type":52,"tag":160,"props":21869,"children":21870},{"style":4080},[21871],{"type":58,"value":3931},{"type":52,"tag":160,"props":21873,"children":21874},{"style":1771},[21875],{"type":58,"value":20579},{"type":52,"tag":160,"props":21877,"children":21878},{"style":4181},[21879],{"type":58,"value":11235},{"type":52,"tag":160,"props":21881,"children":21882},{"style":1771},[21883],{"type":58,"value":20942},{"type":52,"tag":160,"props":21885,"children":21886},{"style":4080},[21887],{"type":58,"value":3931},{"type":52,"tag":160,"props":21889,"children":21890},{"style":1771},[21891],{"type":58,"value":20951},{"type":52,"tag":160,"props":21893,"children":21894},{"class":162,"line":662},[21895,21899,21903,21907,21911,21915,21919,21923,21927],{"type":52,"tag":160,"props":21896,"children":21897},{"style":4181},[21898],{"type":58,"value":17161},{"type":52,"tag":160,"props":21900,"children":21901},{"style":1771},[21902],{"type":58,"value":20688},{"type":52,"tag":160,"props":21904,"children":21905},{"style":4080},[21906],{"type":58,"value":3931},{"type":52,"tag":160,"props":21908,"children":21909},{"style":1771},[21910],{"type":58,"value":20579},{"type":52,"tag":160,"props":21912,"children":21913},{"style":4080},[21914],{"type":58,"value":3976},{"type":52,"tag":160,"props":21916,"children":21917},{"style":1771},[21918],{"type":58,"value":20738},{"type":52,"tag":160,"props":21920,"children":21921},{"style":4080},[21922],{"type":58,"value":3931},{"type":52,"tag":160,"props":21924,"children":21925},{"style":1771},[21926],{"type":58,"value":20600},{"type":52,"tag":160,"props":21928,"children":21929},{"style":4080},[21930],{"type":58,"value":20991},{"type":52,"tag":160,"props":21932,"children":21933},{"class":162,"line":671},[21934,21938,21942,21946,21950],{"type":52,"tag":160,"props":21935,"children":21936},{"style":4181},[21937],{"type":58,"value":18652},{"type":52,"tag":160,"props":21939,"children":21940},{"style":1771},[21941],{"type":58,"value":20688},{"type":52,"tag":160,"props":21943,"children":21944},{"style":4080},[21945],{"type":58,"value":3931},{"type":52,"tag":160,"props":21947,"children":21948},{"style":1771},[21949],{"type":58,"value":20579},{"type":52,"tag":160,"props":21951,"children":21952},{"style":4080},[21953],{"type":58,"value":20991},{"type":52,"tag":259,"props":21955,"children":21956},{"v-slot:snowflake":7},[21957],{"type":52,"tag":150,"props":21958,"children":21960},{"className":10404,"code":21959,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_customer_cohorts\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_orders\n  - staging.stg_customers\ncolumns:\n  - name: cohort_month\n    type: date\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nWITH customer_orders AS (\n    SELECT\n        o.customer_email,\n        DATE_TRUNC('month', c.first_seen_at) AS cohort_month,\n        DATE_TRUNC('month', o.order_date) AS order_month,\n        o.order_total\n    FROM staging.stg_orders o\n    INNER JOIN staging.stg_customers c\n        ON o.customer_email = c.customer_email\n    WHERE o.payment_status = 'paid'\n),\ncohort_sizes AS (\n    SELECT\n        cohort_month,\n        count(DISTINCT customer_email) AS cohort_size\n    FROM customer_orders\n    GROUP BY cohort_month\n)\nSELECT\n    co.cohort_month,\n    cs.cohort_size,\n    DATEDIFF('month', co.cohort_month, co.order_month) AS months_since_first,\n    count(DISTINCT co.customer_email) AS active_customers,\n    round(count(DISTINCT co.customer_email) \u002F NULLIF(cs.cohort_size, 0) * 100, 2) AS retention_rate,\n    sum(co.order_total) AS cohort_revenue,\n    round(sum(co.order_total) \u002F NULLIF(cs.cohort_size, 0), 2) AS revenue_per_customer\nFROM customer_orders co\nINNER JOIN cohort_sizes cs\n    ON co.cohort_month = cs.cohort_month\nGROUP BY co.cohort_month, cs.cohort_size, months_since_first\nORDER BY co.cohort_month, months_since_first\n",[21961],{"type":52,"tag":71,"props":21962,"children":21963},{"__ignoreMap":7},[21964,21971,21978,21985,21992,21999,22006,22013,22020,22027,22034,22041,22048,22055,22062,22069,22088,22095,22114,22153,22192,22207,22230,22253,22288,22315,22322,22337,22344,22351,22378,22389,22400,22407,22414,22433,22452,22512,22551,22654,22689,22776,22787,22798,22833,22872],{"type":52,"tag":160,"props":21965,"children":21966},{"class":162,"line":163},[21967],{"type":52,"tag":160,"props":21968,"children":21969},{"style":10416},[21970],{"type":58,"value":10419},{"type":52,"tag":160,"props":21972,"children":21973},{"class":162,"line":281},[21974],{"type":52,"tag":160,"props":21975,"children":21976},{"style":10416},[21977],{"type":58,"value":20110},{"type":52,"tag":160,"props":21979,"children":21980},{"class":162,"line":290},[21981],{"type":52,"tag":160,"props":21982,"children":21983},{"style":10416},[21984],{"type":58,"value":10435},{"type":52,"tag":160,"props":21986,"children":21987},{"class":162,"line":299},[21988],{"type":52,"tag":160,"props":21989,"children":21990},{"style":10416},[21991],{"type":58,"value":10443},{"type":52,"tag":160,"props":21993,"children":21994},{"class":162,"line":27},[21995],{"type":52,"tag":160,"props":21996,"children":21997},{"style":10416},[21998],{"type":58,"value":10451},{"type":52,"tag":160,"props":22000,"children":22001},{"class":162,"line":316},[22002],{"type":52,"tag":160,"props":22003,"children":22004},{"style":10416},[22005],{"type":58,"value":10459},{"type":52,"tag":160,"props":22007,"children":22008},{"class":162,"line":325},[22009],{"type":52,"tag":160,"props":22010,"children":22011},{"style":10416},[22012],{"type":58,"value":18170},{"type":52,"tag":160,"props":22014,"children":22015},{"class":162,"line":334},[22016],{"type":52,"tag":160,"props":22017,"children":22018},{"style":10416},[22019],{"type":58,"value":20153},{"type":52,"tag":160,"props":22021,"children":22022},{"class":162,"line":343},[22023],{"type":52,"tag":160,"props":22024,"children":22025},{"style":10416},[22026],{"type":58,"value":10483},{"type":52,"tag":160,"props":22028,"children":22029},{"class":162,"line":11},[22030],{"type":52,"tag":160,"props":22031,"children":22032},{"style":10416},[22033],{"type":58,"value":20168},{"type":52,"tag":160,"props":22035,"children":22036},{"class":162,"line":359},[22037],{"type":52,"tag":160,"props":22038,"children":22039},{"style":10416},[22040],{"type":58,"value":14479},{"type":52,"tag":160,"props":22042,"children":22043},{"class":162,"line":368},[22044],{"type":52,"tag":160,"props":22045,"children":22046},{"style":10416},[22047],{"type":58,"value":10507},{"type":52,"tag":160,"props":22049,"children":22050},{"class":162,"line":377},[22051],{"type":52,"tag":160,"props":22052,"children":22053},{"style":10416},[22054],{"type":58,"value":10515},{"type":52,"tag":160,"props":22056,"children":22057},{"class":162,"line":386},[22058],{"type":52,"tag":160,"props":22059,"children":22060},{"style":10416},[22061],{"type":58,"value":10593},{"type":52,"tag":160,"props":22063,"children":22064},{"class":162,"line":395},[22065],{"type":52,"tag":160,"props":22066,"children":22067},{"emptyLinePlaceholder":26},[22068],{"type":58,"value":287},{"type":52,"tag":160,"props":22070,"children":22071},{"class":162,"line":404},[22072,22076,22080,22084],{"type":52,"tag":160,"props":22073,"children":22074},{"style":4181},[22075],{"type":58,"value":20211},{"type":52,"tag":160,"props":22077,"children":22078},{"style":4080},[22079],{"type":58,"value":20216},{"type":52,"tag":160,"props":22081,"children":22082},{"style":4181},[22083],{"type":58,"value":10814},{"type":52,"tag":160,"props":22085,"children":22086},{"style":4080},[22087],{"type":58,"value":20225},{"type":52,"tag":160,"props":22089,"children":22090},{"class":162,"line":413},[22091],{"type":52,"tag":160,"props":22092,"children":22093},{"style":4181},[22094],{"type":58,"value":20233},{"type":52,"tag":160,"props":22096,"children":22097},{"class":162,"line":422},[22098,22102,22106,22110],{"type":52,"tag":160,"props":22099,"children":22100},{"style":1771},[22101],{"type":58,"value":20241},{"type":52,"tag":160,"props":22103,"children":22104},{"style":4080},[22105],{"type":58,"value":3931},{"type":52,"tag":160,"props":22107,"children":22108},{"style":1771},[22109],{"type":58,"value":20250},{"type":52,"tag":160,"props":22111,"children":22112},{"style":4080},[22113],{"type":58,"value":10656},{"type":52,"tag":160,"props":22115,"children":22116},{"class":162,"line":430},[22117,22121,22125,22129,22133,22137,22141,22145,22149],{"type":52,"tag":160,"props":22118,"children":22119},{"style":4080},[22120],{"type":58,"value":21182},{"type":52,"tag":160,"props":22122,"children":22123},{"style":173},[22124],{"type":58,"value":20621},{"type":52,"tag":160,"props":22126,"children":22127},{"style":4080},[22128],{"type":58,"value":3976},{"type":52,"tag":160,"props":22130,"children":22131},{"style":1771},[22132],{"type":58,"value":11293},{"type":52,"tag":160,"props":22134,"children":22135},{"style":4080},[22136],{"type":58,"value":3931},{"type":52,"tag":160,"props":22138,"children":22139},{"style":1771},[22140],{"type":58,"value":20275},{"type":52,"tag":160,"props":22142,"children":22143},{"style":4080},[22144],{"type":58,"value":11279},{"type":52,"tag":160,"props":22146,"children":22147},{"style":4181},[22148],{"type":58,"value":10814},{"type":52,"tag":160,"props":22150,"children":22151},{"style":4080},[22152],{"type":58,"value":20288},{"type":52,"tag":160,"props":22154,"children":22155},{"class":162,"line":439},[22156,22160,22164,22168,22172,22176,22180,22184,22188],{"type":52,"tag":160,"props":22157,"children":22158},{"style":4080},[22159],{"type":58,"value":21182},{"type":52,"tag":160,"props":22161,"children":22162},{"style":173},[22163],{"type":58,"value":20621},{"type":52,"tag":160,"props":22165,"children":22166},{"style":4080},[22167],{"type":58,"value":3976},{"type":52,"tag":160,"props":22169,"children":22170},{"style":1771},[22171],{"type":58,"value":10768},{"type":52,"tag":160,"props":22173,"children":22174},{"style":4080},[22175],{"type":58,"value":3931},{"type":52,"tag":160,"props":22177,"children":22178},{"style":1771},[22179],{"type":58,"value":20308},{"type":52,"tag":160,"props":22181,"children":22182},{"style":4080},[22183],{"type":58,"value":11279},{"type":52,"tag":160,"props":22185,"children":22186},{"style":4181},[22187],{"type":58,"value":10814},{"type":52,"tag":160,"props":22189,"children":22190},{"style":4080},[22191],{"type":58,"value":20321},{"type":52,"tag":160,"props":22193,"children":22194},{"class":162,"line":448},[22195,22199,22203],{"type":52,"tag":160,"props":22196,"children":22197},{"style":1771},[22198],{"type":58,"value":20241},{"type":52,"tag":160,"props":22200,"children":22201},{"style":4080},[22202],{"type":58,"value":3931},{"type":52,"tag":160,"props":22204,"children":22205},{"style":1771},[22206],{"type":58,"value":20337},{"type":52,"tag":160,"props":22208,"children":22209},{"class":162,"line":457},[22210,22214,22218,22222,22226],{"type":52,"tag":160,"props":22211,"children":22212},{"style":4181},[22213],{"type":58,"value":20345},{"type":52,"tag":160,"props":22215,"children":22216},{"style":1771},[22217],{"type":58,"value":18623},{"type":52,"tag":160,"props":22219,"children":22220},{"style":4080},[22221],{"type":58,"value":3931},{"type":52,"tag":160,"props":22223,"children":22224},{"style":1771},[22225],{"type":58,"value":19245},{"type":52,"tag":160,"props":22227,"children":22228},{"style":4080},[22229],{"type":58,"value":11184},{"type":52,"tag":160,"props":22231,"children":22232},{"class":162,"line":466},[22233,22237,22241,22245,22249],{"type":52,"tag":160,"props":22234,"children":22235},{"style":4181},[22236],{"type":58,"value":20369},{"type":52,"tag":160,"props":22238,"children":22239},{"style":1771},[22240],{"type":58,"value":18623},{"type":52,"tag":160,"props":22242,"children":22243},{"style":4080},[22244],{"type":58,"value":3931},{"type":52,"tag":160,"props":22246,"children":22247},{"style":1771},[22248],{"type":58,"value":20382},{"type":52,"tag":160,"props":22250,"children":22251},{"style":4080},[22252],{"type":58,"value":11209},{"type":52,"tag":160,"props":22254,"children":22255},{"class":162,"line":474},[22256,22260,22264,22268,22272,22276,22280,22284],{"type":52,"tag":160,"props":22257,"children":22258},{"style":4181},[22259],{"type":58,"value":20394},{"type":52,"tag":160,"props":22261,"children":22262},{"style":1771},[22263],{"type":58,"value":11222},{"type":52,"tag":160,"props":22265,"children":22266},{"style":4080},[22267],{"type":58,"value":3931},{"type":52,"tag":160,"props":22269,"children":22270},{"style":1771},[22271],{"type":58,"value":20250},{"type":52,"tag":160,"props":22273,"children":22274},{"style":4181},[22275],{"type":58,"value":11235},{"type":52,"tag":160,"props":22277,"children":22278},{"style":1771},[22279],{"type":58,"value":11240},{"type":52,"tag":160,"props":22281,"children":22282},{"style":4080},[22283],{"type":58,"value":3931},{"type":52,"tag":160,"props":22285,"children":22286},{"style":1771},[22287],{"type":58,"value":20423},{"type":52,"tag":160,"props":22289,"children":22290},{"class":162,"line":483},[22291,22295,22299,22303,22307,22311],{"type":52,"tag":160,"props":22292,"children":22293},{"style":4181},[22294],{"type":58,"value":20431},{"type":52,"tag":160,"props":22296,"children":22297},{"style":1771},[22298],{"type":58,"value":11222},{"type":52,"tag":160,"props":22300,"children":22301},{"style":4080},[22302],{"type":58,"value":3931},{"type":52,"tag":160,"props":22304,"children":22305},{"style":1771},[22306],{"type":58,"value":20444},{"type":52,"tag":160,"props":22308,"children":22309},{"style":4181},[22310],{"type":58,"value":11235},{"type":52,"tag":160,"props":22312,"children":22313},{"style":173},[22314],{"type":58,"value":20453},{"type":52,"tag":160,"props":22316,"children":22317},{"class":162,"line":492},[22318],{"type":52,"tag":160,"props":22319,"children":22320},{"style":4080},[22321],{"type":58,"value":20461},{"type":52,"tag":160,"props":22323,"children":22324},{"class":162,"line":501},[22325,22329,22333],{"type":52,"tag":160,"props":22326,"children":22327},{"style":4080},[22328],{"type":58,"value":20469},{"type":52,"tag":160,"props":22330,"children":22331},{"style":4181},[22332],{"type":58,"value":10814},{"type":52,"tag":160,"props":22334,"children":22335},{"style":4080},[22336],{"type":58,"value":20225},{"type":52,"tag":160,"props":22338,"children":22339},{"class":162,"line":510},[22340],{"type":52,"tag":160,"props":22341,"children":22342},{"style":4181},[22343],{"type":58,"value":20233},{"type":52,"tag":160,"props":22345,"children":22346},{"class":162,"line":519},[22347],{"type":52,"tag":160,"props":22348,"children":22349},{"style":4080},[22350],{"type":58,"value":20492},{"type":52,"tag":160,"props":22352,"children":22353},{"class":162,"line":528},[22354,22358,22362,22366,22370,22374],{"type":52,"tag":160,"props":22355,"children":22356},{"style":1771},[22357],{"type":58,"value":20500},{"type":52,"tag":160,"props":22359,"children":22360},{"style":4080},[22361],{"type":58,"value":10763},{"type":52,"tag":160,"props":22363,"children":22364},{"style":4181},[22365],{"type":58,"value":20509},{"type":52,"tag":160,"props":22367,"children":22368},{"style":4080},[22369],{"type":58,"value":20514},{"type":52,"tag":160,"props":22371,"children":22372},{"style":4181},[22373],{"type":58,"value":10814},{"type":52,"tag":160,"props":22375,"children":22376},{"style":4080},[22377],{"type":58,"value":20523},{"type":52,"tag":160,"props":22379,"children":22380},{"class":162,"line":537},[22381,22385],{"type":52,"tag":160,"props":22382,"children":22383},{"style":4181},[22384],{"type":58,"value":20345},{"type":52,"tag":160,"props":22386,"children":22387},{"style":4080},[22388],{"type":58,"value":20535},{"type":52,"tag":160,"props":22390,"children":22391},{"class":162,"line":546},[22392,22396],{"type":52,"tag":160,"props":22393,"children":22394},{"style":4181},[22395],{"type":58,"value":20543},{"type":52,"tag":160,"props":22397,"children":22398},{"style":4080},[22399],{"type":58,"value":20548},{"type":52,"tag":160,"props":22401,"children":22402},{"class":162,"line":555},[22403],{"type":52,"tag":160,"props":22404,"children":22405},{"style":4080},[22406],{"type":58,"value":11307},{"type":52,"tag":160,"props":22408,"children":22409},{"class":162,"line":564},[22410],{"type":52,"tag":160,"props":22411,"children":22412},{"style":4181},[22413],{"type":58,"value":10608},{"type":52,"tag":160,"props":22415,"children":22416},{"class":162,"line":573},[22417,22421,22425,22429],{"type":52,"tag":160,"props":22418,"children":22419},{"style":1771},[22420],{"type":58,"value":20570},{"type":52,"tag":160,"props":22422,"children":22423},{"style":4080},[22424],{"type":58,"value":3931},{"type":52,"tag":160,"props":22426,"children":22427},{"style":1771},[22428],{"type":58,"value":20579},{"type":52,"tag":160,"props":22430,"children":22431},{"style":4080},[22432],{"type":58,"value":10656},{"type":52,"tag":160,"props":22434,"children":22435},{"class":162,"line":582},[22436,22440,22444,22448],{"type":52,"tag":160,"props":22437,"children":22438},{"style":1771},[22439],{"type":58,"value":20591},{"type":52,"tag":160,"props":22441,"children":22442},{"style":4080},[22443],{"type":58,"value":3931},{"type":52,"tag":160,"props":22445,"children":22446},{"style":1771},[22447],{"type":58,"value":20600},{"type":52,"tag":160,"props":22449,"children":22450},{"style":4080},[22451],{"type":58,"value":10656},{"type":52,"tag":160,"props":22453,"children":22454},{"class":162,"line":591},[22455,22460,22464,22468,22472,22476,22480,22484,22488,22492,22496,22500,22504,22508],{"type":52,"tag":160,"props":22456,"children":22457},{"style":1771},[22458],{"type":58,"value":22459},"    DATEDIFF",{"type":52,"tag":160,"props":22461,"children":22462},{"style":4080},[22463],{"type":58,"value":10763},{"type":52,"tag":160,"props":22465,"children":22466},{"style":173},[22467],{"type":58,"value":20621},{"type":52,"tag":160,"props":22469,"children":22470},{"style":4080},[22471],{"type":58,"value":3976},{"type":52,"tag":160,"props":22473,"children":22474},{"style":1771},[22475],{"type":58,"value":20630},{"type":52,"tag":160,"props":22477,"children":22478},{"style":4080},[22479],{"type":58,"value":3931},{"type":52,"tag":160,"props":22481,"children":22482},{"style":1771},[22483],{"type":58,"value":20579},{"type":52,"tag":160,"props":22485,"children":22486},{"style":4080},[22487],{"type":58,"value":3976},{"type":52,"tag":160,"props":22489,"children":22490},{"style":1771},[22491],{"type":58,"value":20630},{"type":52,"tag":160,"props":22493,"children":22494},{"style":4080},[22495],{"type":58,"value":3931},{"type":52,"tag":160,"props":22497,"children":22498},{"style":1771},[22499],{"type":58,"value":20655},{"type":52,"tag":160,"props":22501,"children":22502},{"style":4080},[22503],{"type":58,"value":11279},{"type":52,"tag":160,"props":22505,"children":22506},{"style":4181},[22507],{"type":58,"value":10814},{"type":52,"tag":160,"props":22509,"children":22510},{"style":4080},[22511],{"type":58,"value":20668},{"type":52,"tag":160,"props":22513,"children":22514},{"class":162,"line":599},[22515,22519,22523,22527,22531,22535,22539,22543,22547],{"type":52,"tag":160,"props":22516,"children":22517},{"style":1771},[22518],{"type":58,"value":18286},{"type":52,"tag":160,"props":22520,"children":22521},{"style":4080},[22522],{"type":58,"value":10763},{"type":52,"tag":160,"props":22524,"children":22525},{"style":4181},[22526],{"type":58,"value":20509},{"type":52,"tag":160,"props":22528,"children":22529},{"style":1771},[22530],{"type":58,"value":20688},{"type":52,"tag":160,"props":22532,"children":22533},{"style":4080},[22534],{"type":58,"value":3931},{"type":52,"tag":160,"props":22536,"children":22537},{"style":1771},[22538],{"type":58,"value":20250},{"type":52,"tag":160,"props":22540,"children":22541},{"style":4080},[22542],{"type":58,"value":11279},{"type":52,"tag":160,"props":22544,"children":22545},{"style":4181},[22546],{"type":58,"value":10814},{"type":52,"tag":160,"props":22548,"children":22549},{"style":4080},[22550],{"type":58,"value":20709},{"type":52,"tag":160,"props":22552,"children":22553},{"class":162,"line":608},[22554,22558,22562,22566,22570,22574,22578,22582,22586,22590,22594,22598,22602,22606,22610,22614,22618,22622,22626,22630,22634,22638,22642,22646,22650],{"type":52,"tag":160,"props":22555,"children":22556},{"style":1771},[22557],{"type":58,"value":18503},{"type":52,"tag":160,"props":22559,"children":22560},{"style":4080},[22561],{"type":58,"value":10763},{"type":52,"tag":160,"props":22563,"children":22564},{"style":1771},[22565],{"type":58,"value":19177},{"type":52,"tag":160,"props":22567,"children":22568},{"style":4080},[22569],{"type":58,"value":10763},{"type":52,"tag":160,"props":22571,"children":22572},{"style":4181},[22573],{"type":58,"value":20509},{"type":52,"tag":160,"props":22575,"children":22576},{"style":1771},[22577],{"type":58,"value":20688},{"type":52,"tag":160,"props":22579,"children":22580},{"style":4080},[22581],{"type":58,"value":3931},{"type":52,"tag":160,"props":22583,"children":22584},{"style":1771},[22585],{"type":58,"value":20250},{"type":52,"tag":160,"props":22587,"children":22588},{"style":4080},[22589],{"type":58,"value":11279},{"type":52,"tag":160,"props":22591,"children":22592},{"style":4181},[22593],{"type":58,"value":18513},{"type":52,"tag":160,"props":22595,"children":22596},{"style":1771},[22597],{"type":58,"value":19099},{"type":52,"tag":160,"props":22599,"children":22600},{"style":4080},[22601],{"type":58,"value":10763},{"type":52,"tag":160,"props":22603,"children":22604},{"style":1771},[22605],{"type":58,"value":20738},{"type":52,"tag":160,"props":22607,"children":22608},{"style":4080},[22609],{"type":58,"value":3931},{"type":52,"tag":160,"props":22611,"children":22612},{"style":1771},[22613],{"type":58,"value":20600},{"type":52,"tag":160,"props":22615,"children":22616},{"style":4080},[22617],{"type":58,"value":3976},{"type":52,"tag":160,"props":22619,"children":22620},{"style":1771},[22621],{"type":58,"value":11098},{"type":52,"tag":160,"props":22623,"children":22624},{"style":4080},[22625],{"type":58,"value":11279},{"type":52,"tag":160,"props":22627,"children":22628},{"style":4181},[22629],{"type":58,"value":16713},{"type":52,"tag":160,"props":22631,"children":22632},{"style":1771},[22633],{"type":58,"value":11089},{"type":52,"tag":160,"props":22635,"children":22636},{"style":4080},[22637],{"type":58,"value":3976},{"type":52,"tag":160,"props":22639,"children":22640},{"style":1771},[22641],{"type":58,"value":10804},{"type":52,"tag":160,"props":22643,"children":22644},{"style":4080},[22645],{"type":58,"value":11279},{"type":52,"tag":160,"props":22647,"children":22648},{"style":4181},[22649],{"type":58,"value":10814},{"type":52,"tag":160,"props":22651,"children":22652},{"style":4080},[22653],{"type":58,"value":20787},{"type":52,"tag":160,"props":22655,"children":22656},{"class":162,"line":617},[22657,22661,22665,22669,22673,22677,22681,22685],{"type":52,"tag":160,"props":22658,"children":22659},{"style":1771},[22660],{"type":58,"value":18371},{"type":52,"tag":160,"props":22662,"children":22663},{"style":4080},[22664],{"type":58,"value":10763},{"type":52,"tag":160,"props":22666,"children":22667},{"style":1771},[22668],{"type":58,"value":20630},{"type":52,"tag":160,"props":22670,"children":22671},{"style":4080},[22672],{"type":58,"value":3931},{"type":52,"tag":160,"props":22674,"children":22675},{"style":1771},[22676],{"type":58,"value":20811},{"type":52,"tag":160,"props":22678,"children":22679},{"style":4080},[22680],{"type":58,"value":11279},{"type":52,"tag":160,"props":22682,"children":22683},{"style":4181},[22684],{"type":58,"value":10814},{"type":52,"tag":160,"props":22686,"children":22687},{"style":4080},[22688],{"type":58,"value":20824},{"type":52,"tag":160,"props":22690,"children":22691},{"class":162,"line":626},[22692,22696,22700,22704,22708,22712,22716,22720,22724,22728,22732,22736,22740,22744,22748,22752,22756,22760,22764,22768,22772],{"type":52,"tag":160,"props":22693,"children":22694},{"style":1771},[22695],{"type":58,"value":18503},{"type":52,"tag":160,"props":22697,"children":22698},{"style":4080},[22699],{"type":58,"value":10763},{"type":52,"tag":160,"props":22701,"children":22702},{"style":1771},[22703],{"type":58,"value":19042},{"type":52,"tag":160,"props":22705,"children":22706},{"style":4080},[22707],{"type":58,"value":10763},{"type":52,"tag":160,"props":22709,"children":22710},{"style":1771},[22711],{"type":58,"value":20630},{"type":52,"tag":160,"props":22713,"children":22714},{"style":4080},[22715],{"type":58,"value":3931},{"type":52,"tag":160,"props":22717,"children":22718},{"style":1771},[22719],{"type":58,"value":20811},{"type":52,"tag":160,"props":22721,"children":22722},{"style":4080},[22723],{"type":58,"value":11279},{"type":52,"tag":160,"props":22725,"children":22726},{"style":4181},[22727],{"type":58,"value":18513},{"type":52,"tag":160,"props":22729,"children":22730},{"style":1771},[22731],{"type":58,"value":19099},{"type":52,"tag":160,"props":22733,"children":22734},{"style":4080},[22735],{"type":58,"value":10763},{"type":52,"tag":160,"props":22737,"children":22738},{"style":1771},[22739],{"type":58,"value":20738},{"type":52,"tag":160,"props":22741,"children":22742},{"style":4080},[22743],{"type":58,"value":3931},{"type":52,"tag":160,"props":22745,"children":22746},{"style":1771},[22747],{"type":58,"value":20600},{"type":52,"tag":160,"props":22749,"children":22750},{"style":4080},[22751],{"type":58,"value":3976},{"type":52,"tag":160,"props":22753,"children":22754},{"style":1771},[22755],{"type":58,"value":11098},{"type":52,"tag":160,"props":22757,"children":22758},{"style":4080},[22759],{"type":58,"value":18532},{"type":52,"tag":160,"props":22761,"children":22762},{"style":1771},[22763],{"type":58,"value":10804},{"type":52,"tag":160,"props":22765,"children":22766},{"style":4080},[22767],{"type":58,"value":11279},{"type":52,"tag":160,"props":22769,"children":22770},{"style":4181},[22771],{"type":58,"value":10814},{"type":52,"tag":160,"props":22773,"children":22774},{"style":4080},[22775],{"type":58,"value":20889},{"type":52,"tag":160,"props":22777,"children":22778},{"class":162,"line":635},[22779,22783],{"type":52,"tag":160,"props":22780,"children":22781},{"style":4181},[22782],{"type":58,"value":11165},{"type":52,"tag":160,"props":22784,"children":22785},{"style":4080},[22786],{"type":58,"value":20901},{"type":52,"tag":160,"props":22788,"children":22789},{"class":162,"line":644},[22790,22794],{"type":52,"tag":160,"props":22791,"children":22792},{"style":4181},[22793],{"type":58,"value":20909},{"type":52,"tag":160,"props":22795,"children":22796},{"style":4080},[22797],{"type":58,"value":20914},{"type":52,"tag":160,"props":22799,"children":22800},{"class":162,"line":653},[22801,22805,22809,22813,22817,22821,22825,22829],{"type":52,"tag":160,"props":22802,"children":22803},{"style":4181},[22804],{"type":58,"value":11217},{"type":52,"tag":160,"props":22806,"children":22807},{"style":1771},[22808],{"type":58,"value":20688},{"type":52,"tag":160,"props":22810,"children":22811},{"style":4080},[22812],{"type":58,"value":3931},{"type":52,"tag":160,"props":22814,"children":22815},{"style":1771},[22816],{"type":58,"value":20579},{"type":52,"tag":160,"props":22818,"children":22819},{"style":4181},[22820],{"type":58,"value":11235},{"type":52,"tag":160,"props":22822,"children":22823},{"style":1771},[22824],{"type":58,"value":20942},{"type":52,"tag":160,"props":22826,"children":22827},{"style":4080},[22828],{"type":58,"value":3931},{"type":52,"tag":160,"props":22830,"children":22831},{"style":1771},[22832],{"type":58,"value":20951},{"type":52,"tag":160,"props":22834,"children":22835},{"class":162,"line":662},[22836,22840,22844,22848,22852,22856,22860,22864,22868],{"type":52,"tag":160,"props":22837,"children":22838},{"style":4181},[22839],{"type":58,"value":17161},{"type":52,"tag":160,"props":22841,"children":22842},{"style":1771},[22843],{"type":58,"value":20688},{"type":52,"tag":160,"props":22845,"children":22846},{"style":4080},[22847],{"type":58,"value":3931},{"type":52,"tag":160,"props":22849,"children":22850},{"style":1771},[22851],{"type":58,"value":20579},{"type":52,"tag":160,"props":22853,"children":22854},{"style":4080},[22855],{"type":58,"value":3976},{"type":52,"tag":160,"props":22857,"children":22858},{"style":1771},[22859],{"type":58,"value":20738},{"type":52,"tag":160,"props":22861,"children":22862},{"style":4080},[22863],{"type":58,"value":3931},{"type":52,"tag":160,"props":22865,"children":22866},{"style":1771},[22867],{"type":58,"value":20600},{"type":52,"tag":160,"props":22869,"children":22870},{"style":4080},[22871],{"type":58,"value":20991},{"type":52,"tag":160,"props":22873,"children":22874},{"class":162,"line":671},[22875,22879,22883,22887,22891],{"type":52,"tag":160,"props":22876,"children":22877},{"style":4181},[22878],{"type":58,"value":18652},{"type":52,"tag":160,"props":22880,"children":22881},{"style":1771},[22882],{"type":58,"value":20688},{"type":52,"tag":160,"props":22884,"children":22885},{"style":4080},[22886],{"type":58,"value":3931},{"type":52,"tag":160,"props":22888,"children":22889},{"style":1771},[22890],{"type":58,"value":20579},{"type":52,"tag":160,"props":22892,"children":22893},{"style":4080},[22894],{"type":58,"value":20991},{"type":52,"tag":131,"props":22896,"children":22898},{"id":22897},"_3-product-performance-rpt_product_performancesql",[22899,22901],{"type":58,"value":22900},"3) Product performance - ",{"type":52,"tag":71,"props":22902,"children":22904},{"className":22903},[],[22905],{"type":58,"value":22906},"rpt_product_performance.sql",{"type":52,"tag":107,"props":22908,"children":22909},{},[22910],{"type":58,"value":22911},"A product catalog report showing all products with their key attributes and status.",{"type":52,"tag":4021,"props":22913,"children":22914},{},[22915],{"type":52,"tag":107,"props":22916,"children":22917},{},[22918,22920,22925,22927,22932],{"type":58,"value":22919},"A full product performance report would need an order_line_items staging table to connect orders to individual products. Shopify stores line items as nested JSON in the orders table. For production use, ask Claude Code to create a ",{"type":52,"tag":71,"props":22921,"children":22923},{"className":22922},[],[22924],{"type":58,"value":1611},{"type":58,"value":22926}," asset that flattens this data. This simplified version shows product catalog metrics from ",{"type":52,"tag":71,"props":22928,"children":22930},{"className":22929},[],[22931],{"type":58,"value":1603},{"type":58,"value":3931},{"type":52,"tag":107,"props":22934,"children":22935},{},[22936,22937,22946],{"type":58,"value":10384},{"type":52,"tag":218,"props":22938,"children":22939},{},[22940],{"type":52,"tag":71,"props":22941,"children":22943},{"className":22942},[],[22944],{"type":58,"value":22945},"ecommerce\u002Fassets\u002Freports\u002Frpt_product_performance.sql",{"type":58,"value":10395},{"type":52,"tag":150,"props":22948,"children":22950},{"className":10404,"code":22949,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_product_performance\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_products\ncolumns:\n  - name: product_id\n    type: varchar\n    checks:\n      - name: not_null\n      - name: unique\n@bruin *\u002F\n\nSELECT\n    product_id,\n    product_name,\n    category,\n    vendor,\n    price,\n    product_status,\n    created_at,\n    updated_at\nFROM staging.stg_products\nORDER BY product_name\n",[22951],{"type":52,"tag":71,"props":22952,"children":22953},{"__ignoreMap":7},[22954,22961,22969,22976,22983,22990,22997,23005,23012,23019,23026,23033,23040,23047,23054,23061,23068,23076,23084,23092,23099,23107,23115,23122,23129,23149],{"type":52,"tag":160,"props":22955,"children":22956},{"class":162,"line":163},[22957],{"type":52,"tag":160,"props":22958,"children":22959},{"style":10416},[22960],{"type":58,"value":10419},{"type":52,"tag":160,"props":22962,"children":22963},{"class":162,"line":281},[22964],{"type":52,"tag":160,"props":22965,"children":22966},{"style":10416},[22967],{"type":58,"value":22968},"name: reports.rpt_product_performance\n",{"type":52,"tag":160,"props":22970,"children":22971},{"class":162,"line":290},[22972],{"type":52,"tag":160,"props":22973,"children":22974},{"style":10416},[22975],{"type":58,"value":10435},{"type":52,"tag":160,"props":22977,"children":22978},{"class":162,"line":299},[22979],{"type":52,"tag":160,"props":22980,"children":22981},{"style":10416},[22982],{"type":58,"value":10443},{"type":52,"tag":160,"props":22984,"children":22985},{"class":162,"line":27},[22986],{"type":52,"tag":160,"props":22987,"children":22988},{"style":10416},[22989],{"type":58,"value":10451},{"type":52,"tag":160,"props":22991,"children":22992},{"class":162,"line":316},[22993],{"type":52,"tag":160,"props":22994,"children":22995},{"style":10416},[22996],{"type":58,"value":10459},{"type":52,"tag":160,"props":22998,"children":22999},{"class":162,"line":325},[23000],{"type":52,"tag":160,"props":23001,"children":23002},{"style":10416},[23003],{"type":58,"value":23004},"  - staging.stg_products\n",{"type":52,"tag":160,"props":23006,"children":23007},{"class":162,"line":334},[23008],{"type":52,"tag":160,"props":23009,"children":23010},{"style":10416},[23011],{"type":58,"value":10483},{"type":52,"tag":160,"props":23013,"children":23014},{"class":162,"line":343},[23015],{"type":52,"tag":160,"props":23016,"children":23017},{"style":10416},[23018],{"type":58,"value":14083},{"type":52,"tag":160,"props":23020,"children":23021},{"class":162,"line":11},[23022],{"type":52,"tag":160,"props":23023,"children":23024},{"style":10416},[23025],{"type":58,"value":10499},{"type":52,"tag":160,"props":23027,"children":23028},{"class":162,"line":359},[23029],{"type":52,"tag":160,"props":23030,"children":23031},{"style":10416},[23032],{"type":58,"value":10507},{"type":52,"tag":160,"props":23034,"children":23035},{"class":162,"line":368},[23036],{"type":52,"tag":160,"props":23037,"children":23038},{"style":10416},[23039],{"type":58,"value":10515},{"type":52,"tag":160,"props":23041,"children":23042},{"class":162,"line":377},[23043],{"type":52,"tag":160,"props":23044,"children":23045},{"style":10416},[23046],{"type":58,"value":10523},{"type":52,"tag":160,"props":23048,"children":23049},{"class":162,"line":386},[23050],{"type":52,"tag":160,"props":23051,"children":23052},{"style":10416},[23053],{"type":58,"value":10593},{"type":52,"tag":160,"props":23055,"children":23056},{"class":162,"line":395},[23057],{"type":52,"tag":160,"props":23058,"children":23059},{"emptyLinePlaceholder":26},[23060],{"type":58,"value":287},{"type":52,"tag":160,"props":23062,"children":23063},{"class":162,"line":404},[23064],{"type":52,"tag":160,"props":23065,"children":23066},{"style":4181},[23067],{"type":58,"value":10608},{"type":52,"tag":160,"props":23069,"children":23070},{"class":162,"line":413},[23071],{"type":52,"tag":160,"props":23072,"children":23073},{"style":4080},[23074],{"type":58,"value":23075},"    product_id,\n",{"type":52,"tag":160,"props":23077,"children":23078},{"class":162,"line":422},[23079],{"type":52,"tag":160,"props":23080,"children":23081},{"style":4080},[23082],{"type":58,"value":23083},"    product_name,\n",{"type":52,"tag":160,"props":23085,"children":23086},{"class":162,"line":430},[23087],{"type":52,"tag":160,"props":23088,"children":23089},{"style":4080},[23090],{"type":58,"value":23091},"    category,\n",{"type":52,"tag":160,"props":23093,"children":23094},{"class":162,"line":439},[23095],{"type":52,"tag":160,"props":23096,"children":23097},{"style":4080},[23098],{"type":58,"value":14191},{"type":52,"tag":160,"props":23100,"children":23101},{"class":162,"line":448},[23102],{"type":52,"tag":160,"props":23103,"children":23104},{"style":4080},[23105],{"type":58,"value":23106},"    price,\n",{"type":52,"tag":160,"props":23108,"children":23109},{"class":162,"line":457},[23110],{"type":52,"tag":160,"props":23111,"children":23112},{"style":4080},[23113],{"type":58,"value":23114},"    product_status,\n",{"type":52,"tag":160,"props":23116,"children":23117},{"class":162,"line":466},[23118],{"type":52,"tag":160,"props":23119,"children":23120},{"style":4080},[23121],{"type":58,"value":14278},{"type":52,"tag":160,"props":23123,"children":23124},{"class":162,"line":474},[23125],{"type":52,"tag":160,"props":23126,"children":23127},{"style":4080},[23128],{"type":58,"value":14286},{"type":52,"tag":160,"props":23130,"children":23131},{"class":162,"line":483},[23132,23136,23140,23144],{"type":52,"tag":160,"props":23133,"children":23134},{"style":4181},[23135],{"type":58,"value":11165},{"type":52,"tag":160,"props":23137,"children":23138},{"style":1771},[23139],{"type":58,"value":18623},{"type":52,"tag":160,"props":23141,"children":23142},{"style":4080},[23143],{"type":58,"value":3931},{"type":52,"tag":160,"props":23145,"children":23146},{"style":1771},[23147],{"type":58,"value":23148},"stg_products\n",{"type":52,"tag":160,"props":23150,"children":23151},{"class":162,"line":492},[23152,23156],{"type":52,"tag":160,"props":23153,"children":23154},{"style":4181},[23155],{"type":58,"value":18652},{"type":52,"tag":160,"props":23157,"children":23158},{"style":4080},[23159],{"type":58,"value":23160}," product_name\n",{"type":52,"tag":131,"props":23162,"children":23164},{"id":23163},"_4-marketing-roi-rpt_marketing_roisql",[23165,23167],{"type":58,"value":23166},"4) Marketing ROI - ",{"type":52,"tag":71,"props":23168,"children":23170},{"className":23169},[],[23171],{"type":58,"value":23172},"rpt_marketing_roi.sql",{"type":52,"tag":107,"props":23174,"children":23175},{},[23176],{"type":58,"value":23177},"Spend, revenue, and ROAS by marketing channel. This is the report that answers \"where should we spend more?\"",{"type":52,"tag":107,"props":23179,"children":23180},{},[23181,23182,23191],{"type":58,"value":10384},{"type":52,"tag":218,"props":23183,"children":23184},{},[23185],{"type":52,"tag":71,"props":23186,"children":23188},{"className":23187},[],[23189],{"type":58,"value":23190},"ecommerce\u002Fassets\u002Freports\u002Frpt_marketing_roi.sql",{"type":58,"value":10395},{"type":52,"tag":253,"props":23193,"children":23194},{":variants":255,"group":256},[23195,24550,25845],{"type":52,"tag":259,"props":23196,"children":23197},{"v-slot:clickhouse":7},[23198],{"type":52,"tag":150,"props":23199,"children":23201},{"className":10404,"code":23200,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_marketing_roi\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_marketing_spend\n  - staging.stg_web_sessions\n  - staging.stg_orders\ncolumns:\n  - name: channel\n    type: varchar\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nWITH channel_spend AS (\n    SELECT\n        spend_date,\n        channel,\n        sum(spend) AS total_spend,\n        sum(impressions) AS total_impressions,\n        sum(clicks) AS total_clicks,\n        sum(conversions) AS total_conversions\n    FROM staging.stg_marketing_spend\n    GROUP BY spend_date, channel\n),\nchannel_sessions AS (\n    SELECT\n        session_date,\n        channel,\n        sum(total_sessions) AS sessions,\n        sum(new_users) AS new_users,\n        sum(purchase_events) AS purchases\n    FROM staging.stg_web_sessions\n    GROUP BY session_date, channel\n),\nchannel_revenue AS (\n    SELECT\n        toDate(order_date) AS order_date,\n        ws.channel,\n        sum(o.order_total) AS attributed_revenue\n    FROM staging.stg_orders o\n    INNER JOIN staging.stg_web_sessions ws\n        ON toDate(o.order_date) = ws.session_date\n    WHERE o.payment_status = 'paid'\n    GROUP BY toDate(order_date), ws.channel\n)\nSELECT\n    cs.spend_date AS report_date,\n    cs.channel,\n    cs.total_spend,\n    cs.total_impressions,\n    cs.total_clicks,\n    cs.total_conversions,\n    sess.sessions,\n    sess.new_users,\n    cr.attributed_revenue,\n    round(cr.attributed_revenue \u002F nullIf(cs.total_spend, 0), 2) AS roas,\n    round(cs.total_spend \u002F nullIf(cs.total_conversions, 0), 2) AS cost_per_acquisition,\n    round(cs.total_clicks \u002F nullIf(cs.total_impressions, 0) * 100, 2) AS click_through_rate\nFROM channel_spend cs\nLEFT JOIN channel_sessions sess\n    ON cs.spend_date = sess.session_date\n    AND cs.channel = sess.channel\nLEFT JOIN channel_revenue cr\n    ON cs.spend_date = cr.order_date\n    AND cs.channel = cr.channel\nORDER BY cs.spend_date DESC, cs.total_spend DESC\n",[23202],{"type":52,"tag":71,"props":23203,"children":23204},{"__ignoreMap":7},[23205,23212,23220,23227,23234,23241,23248,23256,23264,23271,23278,23286,23293,23300,23307,23314,23321,23341,23348,23356,23364,23386,23407,23428,23449,23469,23481,23488,23504,23511,23519,23526,23551,23571,23592,23612,23624,23631,23647,23654,23670,23691,23727,23750,23775,23820,23847,23873,23880,23887,23912,23931,23951,23971,23991,24012,24033,24053,24075,24153,24230,24319,24332,24345,24382,24418,24431,24469,24505],{"type":52,"tag":160,"props":23206,"children":23207},{"class":162,"line":163},[23208],{"type":52,"tag":160,"props":23209,"children":23210},{"style":10416},[23211],{"type":58,"value":10419},{"type":52,"tag":160,"props":23213,"children":23214},{"class":162,"line":281},[23215],{"type":52,"tag":160,"props":23216,"children":23217},{"style":10416},[23218],{"type":58,"value":23219},"name: reports.rpt_marketing_roi\n",{"type":52,"tag":160,"props":23221,"children":23222},{"class":162,"line":290},[23223],{"type":52,"tag":160,"props":23224,"children":23225},{"style":10416},[23226],{"type":58,"value":10435},{"type":52,"tag":160,"props":23228,"children":23229},{"class":162,"line":299},[23230],{"type":52,"tag":160,"props":23231,"children":23232},{"style":10416},[23233],{"type":58,"value":10443},{"type":52,"tag":160,"props":23235,"children":23236},{"class":162,"line":27},[23237],{"type":52,"tag":160,"props":23238,"children":23239},{"style":10416},[23240],{"type":58,"value":10451},{"type":52,"tag":160,"props":23242,"children":23243},{"class":162,"line":316},[23244],{"type":52,"tag":160,"props":23245,"children":23246},{"style":10416},[23247],{"type":58,"value":10459},{"type":52,"tag":160,"props":23249,"children":23250},{"class":162,"line":325},[23251],{"type":52,"tag":160,"props":23252,"children":23253},{"style":10416},[23254],{"type":58,"value":23255},"  - staging.stg_marketing_spend\n",{"type":52,"tag":160,"props":23257,"children":23258},{"class":162,"line":334},[23259],{"type":52,"tag":160,"props":23260,"children":23261},{"style":10416},[23262],{"type":58,"value":23263},"  - staging.stg_web_sessions\n",{"type":52,"tag":160,"props":23265,"children":23266},{"class":162,"line":343},[23267],{"type":52,"tag":160,"props":23268,"children":23269},{"style":10416},[23270],{"type":58,"value":18170},{"type":52,"tag":160,"props":23272,"children":23273},{"class":162,"line":11},[23274],{"type":52,"tag":160,"props":23275,"children":23276},{"style":10416},[23277],{"type":58,"value":10483},{"type":52,"tag":160,"props":23279,"children":23280},{"class":162,"line":359},[23281],{"type":52,"tag":160,"props":23282,"children":23283},{"style":10416},[23284],{"type":58,"value":23285},"  - name: channel\n",{"type":52,"tag":160,"props":23287,"children":23288},{"class":162,"line":368},[23289],{"type":52,"tag":160,"props":23290,"children":23291},{"style":10416},[23292],{"type":58,"value":10499},{"type":52,"tag":160,"props":23294,"children":23295},{"class":162,"line":377},[23296],{"type":52,"tag":160,"props":23297,"children":23298},{"style":10416},[23299],{"type":58,"value":10507},{"type":52,"tag":160,"props":23301,"children":23302},{"class":162,"line":386},[23303],{"type":52,"tag":160,"props":23304,"children":23305},{"style":10416},[23306],{"type":58,"value":10515},{"type":52,"tag":160,"props":23308,"children":23309},{"class":162,"line":395},[23310],{"type":52,"tag":160,"props":23311,"children":23312},{"style":10416},[23313],{"type":58,"value":10593},{"type":52,"tag":160,"props":23315,"children":23316},{"class":162,"line":404},[23317],{"type":52,"tag":160,"props":23318,"children":23319},{"emptyLinePlaceholder":26},[23320],{"type":58,"value":287},{"type":52,"tag":160,"props":23322,"children":23323},{"class":162,"line":413},[23324,23328,23333,23337],{"type":52,"tag":160,"props":23325,"children":23326},{"style":4181},[23327],{"type":58,"value":20211},{"type":52,"tag":160,"props":23329,"children":23330},{"style":4080},[23331],{"type":58,"value":23332}," channel_spend ",{"type":52,"tag":160,"props":23334,"children":23335},{"style":4181},[23336],{"type":58,"value":10814},{"type":52,"tag":160,"props":23338,"children":23339},{"style":4080},[23340],{"type":58,"value":20225},{"type":52,"tag":160,"props":23342,"children":23343},{"class":162,"line":422},[23344],{"type":52,"tag":160,"props":23345,"children":23346},{"style":4181},[23347],{"type":58,"value":20233},{"type":52,"tag":160,"props":23349,"children":23350},{"class":162,"line":430},[23351],{"type":52,"tag":160,"props":23352,"children":23353},{"style":4080},[23354],{"type":58,"value":23355},"        spend_date,\n",{"type":52,"tag":160,"props":23357,"children":23358},{"class":162,"line":439},[23359],{"type":52,"tag":160,"props":23360,"children":23361},{"style":4080},[23362],{"type":58,"value":23363},"        channel,\n",{"type":52,"tag":160,"props":23365,"children":23366},{"class":162,"line":448},[23367,23372,23377,23381],{"type":52,"tag":160,"props":23368,"children":23369},{"style":1771},[23370],{"type":58,"value":23371},"        sum",{"type":52,"tag":160,"props":23373,"children":23374},{"style":4080},[23375],{"type":58,"value":23376},"(spend) ",{"type":52,"tag":160,"props":23378,"children":23379},{"style":4181},[23380],{"type":58,"value":10814},{"type":52,"tag":160,"props":23382,"children":23383},{"style":4080},[23384],{"type":58,"value":23385}," total_spend,\n",{"type":52,"tag":160,"props":23387,"children":23388},{"class":162,"line":457},[23389,23393,23398,23402],{"type":52,"tag":160,"props":23390,"children":23391},{"style":1771},[23392],{"type":58,"value":23371},{"type":52,"tag":160,"props":23394,"children":23395},{"style":4080},[23396],{"type":58,"value":23397},"(impressions) ",{"type":52,"tag":160,"props":23399,"children":23400},{"style":4181},[23401],{"type":58,"value":10814},{"type":52,"tag":160,"props":23403,"children":23404},{"style":4080},[23405],{"type":58,"value":23406}," total_impressions,\n",{"type":52,"tag":160,"props":23408,"children":23409},{"class":162,"line":466},[23410,23414,23419,23423],{"type":52,"tag":160,"props":23411,"children":23412},{"style":1771},[23413],{"type":58,"value":23371},{"type":52,"tag":160,"props":23415,"children":23416},{"style":4080},[23417],{"type":58,"value":23418},"(clicks) ",{"type":52,"tag":160,"props":23420,"children":23421},{"style":4181},[23422],{"type":58,"value":10814},{"type":52,"tag":160,"props":23424,"children":23425},{"style":4080},[23426],{"type":58,"value":23427}," total_clicks,\n",{"type":52,"tag":160,"props":23429,"children":23430},{"class":162,"line":474},[23431,23435,23440,23444],{"type":52,"tag":160,"props":23432,"children":23433},{"style":1771},[23434],{"type":58,"value":23371},{"type":52,"tag":160,"props":23436,"children":23437},{"style":4080},[23438],{"type":58,"value":23439},"(conversions) ",{"type":52,"tag":160,"props":23441,"children":23442},{"style":4181},[23443],{"type":58,"value":10814},{"type":52,"tag":160,"props":23445,"children":23446},{"style":4080},[23447],{"type":58,"value":23448}," total_conversions\n",{"type":52,"tag":160,"props":23450,"children":23451},{"class":162,"line":483},[23452,23456,23460,23464],{"type":52,"tag":160,"props":23453,"children":23454},{"style":4181},[23455],{"type":58,"value":20345},{"type":52,"tag":160,"props":23457,"children":23458},{"style":1771},[23459],{"type":58,"value":18623},{"type":52,"tag":160,"props":23461,"children":23462},{"style":4080},[23463],{"type":58,"value":3931},{"type":52,"tag":160,"props":23465,"children":23466},{"style":1771},[23467],{"type":58,"value":23468},"stg_marketing_spend\n",{"type":52,"tag":160,"props":23470,"children":23471},{"class":162,"line":492},[23472,23476],{"type":52,"tag":160,"props":23473,"children":23474},{"style":4181},[23475],{"type":58,"value":20543},{"type":52,"tag":160,"props":23477,"children":23478},{"style":4080},[23479],{"type":58,"value":23480}," spend_date, channel\n",{"type":52,"tag":160,"props":23482,"children":23483},{"class":162,"line":501},[23484],{"type":52,"tag":160,"props":23485,"children":23486},{"style":4080},[23487],{"type":58,"value":20461},{"type":52,"tag":160,"props":23489,"children":23490},{"class":162,"line":510},[23491,23496,23500],{"type":52,"tag":160,"props":23492,"children":23493},{"style":4080},[23494],{"type":58,"value":23495},"channel_sessions ",{"type":52,"tag":160,"props":23497,"children":23498},{"style":4181},[23499],{"type":58,"value":10814},{"type":52,"tag":160,"props":23501,"children":23502},{"style":4080},[23503],{"type":58,"value":20225},{"type":52,"tag":160,"props":23505,"children":23506},{"class":162,"line":519},[23507],{"type":52,"tag":160,"props":23508,"children":23509},{"style":4181},[23510],{"type":58,"value":20233},{"type":52,"tag":160,"props":23512,"children":23513},{"class":162,"line":528},[23514],{"type":52,"tag":160,"props":23515,"children":23516},{"style":4080},[23517],{"type":58,"value":23518},"        session_date,\n",{"type":52,"tag":160,"props":23520,"children":23521},{"class":162,"line":537},[23522],{"type":52,"tag":160,"props":23523,"children":23524},{"style":4080},[23525],{"type":58,"value":23363},{"type":52,"tag":160,"props":23527,"children":23528},{"class":162,"line":546},[23529,23533,23538,23542,23547],{"type":52,"tag":160,"props":23530,"children":23531},{"style":1771},[23532],{"type":58,"value":23371},{"type":52,"tag":160,"props":23534,"children":23535},{"style":4080},[23536],{"type":58,"value":23537},"(total_sessions) ",{"type":52,"tag":160,"props":23539,"children":23540},{"style":4181},[23541],{"type":58,"value":10814},{"type":52,"tag":160,"props":23543,"children":23544},{"style":4181},[23545],{"type":58,"value":23546}," sessions",{"type":52,"tag":160,"props":23548,"children":23549},{"style":4080},[23550],{"type":58,"value":10656},{"type":52,"tag":160,"props":23552,"children":23553},{"class":162,"line":555},[23554,23558,23563,23567],{"type":52,"tag":160,"props":23555,"children":23556},{"style":1771},[23557],{"type":58,"value":23371},{"type":52,"tag":160,"props":23559,"children":23560},{"style":4080},[23561],{"type":58,"value":23562},"(new_users) ",{"type":52,"tag":160,"props":23564,"children":23565},{"style":4181},[23566],{"type":58,"value":10814},{"type":52,"tag":160,"props":23568,"children":23569},{"style":4080},[23570],{"type":58,"value":16795},{"type":52,"tag":160,"props":23572,"children":23573},{"class":162,"line":564},[23574,23578,23583,23587],{"type":52,"tag":160,"props":23575,"children":23576},{"style":1771},[23577],{"type":58,"value":23371},{"type":52,"tag":160,"props":23579,"children":23580},{"style":4080},[23581],{"type":58,"value":23582},"(purchase_events) ",{"type":52,"tag":160,"props":23584,"children":23585},{"style":4181},[23586],{"type":58,"value":10814},{"type":52,"tag":160,"props":23588,"children":23589},{"style":4080},[23590],{"type":58,"value":23591}," purchases\n",{"type":52,"tag":160,"props":23593,"children":23594},{"class":162,"line":573},[23595,23599,23603,23607],{"type":52,"tag":160,"props":23596,"children":23597},{"style":4181},[23598],{"type":58,"value":20345},{"type":52,"tag":160,"props":23600,"children":23601},{"style":1771},[23602],{"type":58,"value":18623},{"type":52,"tag":160,"props":23604,"children":23605},{"style":4080},[23606],{"type":58,"value":3931},{"type":52,"tag":160,"props":23608,"children":23609},{"style":1771},[23610],{"type":58,"value":23611},"stg_web_sessions\n",{"type":52,"tag":160,"props":23613,"children":23614},{"class":162,"line":582},[23615,23619],{"type":52,"tag":160,"props":23616,"children":23617},{"style":4181},[23618],{"type":58,"value":20543},{"type":52,"tag":160,"props":23620,"children":23621},{"style":4080},[23622],{"type":58,"value":23623}," session_date, channel\n",{"type":52,"tag":160,"props":23625,"children":23626},{"class":162,"line":591},[23627],{"type":52,"tag":160,"props":23628,"children":23629},{"style":4080},[23630],{"type":58,"value":20461},{"type":52,"tag":160,"props":23632,"children":23633},{"class":162,"line":599},[23634,23639,23643],{"type":52,"tag":160,"props":23635,"children":23636},{"style":4080},[23637],{"type":58,"value":23638},"channel_revenue ",{"type":52,"tag":160,"props":23640,"children":23641},{"style":4181},[23642],{"type":58,"value":10814},{"type":52,"tag":160,"props":23644,"children":23645},{"style":4080},[23646],{"type":58,"value":20225},{"type":52,"tag":160,"props":23648,"children":23649},{"class":162,"line":608},[23650],{"type":52,"tag":160,"props":23651,"children":23652},{"style":4181},[23653],{"type":58,"value":20233},{"type":52,"tag":160,"props":23655,"children":23656},{"class":162,"line":617},[23657,23662,23666],{"type":52,"tag":160,"props":23658,"children":23659},{"style":4080},[23660],{"type":58,"value":23661},"        toDate(order_date) ",{"type":52,"tag":160,"props":23663,"children":23664},{"style":4181},[23665],{"type":58,"value":10814},{"type":52,"tag":160,"props":23667,"children":23668},{"style":4080},[23669],{"type":58,"value":10706},{"type":52,"tag":160,"props":23671,"children":23672},{"class":162,"line":626},[23673,23678,23682,23687],{"type":52,"tag":160,"props":23674,"children":23675},{"style":1771},[23676],{"type":58,"value":23677},"        ws",{"type":52,"tag":160,"props":23679,"children":23680},{"style":4080},[23681],{"type":58,"value":3931},{"type":52,"tag":160,"props":23683,"children":23684},{"style":1771},[23685],{"type":58,"value":23686},"channel",{"type":52,"tag":160,"props":23688,"children":23689},{"style":4080},[23690],{"type":58,"value":10656},{"type":52,"tag":160,"props":23692,"children":23693},{"class":162,"line":635},[23694,23698,23702,23706,23710,23714,23718,23722],{"type":52,"tag":160,"props":23695,"children":23696},{"style":1771},[23697],{"type":58,"value":23371},{"type":52,"tag":160,"props":23699,"children":23700},{"style":4080},[23701],{"type":58,"value":10763},{"type":52,"tag":160,"props":23703,"children":23704},{"style":1771},[23705],{"type":58,"value":10768},{"type":52,"tag":160,"props":23707,"children":23708},{"style":4080},[23709],{"type":58,"value":3931},{"type":52,"tag":160,"props":23711,"children":23712},{"style":1771},[23713],{"type":58,"value":20811},{"type":52,"tag":160,"props":23715,"children":23716},{"style":4080},[23717],{"type":58,"value":11279},{"type":52,"tag":160,"props":23719,"children":23720},{"style":4181},[23721],{"type":58,"value":10814},{"type":52,"tag":160,"props":23723,"children":23724},{"style":4080},[23725],{"type":58,"value":23726}," attributed_revenue\n",{"type":52,"tag":160,"props":23728,"children":23729},{"class":162,"line":644},[23730,23734,23738,23742,23746],{"type":52,"tag":160,"props":23731,"children":23732},{"style":4181},[23733],{"type":58,"value":20345},{"type":52,"tag":160,"props":23735,"children":23736},{"style":1771},[23737],{"type":58,"value":18623},{"type":52,"tag":160,"props":23739,"children":23740},{"style":4080},[23741],{"type":58,"value":3931},{"type":52,"tag":160,"props":23743,"children":23744},{"style":1771},[23745],{"type":58,"value":19245},{"type":52,"tag":160,"props":23747,"children":23748},{"style":4080},[23749],{"type":58,"value":11184},{"type":52,"tag":160,"props":23751,"children":23752},{"class":162,"line":653},[23753,23757,23761,23765,23770],{"type":52,"tag":160,"props":23754,"children":23755},{"style":4181},[23756],{"type":58,"value":20369},{"type":52,"tag":160,"props":23758,"children":23759},{"style":1771},[23760],{"type":58,"value":18623},{"type":52,"tag":160,"props":23762,"children":23763},{"style":4080},[23764],{"type":58,"value":3931},{"type":52,"tag":160,"props":23766,"children":23767},{"style":1771},[23768],{"type":58,"value":23769},"stg_web_sessions",{"type":52,"tag":160,"props":23771,"children":23772},{"style":4080},[23773],{"type":58,"value":23774}," ws\n",{"type":52,"tag":160,"props":23776,"children":23777},{"class":162,"line":662},[23778,23782,23786,23790,23794,23798,23802,23806,23811,23815],{"type":52,"tag":160,"props":23779,"children":23780},{"style":4181},[23781],{"type":58,"value":20394},{"type":52,"tag":160,"props":23783,"children":23784},{"style":4080},[23785],{"type":58,"value":11262},{"type":52,"tag":160,"props":23787,"children":23788},{"style":1771},[23789],{"type":58,"value":10768},{"type":52,"tag":160,"props":23791,"children":23792},{"style":4080},[23793],{"type":58,"value":3931},{"type":52,"tag":160,"props":23795,"children":23796},{"style":1771},[23797],{"type":58,"value":20308},{"type":52,"tag":160,"props":23799,"children":23800},{"style":4080},[23801],{"type":58,"value":11279},{"type":52,"tag":160,"props":23803,"children":23804},{"style":4181},[23805],{"type":58,"value":11284},{"type":52,"tag":160,"props":23807,"children":23808},{"style":1771},[23809],{"type":58,"value":23810}," ws",{"type":52,"tag":160,"props":23812,"children":23813},{"style":4080},[23814],{"type":58,"value":3931},{"type":52,"tag":160,"props":23816,"children":23817},{"style":1771},[23818],{"type":58,"value":23819},"session_date\n",{"type":52,"tag":160,"props":23821,"children":23822},{"class":162,"line":671},[23823,23827,23831,23835,23839,23843],{"type":52,"tag":160,"props":23824,"children":23825},{"style":4181},[23826],{"type":58,"value":20431},{"type":52,"tag":160,"props":23828,"children":23829},{"style":1771},[23830],{"type":58,"value":11222},{"type":52,"tag":160,"props":23832,"children":23833},{"style":4080},[23834],{"type":58,"value":3931},{"type":52,"tag":160,"props":23836,"children":23837},{"style":1771},[23838],{"type":58,"value":20444},{"type":52,"tag":160,"props":23840,"children":23841},{"style":4181},[23842],{"type":58,"value":11235},{"type":52,"tag":160,"props":23844,"children":23845},{"style":173},[23846],{"type":58,"value":20453},{"type":52,"tag":160,"props":23848,"children":23849},{"class":162,"line":680},[23850,23854,23859,23864,23868],{"type":52,"tag":160,"props":23851,"children":23852},{"style":4181},[23853],{"type":58,"value":20543},{"type":52,"tag":160,"props":23855,"children":23856},{"style":4080},[23857],{"type":58,"value":23858}," toDate(order_date), ",{"type":52,"tag":160,"props":23860,"children":23861},{"style":1771},[23862],{"type":58,"value":23863},"ws",{"type":52,"tag":160,"props":23865,"children":23866},{"style":4080},[23867],{"type":58,"value":3931},{"type":52,"tag":160,"props":23869,"children":23870},{"style":1771},[23871],{"type":58,"value":23872},"channel\n",{"type":52,"tag":160,"props":23874,"children":23875},{"class":162,"line":688},[23876],{"type":52,"tag":160,"props":23877,"children":23878},{"style":4080},[23879],{"type":58,"value":11307},{"type":52,"tag":160,"props":23881,"children":23882},{"class":162,"line":697},[23883],{"type":52,"tag":160,"props":23884,"children":23885},{"style":4181},[23886],{"type":58,"value":10608},{"type":52,"tag":160,"props":23888,"children":23889},{"class":162,"line":706},[23890,23894,23898,23903,23907],{"type":52,"tag":160,"props":23891,"children":23892},{"style":1771},[23893],{"type":58,"value":20591},{"type":52,"tag":160,"props":23895,"children":23896},{"style":4080},[23897],{"type":58,"value":3931},{"type":52,"tag":160,"props":23899,"children":23900},{"style":1771},[23901],{"type":58,"value":23902},"spend_date",{"type":52,"tag":160,"props":23904,"children":23905},{"style":4181},[23906],{"type":58,"value":10630},{"type":52,"tag":160,"props":23908,"children":23909},{"style":4080},[23910],{"type":58,"value":23911}," report_date,\n",{"type":52,"tag":160,"props":23913,"children":23914},{"class":162,"line":715},[23915,23919,23923,23927],{"type":52,"tag":160,"props":23916,"children":23917},{"style":1771},[23918],{"type":58,"value":20591},{"type":52,"tag":160,"props":23920,"children":23921},{"style":4080},[23922],{"type":58,"value":3931},{"type":52,"tag":160,"props":23924,"children":23925},{"style":1771},[23926],{"type":58,"value":23686},{"type":52,"tag":160,"props":23928,"children":23929},{"style":4080},[23930],{"type":58,"value":10656},{"type":52,"tag":160,"props":23932,"children":23933},{"class":162,"line":724},[23934,23938,23942,23947],{"type":52,"tag":160,"props":23935,"children":23936},{"style":1771},[23937],{"type":58,"value":20591},{"type":52,"tag":160,"props":23939,"children":23940},{"style":4080},[23941],{"type":58,"value":3931},{"type":52,"tag":160,"props":23943,"children":23944},{"style":1771},[23945],{"type":58,"value":23946},"total_spend",{"type":52,"tag":160,"props":23948,"children":23949},{"style":4080},[23950],{"type":58,"value":10656},{"type":52,"tag":160,"props":23952,"children":23953},{"class":162,"line":733},[23954,23958,23962,23967],{"type":52,"tag":160,"props":23955,"children":23956},{"style":1771},[23957],{"type":58,"value":20591},{"type":52,"tag":160,"props":23959,"children":23960},{"style":4080},[23961],{"type":58,"value":3931},{"type":52,"tag":160,"props":23963,"children":23964},{"style":1771},[23965],{"type":58,"value":23966},"total_impressions",{"type":52,"tag":160,"props":23968,"children":23969},{"style":4080},[23970],{"type":58,"value":10656},{"type":52,"tag":160,"props":23972,"children":23973},{"class":162,"line":742},[23974,23978,23982,23987],{"type":52,"tag":160,"props":23975,"children":23976},{"style":1771},[23977],{"type":58,"value":20591},{"type":52,"tag":160,"props":23979,"children":23980},{"style":4080},[23981],{"type":58,"value":3931},{"type":52,"tag":160,"props":23983,"children":23984},{"style":1771},[23985],{"type":58,"value":23986},"total_clicks",{"type":52,"tag":160,"props":23988,"children":23989},{"style":4080},[23990],{"type":58,"value":10656},{"type":52,"tag":160,"props":23992,"children":23994},{"class":162,"line":23993},55,[23995,23999,24003,24008],{"type":52,"tag":160,"props":23996,"children":23997},{"style":1771},[23998],{"type":58,"value":20591},{"type":52,"tag":160,"props":24000,"children":24001},{"style":4080},[24002],{"type":58,"value":3931},{"type":52,"tag":160,"props":24004,"children":24005},{"style":1771},[24006],{"type":58,"value":24007},"total_conversions",{"type":52,"tag":160,"props":24009,"children":24010},{"style":4080},[24011],{"type":58,"value":10656},{"type":52,"tag":160,"props":24013,"children":24015},{"class":162,"line":24014},56,[24016,24021,24025,24029],{"type":52,"tag":160,"props":24017,"children":24018},{"style":1771},[24019],{"type":58,"value":24020},"    sess",{"type":52,"tag":160,"props":24022,"children":24023},{"style":4080},[24024],{"type":58,"value":3931},{"type":52,"tag":160,"props":24026,"children":24027},{"style":1771},[24028],{"type":58,"value":16221},{"type":52,"tag":160,"props":24030,"children":24031},{"style":4080},[24032],{"type":58,"value":10656},{"type":52,"tag":160,"props":24034,"children":24036},{"class":162,"line":24035},57,[24037,24041,24045,24049],{"type":52,"tag":160,"props":24038,"children":24039},{"style":1771},[24040],{"type":58,"value":24020},{"type":52,"tag":160,"props":24042,"children":24043},{"style":4080},[24044],{"type":58,"value":3931},{"type":52,"tag":160,"props":24046,"children":24047},{"style":1771},[24048],{"type":58,"value":16246},{"type":52,"tag":160,"props":24050,"children":24051},{"style":4080},[24052],{"type":58,"value":10656},{"type":52,"tag":160,"props":24054,"children":24056},{"class":162,"line":24055},58,[24057,24062,24066,24071],{"type":52,"tag":160,"props":24058,"children":24059},{"style":1771},[24060],{"type":58,"value":24061},"    cr",{"type":52,"tag":160,"props":24063,"children":24064},{"style":4080},[24065],{"type":58,"value":3931},{"type":52,"tag":160,"props":24067,"children":24068},{"style":1771},[24069],{"type":58,"value":24070},"attributed_revenue",{"type":52,"tag":160,"props":24072,"children":24073},{"style":4080},[24074],{"type":58,"value":10656},{"type":52,"tag":160,"props":24076,"children":24078},{"class":162,"line":24077},59,[24079,24083,24087,24092,24096,24100,24104,24108,24112,24116,24120,24124,24128,24132,24136,24140,24144,24148],{"type":52,"tag":160,"props":24080,"children":24081},{"style":1771},[24082],{"type":58,"value":18503},{"type":52,"tag":160,"props":24084,"children":24085},{"style":4080},[24086],{"type":58,"value":10763},{"type":52,"tag":160,"props":24088,"children":24089},{"style":1771},[24090],{"type":58,"value":24091},"cr",{"type":52,"tag":160,"props":24093,"children":24094},{"style":4080},[24095],{"type":58,"value":3931},{"type":52,"tag":160,"props":24097,"children":24098},{"style":1771},[24099],{"type":58,"value":24070},{"type":52,"tag":160,"props":24101,"children":24102},{"style":4181},[24103],{"type":58,"value":11084},{"type":52,"tag":160,"props":24105,"children":24106},{"style":1771},[24107],{"type":58,"value":18518},{"type":52,"tag":160,"props":24109,"children":24110},{"style":4080},[24111],{"type":58,"value":10763},{"type":52,"tag":160,"props":24113,"children":24114},{"style":1771},[24115],{"type":58,"value":20738},{"type":52,"tag":160,"props":24117,"children":24118},{"style":4080},[24119],{"type":58,"value":3931},{"type":52,"tag":160,"props":24121,"children":24122},{"style":1771},[24123],{"type":58,"value":23946},{"type":52,"tag":160,"props":24125,"children":24126},{"style":4080},[24127],{"type":58,"value":3976},{"type":52,"tag":160,"props":24129,"children":24130},{"style":1771},[24131],{"type":58,"value":11098},{"type":52,"tag":160,"props":24133,"children":24134},{"style":4080},[24135],{"type":58,"value":18532},{"type":52,"tag":160,"props":24137,"children":24138},{"style":1771},[24139],{"type":58,"value":10804},{"type":52,"tag":160,"props":24141,"children":24142},{"style":4080},[24143],{"type":58,"value":11279},{"type":52,"tag":160,"props":24145,"children":24146},{"style":4181},[24147],{"type":58,"value":10814},{"type":52,"tag":160,"props":24149,"children":24150},{"style":4080},[24151],{"type":58,"value":24152}," roas,\n",{"type":52,"tag":160,"props":24154,"children":24156},{"class":162,"line":24155},60,[24157,24161,24165,24169,24173,24177,24181,24185,24189,24193,24197,24201,24205,24209,24213,24217,24221,24225],{"type":52,"tag":160,"props":24158,"children":24159},{"style":1771},[24160],{"type":58,"value":18503},{"type":52,"tag":160,"props":24162,"children":24163},{"style":4080},[24164],{"type":58,"value":10763},{"type":52,"tag":160,"props":24166,"children":24167},{"style":1771},[24168],{"type":58,"value":20738},{"type":52,"tag":160,"props":24170,"children":24171},{"style":4080},[24172],{"type":58,"value":3931},{"type":52,"tag":160,"props":24174,"children":24175},{"style":1771},[24176],{"type":58,"value":23946},{"type":52,"tag":160,"props":24178,"children":24179},{"style":4181},[24180],{"type":58,"value":11084},{"type":52,"tag":160,"props":24182,"children":24183},{"style":1771},[24184],{"type":58,"value":18518},{"type":52,"tag":160,"props":24186,"children":24187},{"style":4080},[24188],{"type":58,"value":10763},{"type":52,"tag":160,"props":24190,"children":24191},{"style":1771},[24192],{"type":58,"value":20738},{"type":52,"tag":160,"props":24194,"children":24195},{"style":4080},[24196],{"type":58,"value":3931},{"type":52,"tag":160,"props":24198,"children":24199},{"style":1771},[24200],{"type":58,"value":24007},{"type":52,"tag":160,"props":24202,"children":24203},{"style":4080},[24204],{"type":58,"value":3976},{"type":52,"tag":160,"props":24206,"children":24207},{"style":1771},[24208],{"type":58,"value":11098},{"type":52,"tag":160,"props":24210,"children":24211},{"style":4080},[24212],{"type":58,"value":18532},{"type":52,"tag":160,"props":24214,"children":24215},{"style":1771},[24216],{"type":58,"value":10804},{"type":52,"tag":160,"props":24218,"children":24219},{"style":4080},[24220],{"type":58,"value":11279},{"type":52,"tag":160,"props":24222,"children":24223},{"style":4181},[24224],{"type":58,"value":10814},{"type":52,"tag":160,"props":24226,"children":24227},{"style":4080},[24228],{"type":58,"value":24229}," cost_per_acquisition,\n",{"type":52,"tag":160,"props":24231,"children":24233},{"class":162,"line":24232},61,[24234,24238,24242,24246,24250,24254,24258,24262,24266,24270,24274,24278,24282,24286,24290,24294,24298,24302,24306,24310,24314],{"type":52,"tag":160,"props":24235,"children":24236},{"style":1771},[24237],{"type":58,"value":18503},{"type":52,"tag":160,"props":24239,"children":24240},{"style":4080},[24241],{"type":58,"value":10763},{"type":52,"tag":160,"props":24243,"children":24244},{"style":1771},[24245],{"type":58,"value":20738},{"type":52,"tag":160,"props":24247,"children":24248},{"style":4080},[24249],{"type":58,"value":3931},{"type":52,"tag":160,"props":24251,"children":24252},{"style":1771},[24253],{"type":58,"value":23986},{"type":52,"tag":160,"props":24255,"children":24256},{"style":4181},[24257],{"type":58,"value":11084},{"type":52,"tag":160,"props":24259,"children":24260},{"style":1771},[24261],{"type":58,"value":18518},{"type":52,"tag":160,"props":24263,"children":24264},{"style":4080},[24265],{"type":58,"value":10763},{"type":52,"tag":160,"props":24267,"children":24268},{"style":1771},[24269],{"type":58,"value":20738},{"type":52,"tag":160,"props":24271,"children":24272},{"style":4080},[24273],{"type":58,"value":3931},{"type":52,"tag":160,"props":24275,"children":24276},{"style":1771},[24277],{"type":58,"value":23966},{"type":52,"tag":160,"props":24279,"children":24280},{"style":4080},[24281],{"type":58,"value":3976},{"type":52,"tag":160,"props":24283,"children":24284},{"style":1771},[24285],{"type":58,"value":11098},{"type":52,"tag":160,"props":24287,"children":24288},{"style":4080},[24289],{"type":58,"value":11279},{"type":52,"tag":160,"props":24291,"children":24292},{"style":4181},[24293],{"type":58,"value":16713},{"type":52,"tag":160,"props":24295,"children":24296},{"style":1771},[24297],{"type":58,"value":11089},{"type":52,"tag":160,"props":24299,"children":24300},{"style":4080},[24301],{"type":58,"value":3976},{"type":52,"tag":160,"props":24303,"children":24304},{"style":1771},[24305],{"type":58,"value":10804},{"type":52,"tag":160,"props":24307,"children":24308},{"style":4080},[24309],{"type":58,"value":11279},{"type":52,"tag":160,"props":24311,"children":24312},{"style":4181},[24313],{"type":58,"value":10814},{"type":52,"tag":160,"props":24315,"children":24316},{"style":4080},[24317],{"type":58,"value":24318}," click_through_rate\n",{"type":52,"tag":160,"props":24320,"children":24322},{"class":162,"line":24321},62,[24323,24327],{"type":52,"tag":160,"props":24324,"children":24325},{"style":4181},[24326],{"type":58,"value":11165},{"type":52,"tag":160,"props":24328,"children":24329},{"style":4080},[24330],{"type":58,"value":24331}," channel_spend cs\n",{"type":52,"tag":160,"props":24333,"children":24335},{"class":162,"line":24334},63,[24336,24340],{"type":52,"tag":160,"props":24337,"children":24338},{"style":4181},[24339],{"type":58,"value":10306},{"type":52,"tag":160,"props":24341,"children":24342},{"style":4080},[24343],{"type":58,"value":24344}," channel_sessions sess\n",{"type":52,"tag":160,"props":24346,"children":24348},{"class":162,"line":24347},64,[24349,24353,24357,24361,24365,24369,24374,24378],{"type":52,"tag":160,"props":24350,"children":24351},{"style":4181},[24352],{"type":58,"value":11217},{"type":52,"tag":160,"props":24354,"children":24355},{"style":1771},[24356],{"type":58,"value":20942},{"type":52,"tag":160,"props":24358,"children":24359},{"style":4080},[24360],{"type":58,"value":3931},{"type":52,"tag":160,"props":24362,"children":24363},{"style":1771},[24364],{"type":58,"value":23902},{"type":52,"tag":160,"props":24366,"children":24367},{"style":4181},[24368],{"type":58,"value":11235},{"type":52,"tag":160,"props":24370,"children":24371},{"style":1771},[24372],{"type":58,"value":24373}," sess",{"type":52,"tag":160,"props":24375,"children":24376},{"style":4080},[24377],{"type":58,"value":3931},{"type":52,"tag":160,"props":24379,"children":24380},{"style":1771},[24381],{"type":58,"value":23819},{"type":52,"tag":160,"props":24383,"children":24385},{"class":162,"line":24384},65,[24386,24390,24394,24398,24402,24406,24410,24414],{"type":52,"tag":160,"props":24387,"children":24388},{"style":4181},[24389],{"type":58,"value":11257},{"type":52,"tag":160,"props":24391,"children":24392},{"style":1771},[24393],{"type":58,"value":20942},{"type":52,"tag":160,"props":24395,"children":24396},{"style":4080},[24397],{"type":58,"value":3931},{"type":52,"tag":160,"props":24399,"children":24400},{"style":1771},[24401],{"type":58,"value":23686},{"type":52,"tag":160,"props":24403,"children":24404},{"style":4181},[24405],{"type":58,"value":11235},{"type":52,"tag":160,"props":24407,"children":24408},{"style":1771},[24409],{"type":58,"value":24373},{"type":52,"tag":160,"props":24411,"children":24412},{"style":4080},[24413],{"type":58,"value":3931},{"type":52,"tag":160,"props":24415,"children":24416},{"style":1771},[24417],{"type":58,"value":23872},{"type":52,"tag":160,"props":24419,"children":24421},{"class":162,"line":24420},66,[24422,24426],{"type":52,"tag":160,"props":24423,"children":24424},{"style":4181},[24425],{"type":58,"value":10306},{"type":52,"tag":160,"props":24427,"children":24428},{"style":4080},[24429],{"type":58,"value":24430}," channel_revenue cr\n",{"type":52,"tag":160,"props":24432,"children":24434},{"class":162,"line":24433},67,[24435,24439,24443,24447,24451,24455,24460,24464],{"type":52,"tag":160,"props":24436,"children":24437},{"style":4181},[24438],{"type":58,"value":11217},{"type":52,"tag":160,"props":24440,"children":24441},{"style":1771},[24442],{"type":58,"value":20942},{"type":52,"tag":160,"props":24444,"children":24445},{"style":4080},[24446],{"type":58,"value":3931},{"type":52,"tag":160,"props":24448,"children":24449},{"style":1771},[24450],{"type":58,"value":23902},{"type":52,"tag":160,"props":24452,"children":24453},{"style":4181},[24454],{"type":58,"value":11235},{"type":52,"tag":160,"props":24456,"children":24457},{"style":1771},[24458],{"type":58,"value":24459}," cr",{"type":52,"tag":160,"props":24461,"children":24462},{"style":4080},[24463],{"type":58,"value":3931},{"type":52,"tag":160,"props":24465,"children":24466},{"style":1771},[24467],{"type":58,"value":24468},"order_date\n",{"type":52,"tag":160,"props":24470,"children":24472},{"class":162,"line":24471},68,[24473,24477,24481,24485,24489,24493,24497,24501],{"type":52,"tag":160,"props":24474,"children":24475},{"style":4181},[24476],{"type":58,"value":11257},{"type":52,"tag":160,"props":24478,"children":24479},{"style":1771},[24480],{"type":58,"value":20942},{"type":52,"tag":160,"props":24482,"children":24483},{"style":4080},[24484],{"type":58,"value":3931},{"type":52,"tag":160,"props":24486,"children":24487},{"style":1771},[24488],{"type":58,"value":23686},{"type":52,"tag":160,"props":24490,"children":24491},{"style":4181},[24492],{"type":58,"value":11235},{"type":52,"tag":160,"props":24494,"children":24495},{"style":1771},[24496],{"type":58,"value":24459},{"type":52,"tag":160,"props":24498,"children":24499},{"style":4080},[24500],{"type":58,"value":3931},{"type":52,"tag":160,"props":24502,"children":24503},{"style":1771},[24504],{"type":58,"value":23872},{"type":52,"tag":160,"props":24506,"children":24508},{"class":162,"line":24507},69,[24509,24513,24517,24521,24525,24529,24533,24537,24541,24545],{"type":52,"tag":160,"props":24510,"children":24511},{"style":4181},[24512],{"type":58,"value":18652},{"type":52,"tag":160,"props":24514,"children":24515},{"style":1771},[24516],{"type":58,"value":20942},{"type":52,"tag":160,"props":24518,"children":24519},{"style":4080},[24520],{"type":58,"value":3931},{"type":52,"tag":160,"props":24522,"children":24523},{"style":1771},[24524],{"type":58,"value":23902},{"type":52,"tag":160,"props":24526,"children":24527},{"style":4181},[24528],{"type":58,"value":12257},{"type":52,"tag":160,"props":24530,"children":24531},{"style":4080},[24532],{"type":58,"value":3976},{"type":52,"tag":160,"props":24534,"children":24535},{"style":1771},[24536],{"type":58,"value":20738},{"type":52,"tag":160,"props":24538,"children":24539},{"style":4080},[24540],{"type":58,"value":3931},{"type":52,"tag":160,"props":24542,"children":24543},{"style":1771},[24544],{"type":58,"value":23946},{"type":52,"tag":160,"props":24546,"children":24547},{"style":4181},[24548],{"type":58,"value":24549}," DESC\n",{"type":52,"tag":259,"props":24551,"children":24552},{"v-slot:bigquery":7},[24553],{"type":52,"tag":150,"props":24554,"children":24556},{"className":10404,"code":24555,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_marketing_roi\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_marketing_spend\n  - staging.stg_web_sessions\n  - staging.stg_orders\ncolumns:\n  - name: channel\n    type: varchar\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nWITH channel_spend AS (\n    SELECT\n        spend_date,\n        channel,\n        sum(spend) AS total_spend,\n        sum(impressions) AS total_impressions,\n        sum(clicks) AS total_clicks,\n        sum(conversions) AS total_conversions\n    FROM staging.stg_marketing_spend\n    GROUP BY spend_date, channel\n),\nchannel_sessions AS (\n    SELECT\n        session_date,\n        channel,\n        sum(total_sessions) AS sessions,\n        sum(new_users) AS new_users,\n        sum(purchase_events) AS purchases\n    FROM staging.stg_web_sessions\n    GROUP BY session_date, channel\n),\nchannel_revenue AS (\n    SELECT\n        DATE(order_date) AS order_date,\n        ws.channel,\n        sum(o.order_total) AS attributed_revenue\n    FROM staging.stg_orders o\n    INNER JOIN staging.stg_web_sessions ws\n        ON DATE(o.order_date) = ws.session_date\n    WHERE o.payment_status = 'paid'\n    GROUP BY DATE(order_date), ws.channel\n)\nSELECT\n    cs.spend_date AS report_date,\n    cs.channel,\n    cs.total_spend,\n    cs.total_impressions,\n    cs.total_clicks,\n    cs.total_conversions,\n    sess.sessions,\n    sess.new_users,\n    cr.attributed_revenue,\n    round(cr.attributed_revenue \u002F NULLIF(cs.total_spend, 0), 2) AS roas,\n    round(cs.total_spend \u002F NULLIF(cs.total_conversions, 0), 2) AS cost_per_acquisition,\n    round(cs.total_clicks \u002F NULLIF(cs.total_impressions, 0) * 100, 2) AS click_through_rate\nFROM channel_spend cs\nLEFT JOIN channel_sessions sess\n    ON cs.spend_date = sess.session_date\n    AND cs.channel = sess.channel\nLEFT JOIN channel_revenue cr\n    ON cs.spend_date = cr.order_date\n    AND cs.channel = cr.channel\nORDER BY cs.spend_date DESC, cs.total_spend DESC\n",[24557],{"type":52,"tag":71,"props":24558,"children":24559},{"__ignoreMap":7},[24560,24567,24574,24581,24588,24595,24602,24609,24616,24623,24630,24637,24644,24651,24658,24665,24672,24691,24698,24705,24712,24731,24750,24769,24788,24807,24818,24825,24840,24847,24854,24861,24884,24903,24922,24941,24952,24959,24974,24981,25001,25020,25055,25078,25101,25148,25175,25203,25210,25217,25240,25259,25278,25297,25316,25335,25354,25373,25392,25467,25542,25629,25640,25651,25686,25721,25732,25767,25802],{"type":52,"tag":160,"props":24561,"children":24562},{"class":162,"line":163},[24563],{"type":52,"tag":160,"props":24564,"children":24565},{"style":10416},[24566],{"type":58,"value":10419},{"type":52,"tag":160,"props":24568,"children":24569},{"class":162,"line":281},[24570],{"type":52,"tag":160,"props":24571,"children":24572},{"style":10416},[24573],{"type":58,"value":23219},{"type":52,"tag":160,"props":24575,"children":24576},{"class":162,"line":290},[24577],{"type":52,"tag":160,"props":24578,"children":24579},{"style":10416},[24580],{"type":58,"value":10435},{"type":52,"tag":160,"props":24582,"children":24583},{"class":162,"line":299},[24584],{"type":52,"tag":160,"props":24585,"children":24586},{"style":10416},[24587],{"type":58,"value":10443},{"type":52,"tag":160,"props":24589,"children":24590},{"class":162,"line":27},[24591],{"type":52,"tag":160,"props":24592,"children":24593},{"style":10416},[24594],{"type":58,"value":10451},{"type":52,"tag":160,"props":24596,"children":24597},{"class":162,"line":316},[24598],{"type":52,"tag":160,"props":24599,"children":24600},{"style":10416},[24601],{"type":58,"value":10459},{"type":52,"tag":160,"props":24603,"children":24604},{"class":162,"line":325},[24605],{"type":52,"tag":160,"props":24606,"children":24607},{"style":10416},[24608],{"type":58,"value":23255},{"type":52,"tag":160,"props":24610,"children":24611},{"class":162,"line":334},[24612],{"type":52,"tag":160,"props":24613,"children":24614},{"style":10416},[24615],{"type":58,"value":23263},{"type":52,"tag":160,"props":24617,"children":24618},{"class":162,"line":343},[24619],{"type":52,"tag":160,"props":24620,"children":24621},{"style":10416},[24622],{"type":58,"value":18170},{"type":52,"tag":160,"props":24624,"children":24625},{"class":162,"line":11},[24626],{"type":52,"tag":160,"props":24627,"children":24628},{"style":10416},[24629],{"type":58,"value":10483},{"type":52,"tag":160,"props":24631,"children":24632},{"class":162,"line":359},[24633],{"type":52,"tag":160,"props":24634,"children":24635},{"style":10416},[24636],{"type":58,"value":23285},{"type":52,"tag":160,"props":24638,"children":24639},{"class":162,"line":368},[24640],{"type":52,"tag":160,"props":24641,"children":24642},{"style":10416},[24643],{"type":58,"value":10499},{"type":52,"tag":160,"props":24645,"children":24646},{"class":162,"line":377},[24647],{"type":52,"tag":160,"props":24648,"children":24649},{"style":10416},[24650],{"type":58,"value":10507},{"type":52,"tag":160,"props":24652,"children":24653},{"class":162,"line":386},[24654],{"type":52,"tag":160,"props":24655,"children":24656},{"style":10416},[24657],{"type":58,"value":10515},{"type":52,"tag":160,"props":24659,"children":24660},{"class":162,"line":395},[24661],{"type":52,"tag":160,"props":24662,"children":24663},{"style":10416},[24664],{"type":58,"value":10593},{"type":52,"tag":160,"props":24666,"children":24667},{"class":162,"line":404},[24668],{"type":52,"tag":160,"props":24669,"children":24670},{"emptyLinePlaceholder":26},[24671],{"type":58,"value":287},{"type":52,"tag":160,"props":24673,"children":24674},{"class":162,"line":413},[24675,24679,24683,24687],{"type":52,"tag":160,"props":24676,"children":24677},{"style":4181},[24678],{"type":58,"value":20211},{"type":52,"tag":160,"props":24680,"children":24681},{"style":4080},[24682],{"type":58,"value":23332},{"type":52,"tag":160,"props":24684,"children":24685},{"style":4181},[24686],{"type":58,"value":10814},{"type":52,"tag":160,"props":24688,"children":24689},{"style":4080},[24690],{"type":58,"value":20225},{"type":52,"tag":160,"props":24692,"children":24693},{"class":162,"line":422},[24694],{"type":52,"tag":160,"props":24695,"children":24696},{"style":4181},[24697],{"type":58,"value":20233},{"type":52,"tag":160,"props":24699,"children":24700},{"class":162,"line":430},[24701],{"type":52,"tag":160,"props":24702,"children":24703},{"style":4080},[24704],{"type":58,"value":23355},{"type":52,"tag":160,"props":24706,"children":24707},{"class":162,"line":439},[24708],{"type":52,"tag":160,"props":24709,"children":24710},{"style":4080},[24711],{"type":58,"value":23363},{"type":52,"tag":160,"props":24713,"children":24714},{"class":162,"line":448},[24715,24719,24723,24727],{"type":52,"tag":160,"props":24716,"children":24717},{"style":1771},[24718],{"type":58,"value":23371},{"type":52,"tag":160,"props":24720,"children":24721},{"style":4080},[24722],{"type":58,"value":23376},{"type":52,"tag":160,"props":24724,"children":24725},{"style":4181},[24726],{"type":58,"value":10814},{"type":52,"tag":160,"props":24728,"children":24729},{"style":4080},[24730],{"type":58,"value":23385},{"type":52,"tag":160,"props":24732,"children":24733},{"class":162,"line":457},[24734,24738,24742,24746],{"type":52,"tag":160,"props":24735,"children":24736},{"style":1771},[24737],{"type":58,"value":23371},{"type":52,"tag":160,"props":24739,"children":24740},{"style":4080},[24741],{"type":58,"value":23397},{"type":52,"tag":160,"props":24743,"children":24744},{"style":4181},[24745],{"type":58,"value":10814},{"type":52,"tag":160,"props":24747,"children":24748},{"style":4080},[24749],{"type":58,"value":23406},{"type":52,"tag":160,"props":24751,"children":24752},{"class":162,"line":466},[24753,24757,24761,24765],{"type":52,"tag":160,"props":24754,"children":24755},{"style":1771},[24756],{"type":58,"value":23371},{"type":52,"tag":160,"props":24758,"children":24759},{"style":4080},[24760],{"type":58,"value":23418},{"type":52,"tag":160,"props":24762,"children":24763},{"style":4181},[24764],{"type":58,"value":10814},{"type":52,"tag":160,"props":24766,"children":24767},{"style":4080},[24768],{"type":58,"value":23427},{"type":52,"tag":160,"props":24770,"children":24771},{"class":162,"line":474},[24772,24776,24780,24784],{"type":52,"tag":160,"props":24773,"children":24774},{"style":1771},[24775],{"type":58,"value":23371},{"type":52,"tag":160,"props":24777,"children":24778},{"style":4080},[24779],{"type":58,"value":23439},{"type":52,"tag":160,"props":24781,"children":24782},{"style":4181},[24783],{"type":58,"value":10814},{"type":52,"tag":160,"props":24785,"children":24786},{"style":4080},[24787],{"type":58,"value":23448},{"type":52,"tag":160,"props":24789,"children":24790},{"class":162,"line":483},[24791,24795,24799,24803],{"type":52,"tag":160,"props":24792,"children":24793},{"style":4181},[24794],{"type":58,"value":20345},{"type":52,"tag":160,"props":24796,"children":24797},{"style":1771},[24798],{"type":58,"value":18623},{"type":52,"tag":160,"props":24800,"children":24801},{"style":4080},[24802],{"type":58,"value":3931},{"type":52,"tag":160,"props":24804,"children":24805},{"style":1771},[24806],{"type":58,"value":23468},{"type":52,"tag":160,"props":24808,"children":24809},{"class":162,"line":492},[24810,24814],{"type":52,"tag":160,"props":24811,"children":24812},{"style":4181},[24813],{"type":58,"value":20543},{"type":52,"tag":160,"props":24815,"children":24816},{"style":4080},[24817],{"type":58,"value":23480},{"type":52,"tag":160,"props":24819,"children":24820},{"class":162,"line":501},[24821],{"type":52,"tag":160,"props":24822,"children":24823},{"style":4080},[24824],{"type":58,"value":20461},{"type":52,"tag":160,"props":24826,"children":24827},{"class":162,"line":510},[24828,24832,24836],{"type":52,"tag":160,"props":24829,"children":24830},{"style":4080},[24831],{"type":58,"value":23495},{"type":52,"tag":160,"props":24833,"children":24834},{"style":4181},[24835],{"type":58,"value":10814},{"type":52,"tag":160,"props":24837,"children":24838},{"style":4080},[24839],{"type":58,"value":20225},{"type":52,"tag":160,"props":24841,"children":24842},{"class":162,"line":519},[24843],{"type":52,"tag":160,"props":24844,"children":24845},{"style":4181},[24846],{"type":58,"value":20233},{"type":52,"tag":160,"props":24848,"children":24849},{"class":162,"line":528},[24850],{"type":52,"tag":160,"props":24851,"children":24852},{"style":4080},[24853],{"type":58,"value":23518},{"type":52,"tag":160,"props":24855,"children":24856},{"class":162,"line":537},[24857],{"type":52,"tag":160,"props":24858,"children":24859},{"style":4080},[24860],{"type":58,"value":23363},{"type":52,"tag":160,"props":24862,"children":24863},{"class":162,"line":546},[24864,24868,24872,24876,24880],{"type":52,"tag":160,"props":24865,"children":24866},{"style":1771},[24867],{"type":58,"value":23371},{"type":52,"tag":160,"props":24869,"children":24870},{"style":4080},[24871],{"type":58,"value":23537},{"type":52,"tag":160,"props":24873,"children":24874},{"style":4181},[24875],{"type":58,"value":10814},{"type":52,"tag":160,"props":24877,"children":24878},{"style":4181},[24879],{"type":58,"value":23546},{"type":52,"tag":160,"props":24881,"children":24882},{"style":4080},[24883],{"type":58,"value":10656},{"type":52,"tag":160,"props":24885,"children":24886},{"class":162,"line":555},[24887,24891,24895,24899],{"type":52,"tag":160,"props":24888,"children":24889},{"style":1771},[24890],{"type":58,"value":23371},{"type":52,"tag":160,"props":24892,"children":24893},{"style":4080},[24894],{"type":58,"value":23562},{"type":52,"tag":160,"props":24896,"children":24897},{"style":4181},[24898],{"type":58,"value":10814},{"type":52,"tag":160,"props":24900,"children":24901},{"style":4080},[24902],{"type":58,"value":16795},{"type":52,"tag":160,"props":24904,"children":24905},{"class":162,"line":564},[24906,24910,24914,24918],{"type":52,"tag":160,"props":24907,"children":24908},{"style":1771},[24909],{"type":58,"value":23371},{"type":52,"tag":160,"props":24911,"children":24912},{"style":4080},[24913],{"type":58,"value":23582},{"type":52,"tag":160,"props":24915,"children":24916},{"style":4181},[24917],{"type":58,"value":10814},{"type":52,"tag":160,"props":24919,"children":24920},{"style":4080},[24921],{"type":58,"value":23591},{"type":52,"tag":160,"props":24923,"children":24924},{"class":162,"line":573},[24925,24929,24933,24937],{"type":52,"tag":160,"props":24926,"children":24927},{"style":4181},[24928],{"type":58,"value":20345},{"type":52,"tag":160,"props":24930,"children":24931},{"style":1771},[24932],{"type":58,"value":18623},{"type":52,"tag":160,"props":24934,"children":24935},{"style":4080},[24936],{"type":58,"value":3931},{"type":52,"tag":160,"props":24938,"children":24939},{"style":1771},[24940],{"type":58,"value":23611},{"type":52,"tag":160,"props":24942,"children":24943},{"class":162,"line":582},[24944,24948],{"type":52,"tag":160,"props":24945,"children":24946},{"style":4181},[24947],{"type":58,"value":20543},{"type":52,"tag":160,"props":24949,"children":24950},{"style":4080},[24951],{"type":58,"value":23623},{"type":52,"tag":160,"props":24953,"children":24954},{"class":162,"line":591},[24955],{"type":52,"tag":160,"props":24956,"children":24957},{"style":4080},[24958],{"type":58,"value":20461},{"type":52,"tag":160,"props":24960,"children":24961},{"class":162,"line":599},[24962,24966,24970],{"type":52,"tag":160,"props":24963,"children":24964},{"style":4080},[24965],{"type":58,"value":23638},{"type":52,"tag":160,"props":24967,"children":24968},{"style":4181},[24969],{"type":58,"value":10814},{"type":52,"tag":160,"props":24971,"children":24972},{"style":4080},[24973],{"type":58,"value":20225},{"type":52,"tag":160,"props":24975,"children":24976},{"class":162,"line":608},[24977],{"type":52,"tag":160,"props":24978,"children":24979},{"style":4181},[24980],{"type":58,"value":20233},{"type":52,"tag":160,"props":24982,"children":24983},{"class":162,"line":617},[24984,24989,24993,24997],{"type":52,"tag":160,"props":24985,"children":24986},{"style":4181},[24987],{"type":58,"value":24988},"        DATE",{"type":52,"tag":160,"props":24990,"children":24991},{"style":4080},[24992],{"type":58,"value":18819},{"type":52,"tag":160,"props":24994,"children":24995},{"style":4181},[24996],{"type":58,"value":10814},{"type":52,"tag":160,"props":24998,"children":24999},{"style":4080},[25000],{"type":58,"value":10706},{"type":52,"tag":160,"props":25002,"children":25003},{"class":162,"line":626},[25004,25008,25012,25016],{"type":52,"tag":160,"props":25005,"children":25006},{"style":1771},[25007],{"type":58,"value":23677},{"type":52,"tag":160,"props":25009,"children":25010},{"style":4080},[25011],{"type":58,"value":3931},{"type":52,"tag":160,"props":25013,"children":25014},{"style":1771},[25015],{"type":58,"value":23686},{"type":52,"tag":160,"props":25017,"children":25018},{"style":4080},[25019],{"type":58,"value":10656},{"type":52,"tag":160,"props":25021,"children":25022},{"class":162,"line":635},[25023,25027,25031,25035,25039,25043,25047,25051],{"type":52,"tag":160,"props":25024,"children":25025},{"style":1771},[25026],{"type":58,"value":23371},{"type":52,"tag":160,"props":25028,"children":25029},{"style":4080},[25030],{"type":58,"value":10763},{"type":52,"tag":160,"props":25032,"children":25033},{"style":1771},[25034],{"type":58,"value":10768},{"type":52,"tag":160,"props":25036,"children":25037},{"style":4080},[25038],{"type":58,"value":3931},{"type":52,"tag":160,"props":25040,"children":25041},{"style":1771},[25042],{"type":58,"value":20811},{"type":52,"tag":160,"props":25044,"children":25045},{"style":4080},[25046],{"type":58,"value":11279},{"type":52,"tag":160,"props":25048,"children":25049},{"style":4181},[25050],{"type":58,"value":10814},{"type":52,"tag":160,"props":25052,"children":25053},{"style":4080},[25054],{"type":58,"value":23726},{"type":52,"tag":160,"props":25056,"children":25057},{"class":162,"line":644},[25058,25062,25066,25070,25074],{"type":52,"tag":160,"props":25059,"children":25060},{"style":4181},[25061],{"type":58,"value":20345},{"type":52,"tag":160,"props":25063,"children":25064},{"style":1771},[25065],{"type":58,"value":18623},{"type":52,"tag":160,"props":25067,"children":25068},{"style":4080},[25069],{"type":58,"value":3931},{"type":52,"tag":160,"props":25071,"children":25072},{"style":1771},[25073],{"type":58,"value":19245},{"type":52,"tag":160,"props":25075,"children":25076},{"style":4080},[25077],{"type":58,"value":11184},{"type":52,"tag":160,"props":25079,"children":25080},{"class":162,"line":653},[25081,25085,25089,25093,25097],{"type":52,"tag":160,"props":25082,"children":25083},{"style":4181},[25084],{"type":58,"value":20369},{"type":52,"tag":160,"props":25086,"children":25087},{"style":1771},[25088],{"type":58,"value":18623},{"type":52,"tag":160,"props":25090,"children":25091},{"style":4080},[25092],{"type":58,"value":3931},{"type":52,"tag":160,"props":25094,"children":25095},{"style":1771},[25096],{"type":58,"value":23769},{"type":52,"tag":160,"props":25098,"children":25099},{"style":4080},[25100],{"type":58,"value":23774},{"type":52,"tag":160,"props":25102,"children":25103},{"class":162,"line":662},[25104,25108,25112,25116,25120,25124,25128,25132,25136,25140,25144],{"type":52,"tag":160,"props":25105,"children":25106},{"style":4181},[25107],{"type":58,"value":20394},{"type":52,"tag":160,"props":25109,"children":25110},{"style":4181},[25111],{"type":58,"value":12078},{"type":52,"tag":160,"props":25113,"children":25114},{"style":4080},[25115],{"type":58,"value":10763},{"type":52,"tag":160,"props":25117,"children":25118},{"style":1771},[25119],{"type":58,"value":10768},{"type":52,"tag":160,"props":25121,"children":25122},{"style":4080},[25123],{"type":58,"value":3931},{"type":52,"tag":160,"props":25125,"children":25126},{"style":1771},[25127],{"type":58,"value":20308},{"type":52,"tag":160,"props":25129,"children":25130},{"style":4080},[25131],{"type":58,"value":11279},{"type":52,"tag":160,"props":25133,"children":25134},{"style":4181},[25135],{"type":58,"value":11284},{"type":52,"tag":160,"props":25137,"children":25138},{"style":1771},[25139],{"type":58,"value":23810},{"type":52,"tag":160,"props":25141,"children":25142},{"style":4080},[25143],{"type":58,"value":3931},{"type":52,"tag":160,"props":25145,"children":25146},{"style":1771},[25147],{"type":58,"value":23819},{"type":52,"tag":160,"props":25149,"children":25150},{"class":162,"line":671},[25151,25155,25159,25163,25167,25171],{"type":52,"tag":160,"props":25152,"children":25153},{"style":4181},[25154],{"type":58,"value":20431},{"type":52,"tag":160,"props":25156,"children":25157},{"style":1771},[25158],{"type":58,"value":11222},{"type":52,"tag":160,"props":25160,"children":25161},{"style":4080},[25162],{"type":58,"value":3931},{"type":52,"tag":160,"props":25164,"children":25165},{"style":1771},[25166],{"type":58,"value":20444},{"type":52,"tag":160,"props":25168,"children":25169},{"style":4181},[25170],{"type":58,"value":11235},{"type":52,"tag":160,"props":25172,"children":25173},{"style":173},[25174],{"type":58,"value":20453},{"type":52,"tag":160,"props":25176,"children":25177},{"class":162,"line":680},[25178,25182,25186,25191,25195,25199],{"type":52,"tag":160,"props":25179,"children":25180},{"style":4181},[25181],{"type":58,"value":20543},{"type":52,"tag":160,"props":25183,"children":25184},{"style":4181},[25185],{"type":58,"value":12078},{"type":52,"tag":160,"props":25187,"children":25188},{"style":4080},[25189],{"type":58,"value":25190},"(order_date), ",{"type":52,"tag":160,"props":25192,"children":25193},{"style":1771},[25194],{"type":58,"value":23863},{"type":52,"tag":160,"props":25196,"children":25197},{"style":4080},[25198],{"type":58,"value":3931},{"type":52,"tag":160,"props":25200,"children":25201},{"style":1771},[25202],{"type":58,"value":23872},{"type":52,"tag":160,"props":25204,"children":25205},{"class":162,"line":688},[25206],{"type":52,"tag":160,"props":25207,"children":25208},{"style":4080},[25209],{"type":58,"value":11307},{"type":52,"tag":160,"props":25211,"children":25212},{"class":162,"line":697},[25213],{"type":52,"tag":160,"props":25214,"children":25215},{"style":4181},[25216],{"type":58,"value":10608},{"type":52,"tag":160,"props":25218,"children":25219},{"class":162,"line":706},[25220,25224,25228,25232,25236],{"type":52,"tag":160,"props":25221,"children":25222},{"style":1771},[25223],{"type":58,"value":20591},{"type":52,"tag":160,"props":25225,"children":25226},{"style":4080},[25227],{"type":58,"value":3931},{"type":52,"tag":160,"props":25229,"children":25230},{"style":1771},[25231],{"type":58,"value":23902},{"type":52,"tag":160,"props":25233,"children":25234},{"style":4181},[25235],{"type":58,"value":10630},{"type":52,"tag":160,"props":25237,"children":25238},{"style":4080},[25239],{"type":58,"value":23911},{"type":52,"tag":160,"props":25241,"children":25242},{"class":162,"line":715},[25243,25247,25251,25255],{"type":52,"tag":160,"props":25244,"children":25245},{"style":1771},[25246],{"type":58,"value":20591},{"type":52,"tag":160,"props":25248,"children":25249},{"style":4080},[25250],{"type":58,"value":3931},{"type":52,"tag":160,"props":25252,"children":25253},{"style":1771},[25254],{"type":58,"value":23686},{"type":52,"tag":160,"props":25256,"children":25257},{"style":4080},[25258],{"type":58,"value":10656},{"type":52,"tag":160,"props":25260,"children":25261},{"class":162,"line":724},[25262,25266,25270,25274],{"type":52,"tag":160,"props":25263,"children":25264},{"style":1771},[25265],{"type":58,"value":20591},{"type":52,"tag":160,"props":25267,"children":25268},{"style":4080},[25269],{"type":58,"value":3931},{"type":52,"tag":160,"props":25271,"children":25272},{"style":1771},[25273],{"type":58,"value":23946},{"type":52,"tag":160,"props":25275,"children":25276},{"style":4080},[25277],{"type":58,"value":10656},{"type":52,"tag":160,"props":25279,"children":25280},{"class":162,"line":733},[25281,25285,25289,25293],{"type":52,"tag":160,"props":25282,"children":25283},{"style":1771},[25284],{"type":58,"value":20591},{"type":52,"tag":160,"props":25286,"children":25287},{"style":4080},[25288],{"type":58,"value":3931},{"type":52,"tag":160,"props":25290,"children":25291},{"style":1771},[25292],{"type":58,"value":23966},{"type":52,"tag":160,"props":25294,"children":25295},{"style":4080},[25296],{"type":58,"value":10656},{"type":52,"tag":160,"props":25298,"children":25299},{"class":162,"line":742},[25300,25304,25308,25312],{"type":52,"tag":160,"props":25301,"children":25302},{"style":1771},[25303],{"type":58,"value":20591},{"type":52,"tag":160,"props":25305,"children":25306},{"style":4080},[25307],{"type":58,"value":3931},{"type":52,"tag":160,"props":25309,"children":25310},{"style":1771},[25311],{"type":58,"value":23986},{"type":52,"tag":160,"props":25313,"children":25314},{"style":4080},[25315],{"type":58,"value":10656},{"type":52,"tag":160,"props":25317,"children":25318},{"class":162,"line":23993},[25319,25323,25327,25331],{"type":52,"tag":160,"props":25320,"children":25321},{"style":1771},[25322],{"type":58,"value":20591},{"type":52,"tag":160,"props":25324,"children":25325},{"style":4080},[25326],{"type":58,"value":3931},{"type":52,"tag":160,"props":25328,"children":25329},{"style":1771},[25330],{"type":58,"value":24007},{"type":52,"tag":160,"props":25332,"children":25333},{"style":4080},[25334],{"type":58,"value":10656},{"type":52,"tag":160,"props":25336,"children":25337},{"class":162,"line":24014},[25338,25342,25346,25350],{"type":52,"tag":160,"props":25339,"children":25340},{"style":1771},[25341],{"type":58,"value":24020},{"type":52,"tag":160,"props":25343,"children":25344},{"style":4080},[25345],{"type":58,"value":3931},{"type":52,"tag":160,"props":25347,"children":25348},{"style":1771},[25349],{"type":58,"value":16221},{"type":52,"tag":160,"props":25351,"children":25352},{"style":4080},[25353],{"type":58,"value":10656},{"type":52,"tag":160,"props":25355,"children":25356},{"class":162,"line":24035},[25357,25361,25365,25369],{"type":52,"tag":160,"props":25358,"children":25359},{"style":1771},[25360],{"type":58,"value":24020},{"type":52,"tag":160,"props":25362,"children":25363},{"style":4080},[25364],{"type":58,"value":3931},{"type":52,"tag":160,"props":25366,"children":25367},{"style":1771},[25368],{"type":58,"value":16246},{"type":52,"tag":160,"props":25370,"children":25371},{"style":4080},[25372],{"type":58,"value":10656},{"type":52,"tag":160,"props":25374,"children":25375},{"class":162,"line":24055},[25376,25380,25384,25388],{"type":52,"tag":160,"props":25377,"children":25378},{"style":1771},[25379],{"type":58,"value":24061},{"type":52,"tag":160,"props":25381,"children":25382},{"style":4080},[25383],{"type":58,"value":3931},{"type":52,"tag":160,"props":25385,"children":25386},{"style":1771},[25387],{"type":58,"value":24070},{"type":52,"tag":160,"props":25389,"children":25390},{"style":4080},[25391],{"type":58,"value":10656},{"type":52,"tag":160,"props":25393,"children":25394},{"class":162,"line":24077},[25395,25399,25403,25407,25411,25415,25419,25423,25427,25431,25435,25439,25443,25447,25451,25455,25459,25463],{"type":52,"tag":160,"props":25396,"children":25397},{"style":1771},[25398],{"type":58,"value":18503},{"type":52,"tag":160,"props":25400,"children":25401},{"style":4080},[25402],{"type":58,"value":10763},{"type":52,"tag":160,"props":25404,"children":25405},{"style":1771},[25406],{"type":58,"value":24091},{"type":52,"tag":160,"props":25408,"children":25409},{"style":4080},[25410],{"type":58,"value":3931},{"type":52,"tag":160,"props":25412,"children":25413},{"style":1771},[25414],{"type":58,"value":24070},{"type":52,"tag":160,"props":25416,"children":25417},{"style":4181},[25418],{"type":58,"value":11084},{"type":52,"tag":160,"props":25420,"children":25421},{"style":1771},[25422],{"type":58,"value":19099},{"type":52,"tag":160,"props":25424,"children":25425},{"style":4080},[25426],{"type":58,"value":10763},{"type":52,"tag":160,"props":25428,"children":25429},{"style":1771},[25430],{"type":58,"value":20738},{"type":52,"tag":160,"props":25432,"children":25433},{"style":4080},[25434],{"type":58,"value":3931},{"type":52,"tag":160,"props":25436,"children":25437},{"style":1771},[25438],{"type":58,"value":23946},{"type":52,"tag":160,"props":25440,"children":25441},{"style":4080},[25442],{"type":58,"value":3976},{"type":52,"tag":160,"props":25444,"children":25445},{"style":1771},[25446],{"type":58,"value":11098},{"type":52,"tag":160,"props":25448,"children":25449},{"style":4080},[25450],{"type":58,"value":18532},{"type":52,"tag":160,"props":25452,"children":25453},{"style":1771},[25454],{"type":58,"value":10804},{"type":52,"tag":160,"props":25456,"children":25457},{"style":4080},[25458],{"type":58,"value":11279},{"type":52,"tag":160,"props":25460,"children":25461},{"style":4181},[25462],{"type":58,"value":10814},{"type":52,"tag":160,"props":25464,"children":25465},{"style":4080},[25466],{"type":58,"value":24152},{"type":52,"tag":160,"props":25468,"children":25469},{"class":162,"line":24155},[25470,25474,25478,25482,25486,25490,25494,25498,25502,25506,25510,25514,25518,25522,25526,25530,25534,25538],{"type":52,"tag":160,"props":25471,"children":25472},{"style":1771},[25473],{"type":58,"value":18503},{"type":52,"tag":160,"props":25475,"children":25476},{"style":4080},[25477],{"type":58,"value":10763},{"type":52,"tag":160,"props":25479,"children":25480},{"style":1771},[25481],{"type":58,"value":20738},{"type":52,"tag":160,"props":25483,"children":25484},{"style":4080},[25485],{"type":58,"value":3931},{"type":52,"tag":160,"props":25487,"children":25488},{"style":1771},[25489],{"type":58,"value":23946},{"type":52,"tag":160,"props":25491,"children":25492},{"style":4181},[25493],{"type":58,"value":11084},{"type":52,"tag":160,"props":25495,"children":25496},{"style":1771},[25497],{"type":58,"value":19099},{"type":52,"tag":160,"props":25499,"children":25500},{"style":4080},[25501],{"type":58,"value":10763},{"type":52,"tag":160,"props":25503,"children":25504},{"style":1771},[25505],{"type":58,"value":20738},{"type":52,"tag":160,"props":25507,"children":25508},{"style":4080},[25509],{"type":58,"value":3931},{"type":52,"tag":160,"props":25511,"children":25512},{"style":1771},[25513],{"type":58,"value":24007},{"type":52,"tag":160,"props":25515,"children":25516},{"style":4080},[25517],{"type":58,"value":3976},{"type":52,"tag":160,"props":25519,"children":25520},{"style":1771},[25521],{"type":58,"value":11098},{"type":52,"tag":160,"props":25523,"children":25524},{"style":4080},[25525],{"type":58,"value":18532},{"type":52,"tag":160,"props":25527,"children":25528},{"style":1771},[25529],{"type":58,"value":10804},{"type":52,"tag":160,"props":25531,"children":25532},{"style":4080},[25533],{"type":58,"value":11279},{"type":52,"tag":160,"props":25535,"children":25536},{"style":4181},[25537],{"type":58,"value":10814},{"type":52,"tag":160,"props":25539,"children":25540},{"style":4080},[25541],{"type":58,"value":24229},{"type":52,"tag":160,"props":25543,"children":25544},{"class":162,"line":24232},[25545,25549,25553,25557,25561,25565,25569,25573,25577,25581,25585,25589,25593,25597,25601,25605,25609,25613,25617,25621,25625],{"type":52,"tag":160,"props":25546,"children":25547},{"style":1771},[25548],{"type":58,"value":18503},{"type":52,"tag":160,"props":25550,"children":25551},{"style":4080},[25552],{"type":58,"value":10763},{"type":52,"tag":160,"props":25554,"children":25555},{"style":1771},[25556],{"type":58,"value":20738},{"type":52,"tag":160,"props":25558,"children":25559},{"style":4080},[25560],{"type":58,"value":3931},{"type":52,"tag":160,"props":25562,"children":25563},{"style":1771},[25564],{"type":58,"value":23986},{"type":52,"tag":160,"props":25566,"children":25567},{"style":4181},[25568],{"type":58,"value":11084},{"type":52,"tag":160,"props":25570,"children":25571},{"style":1771},[25572],{"type":58,"value":19099},{"type":52,"tag":160,"props":25574,"children":25575},{"style":4080},[25576],{"type":58,"value":10763},{"type":52,"tag":160,"props":25578,"children":25579},{"style":1771},[25580],{"type":58,"value":20738},{"type":52,"tag":160,"props":25582,"children":25583},{"style":4080},[25584],{"type":58,"value":3931},{"type":52,"tag":160,"props":25586,"children":25587},{"style":1771},[25588],{"type":58,"value":23966},{"type":52,"tag":160,"props":25590,"children":25591},{"style":4080},[25592],{"type":58,"value":3976},{"type":52,"tag":160,"props":25594,"children":25595},{"style":1771},[25596],{"type":58,"value":11098},{"type":52,"tag":160,"props":25598,"children":25599},{"style":4080},[25600],{"type":58,"value":11279},{"type":52,"tag":160,"props":25602,"children":25603},{"style":4181},[25604],{"type":58,"value":16713},{"type":52,"tag":160,"props":25606,"children":25607},{"style":1771},[25608],{"type":58,"value":11089},{"type":52,"tag":160,"props":25610,"children":25611},{"style":4080},[25612],{"type":58,"value":3976},{"type":52,"tag":160,"props":25614,"children":25615},{"style":1771},[25616],{"type":58,"value":10804},{"type":52,"tag":160,"props":25618,"children":25619},{"style":4080},[25620],{"type":58,"value":11279},{"type":52,"tag":160,"props":25622,"children":25623},{"style":4181},[25624],{"type":58,"value":10814},{"type":52,"tag":160,"props":25626,"children":25627},{"style":4080},[25628],{"type":58,"value":24318},{"type":52,"tag":160,"props":25630,"children":25631},{"class":162,"line":24321},[25632,25636],{"type":52,"tag":160,"props":25633,"children":25634},{"style":4181},[25635],{"type":58,"value":11165},{"type":52,"tag":160,"props":25637,"children":25638},{"style":4080},[25639],{"type":58,"value":24331},{"type":52,"tag":160,"props":25641,"children":25642},{"class":162,"line":24334},[25643,25647],{"type":52,"tag":160,"props":25644,"children":25645},{"style":4181},[25646],{"type":58,"value":10306},{"type":52,"tag":160,"props":25648,"children":25649},{"style":4080},[25650],{"type":58,"value":24344},{"type":52,"tag":160,"props":25652,"children":25653},{"class":162,"line":24347},[25654,25658,25662,25666,25670,25674,25678,25682],{"type":52,"tag":160,"props":25655,"children":25656},{"style":4181},[25657],{"type":58,"value":11217},{"type":52,"tag":160,"props":25659,"children":25660},{"style":1771},[25661],{"type":58,"value":20942},{"type":52,"tag":160,"props":25663,"children":25664},{"style":4080},[25665],{"type":58,"value":3931},{"type":52,"tag":160,"props":25667,"children":25668},{"style":1771},[25669],{"type":58,"value":23902},{"type":52,"tag":160,"props":25671,"children":25672},{"style":4181},[25673],{"type":58,"value":11235},{"type":52,"tag":160,"props":25675,"children":25676},{"style":1771},[25677],{"type":58,"value":24373},{"type":52,"tag":160,"props":25679,"children":25680},{"style":4080},[25681],{"type":58,"value":3931},{"type":52,"tag":160,"props":25683,"children":25684},{"style":1771},[25685],{"type":58,"value":23819},{"type":52,"tag":160,"props":25687,"children":25688},{"class":162,"line":24384},[25689,25693,25697,25701,25705,25709,25713,25717],{"type":52,"tag":160,"props":25690,"children":25691},{"style":4181},[25692],{"type":58,"value":11257},{"type":52,"tag":160,"props":25694,"children":25695},{"style":1771},[25696],{"type":58,"value":20942},{"type":52,"tag":160,"props":25698,"children":25699},{"style":4080},[25700],{"type":58,"value":3931},{"type":52,"tag":160,"props":25702,"children":25703},{"style":1771},[25704],{"type":58,"value":23686},{"type":52,"tag":160,"props":25706,"children":25707},{"style":4181},[25708],{"type":58,"value":11235},{"type":52,"tag":160,"props":25710,"children":25711},{"style":1771},[25712],{"type":58,"value":24373},{"type":52,"tag":160,"props":25714,"children":25715},{"style":4080},[25716],{"type":58,"value":3931},{"type":52,"tag":160,"props":25718,"children":25719},{"style":1771},[25720],{"type":58,"value":23872},{"type":52,"tag":160,"props":25722,"children":25723},{"class":162,"line":24420},[25724,25728],{"type":52,"tag":160,"props":25725,"children":25726},{"style":4181},[25727],{"type":58,"value":10306},{"type":52,"tag":160,"props":25729,"children":25730},{"style":4080},[25731],{"type":58,"value":24430},{"type":52,"tag":160,"props":25733,"children":25734},{"class":162,"line":24433},[25735,25739,25743,25747,25751,25755,25759,25763],{"type":52,"tag":160,"props":25736,"children":25737},{"style":4181},[25738],{"type":58,"value":11217},{"type":52,"tag":160,"props":25740,"children":25741},{"style":1771},[25742],{"type":58,"value":20942},{"type":52,"tag":160,"props":25744,"children":25745},{"style":4080},[25746],{"type":58,"value":3931},{"type":52,"tag":160,"props":25748,"children":25749},{"style":1771},[25750],{"type":58,"value":23902},{"type":52,"tag":160,"props":25752,"children":25753},{"style":4181},[25754],{"type":58,"value":11235},{"type":52,"tag":160,"props":25756,"children":25757},{"style":1771},[25758],{"type":58,"value":24459},{"type":52,"tag":160,"props":25760,"children":25761},{"style":4080},[25762],{"type":58,"value":3931},{"type":52,"tag":160,"props":25764,"children":25765},{"style":1771},[25766],{"type":58,"value":24468},{"type":52,"tag":160,"props":25768,"children":25769},{"class":162,"line":24471},[25770,25774,25778,25782,25786,25790,25794,25798],{"type":52,"tag":160,"props":25771,"children":25772},{"style":4181},[25773],{"type":58,"value":11257},{"type":52,"tag":160,"props":25775,"children":25776},{"style":1771},[25777],{"type":58,"value":20942},{"type":52,"tag":160,"props":25779,"children":25780},{"style":4080},[25781],{"type":58,"value":3931},{"type":52,"tag":160,"props":25783,"children":25784},{"style":1771},[25785],{"type":58,"value":23686},{"type":52,"tag":160,"props":25787,"children":25788},{"style":4181},[25789],{"type":58,"value":11235},{"type":52,"tag":160,"props":25791,"children":25792},{"style":1771},[25793],{"type":58,"value":24459},{"type":52,"tag":160,"props":25795,"children":25796},{"style":4080},[25797],{"type":58,"value":3931},{"type":52,"tag":160,"props":25799,"children":25800},{"style":1771},[25801],{"type":58,"value":23872},{"type":52,"tag":160,"props":25803,"children":25804},{"class":162,"line":24507},[25805,25809,25813,25817,25821,25825,25829,25833,25837,25841],{"type":52,"tag":160,"props":25806,"children":25807},{"style":4181},[25808],{"type":58,"value":18652},{"type":52,"tag":160,"props":25810,"children":25811},{"style":1771},[25812],{"type":58,"value":20942},{"type":52,"tag":160,"props":25814,"children":25815},{"style":4080},[25816],{"type":58,"value":3931},{"type":52,"tag":160,"props":25818,"children":25819},{"style":1771},[25820],{"type":58,"value":23902},{"type":52,"tag":160,"props":25822,"children":25823},{"style":4181},[25824],{"type":58,"value":12257},{"type":52,"tag":160,"props":25826,"children":25827},{"style":4080},[25828],{"type":58,"value":3976},{"type":52,"tag":160,"props":25830,"children":25831},{"style":1771},[25832],{"type":58,"value":20738},{"type":52,"tag":160,"props":25834,"children":25835},{"style":4080},[25836],{"type":58,"value":3931},{"type":52,"tag":160,"props":25838,"children":25839},{"style":1771},[25840],{"type":58,"value":23946},{"type":52,"tag":160,"props":25842,"children":25843},{"style":4181},[25844],{"type":58,"value":24549},{"type":52,"tag":259,"props":25846,"children":25847},{"v-slot:snowflake":7},[25848],{"type":52,"tag":150,"props":25849,"children":25851},{"className":10404,"code":25850,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_marketing_roi\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - staging.stg_marketing_spend\n  - staging.stg_web_sessions\n  - staging.stg_orders\ncolumns:\n  - name: channel\n    type: varchar\n    checks:\n      - name: not_null\n@bruin *\u002F\n\nWITH channel_spend AS (\n    SELECT\n        spend_date,\n        channel,\n        sum(spend) AS total_spend,\n        sum(impressions) AS total_impressions,\n        sum(clicks) AS total_clicks,\n        sum(conversions) AS total_conversions\n    FROM staging.stg_marketing_spend\n    GROUP BY spend_date, channel\n),\nchannel_sessions AS (\n    SELECT\n        session_date,\n        channel,\n        sum(total_sessions) AS sessions,\n        sum(new_users) AS new_users,\n        sum(purchase_events) AS purchases\n    FROM staging.stg_web_sessions\n    GROUP BY session_date, channel\n),\nchannel_revenue AS (\n    SELECT\n        order_date::DATE AS order_date,\n        ws.channel,\n        sum(o.order_total) AS attributed_revenue\n    FROM staging.stg_orders o\n    INNER JOIN staging.stg_web_sessions ws\n        ON order_date::DATE = ws.session_date\n    WHERE o.payment_status = 'paid'\n    GROUP BY order_date::DATE, ws.channel\n)\nSELECT\n    cs.spend_date AS report_date,\n    cs.channel,\n    cs.total_spend,\n    cs.total_impressions,\n    cs.total_clicks,\n    cs.total_conversions,\n    sess.sessions,\n    sess.new_users,\n    cr.attributed_revenue,\n    round(cr.attributed_revenue \u002F NULLIF(cs.total_spend, 0), 2) AS roas,\n    round(cs.total_spend \u002F NULLIF(cs.total_conversions, 0), 2) AS cost_per_acquisition,\n    round(cs.total_clicks \u002F NULLIF(cs.total_impressions, 0) * 100, 2) AS click_through_rate\nFROM channel_spend cs\nLEFT JOIN channel_sessions sess\n    ON cs.spend_date = sess.session_date\n    AND cs.channel = sess.channel\nLEFT JOIN channel_revenue cr\n    ON cs.spend_date = cr.order_date\n    AND cs.channel = cr.channel\nORDER BY cs.spend_date DESC, cs.total_spend DESC\n",[25852],{"type":52,"tag":71,"props":25853,"children":25854},{"__ignoreMap":7},[25855,25862,25869,25876,25883,25890,25897,25904,25911,25918,25925,25932,25939,25946,25953,25960,25967,25986,25993,26000,26007,26026,26045,26064,26083,26102,26113,26120,26135,26142,26149,26156,26179,26198,26217,26236,26247,26254,26269,26276,26296,26315,26350,26373,26396,26427,26454,26485,26492,26499,26522,26541,26560,26579,26598,26617,26636,26655,26674,26749,26824,26911,26922,26933,26968,27003,27014,27049,27084],{"type":52,"tag":160,"props":25856,"children":25857},{"class":162,"line":163},[25858],{"type":52,"tag":160,"props":25859,"children":25860},{"style":10416},[25861],{"type":58,"value":10419},{"type":52,"tag":160,"props":25863,"children":25864},{"class":162,"line":281},[25865],{"type":52,"tag":160,"props":25866,"children":25867},{"style":10416},[25868],{"type":58,"value":23219},{"type":52,"tag":160,"props":25870,"children":25871},{"class":162,"line":290},[25872],{"type":52,"tag":160,"props":25873,"children":25874},{"style":10416},[25875],{"type":58,"value":10435},{"type":52,"tag":160,"props":25877,"children":25878},{"class":162,"line":299},[25879],{"type":52,"tag":160,"props":25880,"children":25881},{"style":10416},[25882],{"type":58,"value":10443},{"type":52,"tag":160,"props":25884,"children":25885},{"class":162,"line":27},[25886],{"type":52,"tag":160,"props":25887,"children":25888},{"style":10416},[25889],{"type":58,"value":10451},{"type":52,"tag":160,"props":25891,"children":25892},{"class":162,"line":316},[25893],{"type":52,"tag":160,"props":25894,"children":25895},{"style":10416},[25896],{"type":58,"value":10459},{"type":52,"tag":160,"props":25898,"children":25899},{"class":162,"line":325},[25900],{"type":52,"tag":160,"props":25901,"children":25902},{"style":10416},[25903],{"type":58,"value":23255},{"type":52,"tag":160,"props":25905,"children":25906},{"class":162,"line":334},[25907],{"type":52,"tag":160,"props":25908,"children":25909},{"style":10416},[25910],{"type":58,"value":23263},{"type":52,"tag":160,"props":25912,"children":25913},{"class":162,"line":343},[25914],{"type":52,"tag":160,"props":25915,"children":25916},{"style":10416},[25917],{"type":58,"value":18170},{"type":52,"tag":160,"props":25919,"children":25920},{"class":162,"line":11},[25921],{"type":52,"tag":160,"props":25922,"children":25923},{"style":10416},[25924],{"type":58,"value":10483},{"type":52,"tag":160,"props":25926,"children":25927},{"class":162,"line":359},[25928],{"type":52,"tag":160,"props":25929,"children":25930},{"style":10416},[25931],{"type":58,"value":23285},{"type":52,"tag":160,"props":25933,"children":25934},{"class":162,"line":368},[25935],{"type":52,"tag":160,"props":25936,"children":25937},{"style":10416},[25938],{"type":58,"value":10499},{"type":52,"tag":160,"props":25940,"children":25941},{"class":162,"line":377},[25942],{"type":52,"tag":160,"props":25943,"children":25944},{"style":10416},[25945],{"type":58,"value":10507},{"type":52,"tag":160,"props":25947,"children":25948},{"class":162,"line":386},[25949],{"type":52,"tag":160,"props":25950,"children":25951},{"style":10416},[25952],{"type":58,"value":10515},{"type":52,"tag":160,"props":25954,"children":25955},{"class":162,"line":395},[25956],{"type":52,"tag":160,"props":25957,"children":25958},{"style":10416},[25959],{"type":58,"value":10593},{"type":52,"tag":160,"props":25961,"children":25962},{"class":162,"line":404},[25963],{"type":52,"tag":160,"props":25964,"children":25965},{"emptyLinePlaceholder":26},[25966],{"type":58,"value":287},{"type":52,"tag":160,"props":25968,"children":25969},{"class":162,"line":413},[25970,25974,25978,25982],{"type":52,"tag":160,"props":25971,"children":25972},{"style":4181},[25973],{"type":58,"value":20211},{"type":52,"tag":160,"props":25975,"children":25976},{"style":4080},[25977],{"type":58,"value":23332},{"type":52,"tag":160,"props":25979,"children":25980},{"style":4181},[25981],{"type":58,"value":10814},{"type":52,"tag":160,"props":25983,"children":25984},{"style":4080},[25985],{"type":58,"value":20225},{"type":52,"tag":160,"props":25987,"children":25988},{"class":162,"line":422},[25989],{"type":52,"tag":160,"props":25990,"children":25991},{"style":4181},[25992],{"type":58,"value":20233},{"type":52,"tag":160,"props":25994,"children":25995},{"class":162,"line":430},[25996],{"type":52,"tag":160,"props":25997,"children":25998},{"style":4080},[25999],{"type":58,"value":23355},{"type":52,"tag":160,"props":26001,"children":26002},{"class":162,"line":439},[26003],{"type":52,"tag":160,"props":26004,"children":26005},{"style":4080},[26006],{"type":58,"value":23363},{"type":52,"tag":160,"props":26008,"children":26009},{"class":162,"line":448},[26010,26014,26018,26022],{"type":52,"tag":160,"props":26011,"children":26012},{"style":1771},[26013],{"type":58,"value":23371},{"type":52,"tag":160,"props":26015,"children":26016},{"style":4080},[26017],{"type":58,"value":23376},{"type":52,"tag":160,"props":26019,"children":26020},{"style":4181},[26021],{"type":58,"value":10814},{"type":52,"tag":160,"props":26023,"children":26024},{"style":4080},[26025],{"type":58,"value":23385},{"type":52,"tag":160,"props":26027,"children":26028},{"class":162,"line":457},[26029,26033,26037,26041],{"type":52,"tag":160,"props":26030,"children":26031},{"style":1771},[26032],{"type":58,"value":23371},{"type":52,"tag":160,"props":26034,"children":26035},{"style":4080},[26036],{"type":58,"value":23397},{"type":52,"tag":160,"props":26038,"children":26039},{"style":4181},[26040],{"type":58,"value":10814},{"type":52,"tag":160,"props":26042,"children":26043},{"style":4080},[26044],{"type":58,"value":23406},{"type":52,"tag":160,"props":26046,"children":26047},{"class":162,"line":466},[26048,26052,26056,26060],{"type":52,"tag":160,"props":26049,"children":26050},{"style":1771},[26051],{"type":58,"value":23371},{"type":52,"tag":160,"props":26053,"children":26054},{"style":4080},[26055],{"type":58,"value":23418},{"type":52,"tag":160,"props":26057,"children":26058},{"style":4181},[26059],{"type":58,"value":10814},{"type":52,"tag":160,"props":26061,"children":26062},{"style":4080},[26063],{"type":58,"value":23427},{"type":52,"tag":160,"props":26065,"children":26066},{"class":162,"line":474},[26067,26071,26075,26079],{"type":52,"tag":160,"props":26068,"children":26069},{"style":1771},[26070],{"type":58,"value":23371},{"type":52,"tag":160,"props":26072,"children":26073},{"style":4080},[26074],{"type":58,"value":23439},{"type":52,"tag":160,"props":26076,"children":26077},{"style":4181},[26078],{"type":58,"value":10814},{"type":52,"tag":160,"props":26080,"children":26081},{"style":4080},[26082],{"type":58,"value":23448},{"type":52,"tag":160,"props":26084,"children":26085},{"class":162,"line":483},[26086,26090,26094,26098],{"type":52,"tag":160,"props":26087,"children":26088},{"style":4181},[26089],{"type":58,"value":20345},{"type":52,"tag":160,"props":26091,"children":26092},{"style":1771},[26093],{"type":58,"value":18623},{"type":52,"tag":160,"props":26095,"children":26096},{"style":4080},[26097],{"type":58,"value":3931},{"type":52,"tag":160,"props":26099,"children":26100},{"style":1771},[26101],{"type":58,"value":23468},{"type":52,"tag":160,"props":26103,"children":26104},{"class":162,"line":492},[26105,26109],{"type":52,"tag":160,"props":26106,"children":26107},{"style":4181},[26108],{"type":58,"value":20543},{"type":52,"tag":160,"props":26110,"children":26111},{"style":4080},[26112],{"type":58,"value":23480},{"type":52,"tag":160,"props":26114,"children":26115},{"class":162,"line":501},[26116],{"type":52,"tag":160,"props":26117,"children":26118},{"style":4080},[26119],{"type":58,"value":20461},{"type":52,"tag":160,"props":26121,"children":26122},{"class":162,"line":510},[26123,26127,26131],{"type":52,"tag":160,"props":26124,"children":26125},{"style":4080},[26126],{"type":58,"value":23495},{"type":52,"tag":160,"props":26128,"children":26129},{"style":4181},[26130],{"type":58,"value":10814},{"type":52,"tag":160,"props":26132,"children":26133},{"style":4080},[26134],{"type":58,"value":20225},{"type":52,"tag":160,"props":26136,"children":26137},{"class":162,"line":519},[26138],{"type":52,"tag":160,"props":26139,"children":26140},{"style":4181},[26141],{"type":58,"value":20233},{"type":52,"tag":160,"props":26143,"children":26144},{"class":162,"line":528},[26145],{"type":52,"tag":160,"props":26146,"children":26147},{"style":4080},[26148],{"type":58,"value":23518},{"type":52,"tag":160,"props":26150,"children":26151},{"class":162,"line":537},[26152],{"type":52,"tag":160,"props":26153,"children":26154},{"style":4080},[26155],{"type":58,"value":23363},{"type":52,"tag":160,"props":26157,"children":26158},{"class":162,"line":546},[26159,26163,26167,26171,26175],{"type":52,"tag":160,"props":26160,"children":26161},{"style":1771},[26162],{"type":58,"value":23371},{"type":52,"tag":160,"props":26164,"children":26165},{"style":4080},[26166],{"type":58,"value":23537},{"type":52,"tag":160,"props":26168,"children":26169},{"style":4181},[26170],{"type":58,"value":10814},{"type":52,"tag":160,"props":26172,"children":26173},{"style":4181},[26174],{"type":58,"value":23546},{"type":52,"tag":160,"props":26176,"children":26177},{"style":4080},[26178],{"type":58,"value":10656},{"type":52,"tag":160,"props":26180,"children":26181},{"class":162,"line":555},[26182,26186,26190,26194],{"type":52,"tag":160,"props":26183,"children":26184},{"style":1771},[26185],{"type":58,"value":23371},{"type":52,"tag":160,"props":26187,"children":26188},{"style":4080},[26189],{"type":58,"value":23562},{"type":52,"tag":160,"props":26191,"children":26192},{"style":4181},[26193],{"type":58,"value":10814},{"type":52,"tag":160,"props":26195,"children":26196},{"style":4080},[26197],{"type":58,"value":16795},{"type":52,"tag":160,"props":26199,"children":26200},{"class":162,"line":564},[26201,26205,26209,26213],{"type":52,"tag":160,"props":26202,"children":26203},{"style":1771},[26204],{"type":58,"value":23371},{"type":52,"tag":160,"props":26206,"children":26207},{"style":4080},[26208],{"type":58,"value":23582},{"type":52,"tag":160,"props":26210,"children":26211},{"style":4181},[26212],{"type":58,"value":10814},{"type":52,"tag":160,"props":26214,"children":26215},{"style":4080},[26216],{"type":58,"value":23591},{"type":52,"tag":160,"props":26218,"children":26219},{"class":162,"line":573},[26220,26224,26228,26232],{"type":52,"tag":160,"props":26221,"children":26222},{"style":4181},[26223],{"type":58,"value":20345},{"type":52,"tag":160,"props":26225,"children":26226},{"style":1771},[26227],{"type":58,"value":18623},{"type":52,"tag":160,"props":26229,"children":26230},{"style":4080},[26231],{"type":58,"value":3931},{"type":52,"tag":160,"props":26233,"children":26234},{"style":1771},[26235],{"type":58,"value":23611},{"type":52,"tag":160,"props":26237,"children":26238},{"class":162,"line":582},[26239,26243],{"type":52,"tag":160,"props":26240,"children":26241},{"style":4181},[26242],{"type":58,"value":20543},{"type":52,"tag":160,"props":26244,"children":26245},{"style":4080},[26246],{"type":58,"value":23623},{"type":52,"tag":160,"props":26248,"children":26249},{"class":162,"line":591},[26250],{"type":52,"tag":160,"props":26251,"children":26252},{"style":4080},[26253],{"type":58,"value":20461},{"type":52,"tag":160,"props":26255,"children":26256},{"class":162,"line":599},[26257,26261,26265],{"type":52,"tag":160,"props":26258,"children":26259},{"style":4080},[26260],{"type":58,"value":23638},{"type":52,"tag":160,"props":26262,"children":26263},{"style":4181},[26264],{"type":58,"value":10814},{"type":52,"tag":160,"props":26266,"children":26267},{"style":4080},[26268],{"type":58,"value":20225},{"type":52,"tag":160,"props":26270,"children":26271},{"class":162,"line":608},[26272],{"type":52,"tag":160,"props":26273,"children":26274},{"style":4181},[26275],{"type":58,"value":20233},{"type":52,"tag":160,"props":26277,"children":26278},{"class":162,"line":617},[26279,26284,26288,26292],{"type":52,"tag":160,"props":26280,"children":26281},{"style":4080},[26282],{"type":58,"value":26283},"        order_date::",{"type":52,"tag":160,"props":26285,"children":26286},{"style":4181},[26287],{"type":58,"value":13073},{"type":52,"tag":160,"props":26289,"children":26290},{"style":4181},[26291],{"type":58,"value":10630},{"type":52,"tag":160,"props":26293,"children":26294},{"style":4080},[26295],{"type":58,"value":10706},{"type":52,"tag":160,"props":26297,"children":26298},{"class":162,"line":626},[26299,26303,26307,26311],{"type":52,"tag":160,"props":26300,"children":26301},{"style":1771},[26302],{"type":58,"value":23677},{"type":52,"tag":160,"props":26304,"children":26305},{"style":4080},[26306],{"type":58,"value":3931},{"type":52,"tag":160,"props":26308,"children":26309},{"style":1771},[26310],{"type":58,"value":23686},{"type":52,"tag":160,"props":26312,"children":26313},{"style":4080},[26314],{"type":58,"value":10656},{"type":52,"tag":160,"props":26316,"children":26317},{"class":162,"line":635},[26318,26322,26326,26330,26334,26338,26342,26346],{"type":52,"tag":160,"props":26319,"children":26320},{"style":1771},[26321],{"type":58,"value":23371},{"type":52,"tag":160,"props":26323,"children":26324},{"style":4080},[26325],{"type":58,"value":10763},{"type":52,"tag":160,"props":26327,"children":26328},{"style":1771},[26329],{"type":58,"value":10768},{"type":52,"tag":160,"props":26331,"children":26332},{"style":4080},[26333],{"type":58,"value":3931},{"type":52,"tag":160,"props":26335,"children":26336},{"style":1771},[26337],{"type":58,"value":20811},{"type":52,"tag":160,"props":26339,"children":26340},{"style":4080},[26341],{"type":58,"value":11279},{"type":52,"tag":160,"props":26343,"children":26344},{"style":4181},[26345],{"type":58,"value":10814},{"type":52,"tag":160,"props":26347,"children":26348},{"style":4080},[26349],{"type":58,"value":23726},{"type":52,"tag":160,"props":26351,"children":26352},{"class":162,"line":644},[26353,26357,26361,26365,26369],{"type":52,"tag":160,"props":26354,"children":26355},{"style":4181},[26356],{"type":58,"value":20345},{"type":52,"tag":160,"props":26358,"children":26359},{"style":1771},[26360],{"type":58,"value":18623},{"type":52,"tag":160,"props":26362,"children":26363},{"style":4080},[26364],{"type":58,"value":3931},{"type":52,"tag":160,"props":26366,"children":26367},{"style":1771},[26368],{"type":58,"value":19245},{"type":52,"tag":160,"props":26370,"children":26371},{"style":4080},[26372],{"type":58,"value":11184},{"type":52,"tag":160,"props":26374,"children":26375},{"class":162,"line":653},[26376,26380,26384,26388,26392],{"type":52,"tag":160,"props":26377,"children":26378},{"style":4181},[26379],{"type":58,"value":20369},{"type":52,"tag":160,"props":26381,"children":26382},{"style":1771},[26383],{"type":58,"value":18623},{"type":52,"tag":160,"props":26385,"children":26386},{"style":4080},[26387],{"type":58,"value":3931},{"type":52,"tag":160,"props":26389,"children":26390},{"style":1771},[26391],{"type":58,"value":23769},{"type":52,"tag":160,"props":26393,"children":26394},{"style":4080},[26395],{"type":58,"value":23774},{"type":52,"tag":160,"props":26397,"children":26398},{"class":162,"line":662},[26399,26403,26407,26411,26415,26419,26423],{"type":52,"tag":160,"props":26400,"children":26401},{"style":4181},[26402],{"type":58,"value":20394},{"type":52,"tag":160,"props":26404,"children":26405},{"style":4080},[26406],{"type":58,"value":20036},{"type":52,"tag":160,"props":26408,"children":26409},{"style":4181},[26410],{"type":58,"value":13073},{"type":52,"tag":160,"props":26412,"children":26413},{"style":4181},[26414],{"type":58,"value":11235},{"type":52,"tag":160,"props":26416,"children":26417},{"style":1771},[26418],{"type":58,"value":23810},{"type":52,"tag":160,"props":26420,"children":26421},{"style":4080},[26422],{"type":58,"value":3931},{"type":52,"tag":160,"props":26424,"children":26425},{"style":1771},[26426],{"type":58,"value":23819},{"type":52,"tag":160,"props":26428,"children":26429},{"class":162,"line":671},[26430,26434,26438,26442,26446,26450],{"type":52,"tag":160,"props":26431,"children":26432},{"style":4181},[26433],{"type":58,"value":20431},{"type":52,"tag":160,"props":26435,"children":26436},{"style":1771},[26437],{"type":58,"value":11222},{"type":52,"tag":160,"props":26439,"children":26440},{"style":4080},[26441],{"type":58,"value":3931},{"type":52,"tag":160,"props":26443,"children":26444},{"style":1771},[26445],{"type":58,"value":20444},{"type":52,"tag":160,"props":26447,"children":26448},{"style":4181},[26449],{"type":58,"value":11235},{"type":52,"tag":160,"props":26451,"children":26452},{"style":173},[26453],{"type":58,"value":20453},{"type":52,"tag":160,"props":26455,"children":26456},{"class":162,"line":680},[26457,26461,26465,26469,26473,26477,26481],{"type":52,"tag":160,"props":26458,"children":26459},{"style":4181},[26460],{"type":58,"value":20543},{"type":52,"tag":160,"props":26462,"children":26463},{"style":4080},[26464],{"type":58,"value":20036},{"type":52,"tag":160,"props":26466,"children":26467},{"style":4181},[26468],{"type":58,"value":13073},{"type":52,"tag":160,"props":26470,"children":26471},{"style":4080},[26472],{"type":58,"value":3976},{"type":52,"tag":160,"props":26474,"children":26475},{"style":1771},[26476],{"type":58,"value":23863},{"type":52,"tag":160,"props":26478,"children":26479},{"style":4080},[26480],{"type":58,"value":3931},{"type":52,"tag":160,"props":26482,"children":26483},{"style":1771},[26484],{"type":58,"value":23872},{"type":52,"tag":160,"props":26486,"children":26487},{"class":162,"line":688},[26488],{"type":52,"tag":160,"props":26489,"children":26490},{"style":4080},[26491],{"type":58,"value":11307},{"type":52,"tag":160,"props":26493,"children":26494},{"class":162,"line":697},[26495],{"type":52,"tag":160,"props":26496,"children":26497},{"style":4181},[26498],{"type":58,"value":10608},{"type":52,"tag":160,"props":26500,"children":26501},{"class":162,"line":706},[26502,26506,26510,26514,26518],{"type":52,"tag":160,"props":26503,"children":26504},{"style":1771},[26505],{"type":58,"value":20591},{"type":52,"tag":160,"props":26507,"children":26508},{"style":4080},[26509],{"type":58,"value":3931},{"type":52,"tag":160,"props":26511,"children":26512},{"style":1771},[26513],{"type":58,"value":23902},{"type":52,"tag":160,"props":26515,"children":26516},{"style":4181},[26517],{"type":58,"value":10630},{"type":52,"tag":160,"props":26519,"children":26520},{"style":4080},[26521],{"type":58,"value":23911},{"type":52,"tag":160,"props":26523,"children":26524},{"class":162,"line":715},[26525,26529,26533,26537],{"type":52,"tag":160,"props":26526,"children":26527},{"style":1771},[26528],{"type":58,"value":20591},{"type":52,"tag":160,"props":26530,"children":26531},{"style":4080},[26532],{"type":58,"value":3931},{"type":52,"tag":160,"props":26534,"children":26535},{"style":1771},[26536],{"type":58,"value":23686},{"type":52,"tag":160,"props":26538,"children":26539},{"style":4080},[26540],{"type":58,"value":10656},{"type":52,"tag":160,"props":26542,"children":26543},{"class":162,"line":724},[26544,26548,26552,26556],{"type":52,"tag":160,"props":26545,"children":26546},{"style":1771},[26547],{"type":58,"value":20591},{"type":52,"tag":160,"props":26549,"children":26550},{"style":4080},[26551],{"type":58,"value":3931},{"type":52,"tag":160,"props":26553,"children":26554},{"style":1771},[26555],{"type":58,"value":23946},{"type":52,"tag":160,"props":26557,"children":26558},{"style":4080},[26559],{"type":58,"value":10656},{"type":52,"tag":160,"props":26561,"children":26562},{"class":162,"line":733},[26563,26567,26571,26575],{"type":52,"tag":160,"props":26564,"children":26565},{"style":1771},[26566],{"type":58,"value":20591},{"type":52,"tag":160,"props":26568,"children":26569},{"style":4080},[26570],{"type":58,"value":3931},{"type":52,"tag":160,"props":26572,"children":26573},{"style":1771},[26574],{"type":58,"value":23966},{"type":52,"tag":160,"props":26576,"children":26577},{"style":4080},[26578],{"type":58,"value":10656},{"type":52,"tag":160,"props":26580,"children":26581},{"class":162,"line":742},[26582,26586,26590,26594],{"type":52,"tag":160,"props":26583,"children":26584},{"style":1771},[26585],{"type":58,"value":20591},{"type":52,"tag":160,"props":26587,"children":26588},{"style":4080},[26589],{"type":58,"value":3931},{"type":52,"tag":160,"props":26591,"children":26592},{"style":1771},[26593],{"type":58,"value":23986},{"type":52,"tag":160,"props":26595,"children":26596},{"style":4080},[26597],{"type":58,"value":10656},{"type":52,"tag":160,"props":26599,"children":26600},{"class":162,"line":23993},[26601,26605,26609,26613],{"type":52,"tag":160,"props":26602,"children":26603},{"style":1771},[26604],{"type":58,"value":20591},{"type":52,"tag":160,"props":26606,"children":26607},{"style":4080},[26608],{"type":58,"value":3931},{"type":52,"tag":160,"props":26610,"children":26611},{"style":1771},[26612],{"type":58,"value":24007},{"type":52,"tag":160,"props":26614,"children":26615},{"style":4080},[26616],{"type":58,"value":10656},{"type":52,"tag":160,"props":26618,"children":26619},{"class":162,"line":24014},[26620,26624,26628,26632],{"type":52,"tag":160,"props":26621,"children":26622},{"style":1771},[26623],{"type":58,"value":24020},{"type":52,"tag":160,"props":26625,"children":26626},{"style":4080},[26627],{"type":58,"value":3931},{"type":52,"tag":160,"props":26629,"children":26630},{"style":1771},[26631],{"type":58,"value":16221},{"type":52,"tag":160,"props":26633,"children":26634},{"style":4080},[26635],{"type":58,"value":10656},{"type":52,"tag":160,"props":26637,"children":26638},{"class":162,"line":24035},[26639,26643,26647,26651],{"type":52,"tag":160,"props":26640,"children":26641},{"style":1771},[26642],{"type":58,"value":24020},{"type":52,"tag":160,"props":26644,"children":26645},{"style":4080},[26646],{"type":58,"value":3931},{"type":52,"tag":160,"props":26648,"children":26649},{"style":1771},[26650],{"type":58,"value":16246},{"type":52,"tag":160,"props":26652,"children":26653},{"style":4080},[26654],{"type":58,"value":10656},{"type":52,"tag":160,"props":26656,"children":26657},{"class":162,"line":24055},[26658,26662,26666,26670],{"type":52,"tag":160,"props":26659,"children":26660},{"style":1771},[26661],{"type":58,"value":24061},{"type":52,"tag":160,"props":26663,"children":26664},{"style":4080},[26665],{"type":58,"value":3931},{"type":52,"tag":160,"props":26667,"children":26668},{"style":1771},[26669],{"type":58,"value":24070},{"type":52,"tag":160,"props":26671,"children":26672},{"style":4080},[26673],{"type":58,"value":10656},{"type":52,"tag":160,"props":26675,"children":26676},{"class":162,"line":24077},[26677,26681,26685,26689,26693,26697,26701,26705,26709,26713,26717,26721,26725,26729,26733,26737,26741,26745],{"type":52,"tag":160,"props":26678,"children":26679},{"style":1771},[26680],{"type":58,"value":18503},{"type":52,"tag":160,"props":26682,"children":26683},{"style":4080},[26684],{"type":58,"value":10763},{"type":52,"tag":160,"props":26686,"children":26687},{"style":1771},[26688],{"type":58,"value":24091},{"type":52,"tag":160,"props":26690,"children":26691},{"style":4080},[26692],{"type":58,"value":3931},{"type":52,"tag":160,"props":26694,"children":26695},{"style":1771},[26696],{"type":58,"value":24070},{"type":52,"tag":160,"props":26698,"children":26699},{"style":4181},[26700],{"type":58,"value":11084},{"type":52,"tag":160,"props":26702,"children":26703},{"style":1771},[26704],{"type":58,"value":19099},{"type":52,"tag":160,"props":26706,"children":26707},{"style":4080},[26708],{"type":58,"value":10763},{"type":52,"tag":160,"props":26710,"children":26711},{"style":1771},[26712],{"type":58,"value":20738},{"type":52,"tag":160,"props":26714,"children":26715},{"style":4080},[26716],{"type":58,"value":3931},{"type":52,"tag":160,"props":26718,"children":26719},{"style":1771},[26720],{"type":58,"value":23946},{"type":52,"tag":160,"props":26722,"children":26723},{"style":4080},[26724],{"type":58,"value":3976},{"type":52,"tag":160,"props":26726,"children":26727},{"style":1771},[26728],{"type":58,"value":11098},{"type":52,"tag":160,"props":26730,"children":26731},{"style":4080},[26732],{"type":58,"value":18532},{"type":52,"tag":160,"props":26734,"children":26735},{"style":1771},[26736],{"type":58,"value":10804},{"type":52,"tag":160,"props":26738,"children":26739},{"style":4080},[26740],{"type":58,"value":11279},{"type":52,"tag":160,"props":26742,"children":26743},{"style":4181},[26744],{"type":58,"value":10814},{"type":52,"tag":160,"props":26746,"children":26747},{"style":4080},[26748],{"type":58,"value":24152},{"type":52,"tag":160,"props":26750,"children":26751},{"class":162,"line":24155},[26752,26756,26760,26764,26768,26772,26776,26780,26784,26788,26792,26796,26800,26804,26808,26812,26816,26820],{"type":52,"tag":160,"props":26753,"children":26754},{"style":1771},[26755],{"type":58,"value":18503},{"type":52,"tag":160,"props":26757,"children":26758},{"style":4080},[26759],{"type":58,"value":10763},{"type":52,"tag":160,"props":26761,"children":26762},{"style":1771},[26763],{"type":58,"value":20738},{"type":52,"tag":160,"props":26765,"children":26766},{"style":4080},[26767],{"type":58,"value":3931},{"type":52,"tag":160,"props":26769,"children":26770},{"style":1771},[26771],{"type":58,"value":23946},{"type":52,"tag":160,"props":26773,"children":26774},{"style":4181},[26775],{"type":58,"value":11084},{"type":52,"tag":160,"props":26777,"children":26778},{"style":1771},[26779],{"type":58,"value":19099},{"type":52,"tag":160,"props":26781,"children":26782},{"style":4080},[26783],{"type":58,"value":10763},{"type":52,"tag":160,"props":26785,"children":26786},{"style":1771},[26787],{"type":58,"value":20738},{"type":52,"tag":160,"props":26789,"children":26790},{"style":4080},[26791],{"type":58,"value":3931},{"type":52,"tag":160,"props":26793,"children":26794},{"style":1771},[26795],{"type":58,"value":24007},{"type":52,"tag":160,"props":26797,"children":26798},{"style":4080},[26799],{"type":58,"value":3976},{"type":52,"tag":160,"props":26801,"children":26802},{"style":1771},[26803],{"type":58,"value":11098},{"type":52,"tag":160,"props":26805,"children":26806},{"style":4080},[26807],{"type":58,"value":18532},{"type":52,"tag":160,"props":26809,"children":26810},{"style":1771},[26811],{"type":58,"value":10804},{"type":52,"tag":160,"props":26813,"children":26814},{"style":4080},[26815],{"type":58,"value":11279},{"type":52,"tag":160,"props":26817,"children":26818},{"style":4181},[26819],{"type":58,"value":10814},{"type":52,"tag":160,"props":26821,"children":26822},{"style":4080},[26823],{"type":58,"value":24229},{"type":52,"tag":160,"props":26825,"children":26826},{"class":162,"line":24232},[26827,26831,26835,26839,26843,26847,26851,26855,26859,26863,26867,26871,26875,26879,26883,26887,26891,26895,26899,26903,26907],{"type":52,"tag":160,"props":26828,"children":26829},{"style":1771},[26830],{"type":58,"value":18503},{"type":52,"tag":160,"props":26832,"children":26833},{"style":4080},[26834],{"type":58,"value":10763},{"type":52,"tag":160,"props":26836,"children":26837},{"style":1771},[26838],{"type":58,"value":20738},{"type":52,"tag":160,"props":26840,"children":26841},{"style":4080},[26842],{"type":58,"value":3931},{"type":52,"tag":160,"props":26844,"children":26845},{"style":1771},[26846],{"type":58,"value":23986},{"type":52,"tag":160,"props":26848,"children":26849},{"style":4181},[26850],{"type":58,"value":11084},{"type":52,"tag":160,"props":26852,"children":26853},{"style":1771},[26854],{"type":58,"value":19099},{"type":52,"tag":160,"props":26856,"children":26857},{"style":4080},[26858],{"type":58,"value":10763},{"type":52,"tag":160,"props":26860,"children":26861},{"style":1771},[26862],{"type":58,"value":20738},{"type":52,"tag":160,"props":26864,"children":26865},{"style":4080},[26866],{"type":58,"value":3931},{"type":52,"tag":160,"props":26868,"children":26869},{"style":1771},[26870],{"type":58,"value":23966},{"type":52,"tag":160,"props":26872,"children":26873},{"style":4080},[26874],{"type":58,"value":3976},{"type":52,"tag":160,"props":26876,"children":26877},{"style":1771},[26878],{"type":58,"value":11098},{"type":52,"tag":160,"props":26880,"children":26881},{"style":4080},[26882],{"type":58,"value":11279},{"type":52,"tag":160,"props":26884,"children":26885},{"style":4181},[26886],{"type":58,"value":16713},{"type":52,"tag":160,"props":26888,"children":26889},{"style":1771},[26890],{"type":58,"value":11089},{"type":52,"tag":160,"props":26892,"children":26893},{"style":4080},[26894],{"type":58,"value":3976},{"type":52,"tag":160,"props":26896,"children":26897},{"style":1771},[26898],{"type":58,"value":10804},{"type":52,"tag":160,"props":26900,"children":26901},{"style":4080},[26902],{"type":58,"value":11279},{"type":52,"tag":160,"props":26904,"children":26905},{"style":4181},[26906],{"type":58,"value":10814},{"type":52,"tag":160,"props":26908,"children":26909},{"style":4080},[26910],{"type":58,"value":24318},{"type":52,"tag":160,"props":26912,"children":26913},{"class":162,"line":24321},[26914,26918],{"type":52,"tag":160,"props":26915,"children":26916},{"style":4181},[26917],{"type":58,"value":11165},{"type":52,"tag":160,"props":26919,"children":26920},{"style":4080},[26921],{"type":58,"value":24331},{"type":52,"tag":160,"props":26923,"children":26924},{"class":162,"line":24334},[26925,26929],{"type":52,"tag":160,"props":26926,"children":26927},{"style":4181},[26928],{"type":58,"value":10306},{"type":52,"tag":160,"props":26930,"children":26931},{"style":4080},[26932],{"type":58,"value":24344},{"type":52,"tag":160,"props":26934,"children":26935},{"class":162,"line":24347},[26936,26940,26944,26948,26952,26956,26960,26964],{"type":52,"tag":160,"props":26937,"children":26938},{"style":4181},[26939],{"type":58,"value":11217},{"type":52,"tag":160,"props":26941,"children":26942},{"style":1771},[26943],{"type":58,"value":20942},{"type":52,"tag":160,"props":26945,"children":26946},{"style":4080},[26947],{"type":58,"value":3931},{"type":52,"tag":160,"props":26949,"children":26950},{"style":1771},[26951],{"type":58,"value":23902},{"type":52,"tag":160,"props":26953,"children":26954},{"style":4181},[26955],{"type":58,"value":11235},{"type":52,"tag":160,"props":26957,"children":26958},{"style":1771},[26959],{"type":58,"value":24373},{"type":52,"tag":160,"props":26961,"children":26962},{"style":4080},[26963],{"type":58,"value":3931},{"type":52,"tag":160,"props":26965,"children":26966},{"style":1771},[26967],{"type":58,"value":23819},{"type":52,"tag":160,"props":26969,"children":26970},{"class":162,"line":24384},[26971,26975,26979,26983,26987,26991,26995,26999],{"type":52,"tag":160,"props":26972,"children":26973},{"style":4181},[26974],{"type":58,"value":11257},{"type":52,"tag":160,"props":26976,"children":26977},{"style":1771},[26978],{"type":58,"value":20942},{"type":52,"tag":160,"props":26980,"children":26981},{"style":4080},[26982],{"type":58,"value":3931},{"type":52,"tag":160,"props":26984,"children":26985},{"style":1771},[26986],{"type":58,"value":23686},{"type":52,"tag":160,"props":26988,"children":26989},{"style":4181},[26990],{"type":58,"value":11235},{"type":52,"tag":160,"props":26992,"children":26993},{"style":1771},[26994],{"type":58,"value":24373},{"type":52,"tag":160,"props":26996,"children":26997},{"style":4080},[26998],{"type":58,"value":3931},{"type":52,"tag":160,"props":27000,"children":27001},{"style":1771},[27002],{"type":58,"value":23872},{"type":52,"tag":160,"props":27004,"children":27005},{"class":162,"line":24420},[27006,27010],{"type":52,"tag":160,"props":27007,"children":27008},{"style":4181},[27009],{"type":58,"value":10306},{"type":52,"tag":160,"props":27011,"children":27012},{"style":4080},[27013],{"type":58,"value":24430},{"type":52,"tag":160,"props":27015,"children":27016},{"class":162,"line":24433},[27017,27021,27025,27029,27033,27037,27041,27045],{"type":52,"tag":160,"props":27018,"children":27019},{"style":4181},[27020],{"type":58,"value":11217},{"type":52,"tag":160,"props":27022,"children":27023},{"style":1771},[27024],{"type":58,"value":20942},{"type":52,"tag":160,"props":27026,"children":27027},{"style":4080},[27028],{"type":58,"value":3931},{"type":52,"tag":160,"props":27030,"children":27031},{"style":1771},[27032],{"type":58,"value":23902},{"type":52,"tag":160,"props":27034,"children":27035},{"style":4181},[27036],{"type":58,"value":11235},{"type":52,"tag":160,"props":27038,"children":27039},{"style":1771},[27040],{"type":58,"value":24459},{"type":52,"tag":160,"props":27042,"children":27043},{"style":4080},[27044],{"type":58,"value":3931},{"type":52,"tag":160,"props":27046,"children":27047},{"style":1771},[27048],{"type":58,"value":24468},{"type":52,"tag":160,"props":27050,"children":27051},{"class":162,"line":24471},[27052,27056,27060,27064,27068,27072,27076,27080],{"type":52,"tag":160,"props":27053,"children":27054},{"style":4181},[27055],{"type":58,"value":11257},{"type":52,"tag":160,"props":27057,"children":27058},{"style":1771},[27059],{"type":58,"value":20942},{"type":52,"tag":160,"props":27061,"children":27062},{"style":4080},[27063],{"type":58,"value":3931},{"type":52,"tag":160,"props":27065,"children":27066},{"style":1771},[27067],{"type":58,"value":23686},{"type":52,"tag":160,"props":27069,"children":27070},{"style":4181},[27071],{"type":58,"value":11235},{"type":52,"tag":160,"props":27073,"children":27074},{"style":1771},[27075],{"type":58,"value":24459},{"type":52,"tag":160,"props":27077,"children":27078},{"style":4080},[27079],{"type":58,"value":3931},{"type":52,"tag":160,"props":27081,"children":27082},{"style":1771},[27083],{"type":58,"value":23872},{"type":52,"tag":160,"props":27085,"children":27086},{"class":162,"line":24507},[27087,27091,27095,27099,27103,27107,27111,27115,27119,27123],{"type":52,"tag":160,"props":27088,"children":27089},{"style":4181},[27090],{"type":58,"value":18652},{"type":52,"tag":160,"props":27092,"children":27093},{"style":1771},[27094],{"type":58,"value":20942},{"type":52,"tag":160,"props":27096,"children":27097},{"style":4080},[27098],{"type":58,"value":3931},{"type":52,"tag":160,"props":27100,"children":27101},{"style":1771},[27102],{"type":58,"value":23902},{"type":52,"tag":160,"props":27104,"children":27105},{"style":4181},[27106],{"type":58,"value":12257},{"type":52,"tag":160,"props":27108,"children":27109},{"style":4080},[27110],{"type":58,"value":3976},{"type":52,"tag":160,"props":27112,"children":27113},{"style":1771},[27114],{"type":58,"value":20738},{"type":52,"tag":160,"props":27116,"children":27117},{"style":4080},[27118],{"type":58,"value":3931},{"type":52,"tag":160,"props":27120,"children":27121},{"style":1771},[27122],{"type":58,"value":23946},{"type":52,"tag":160,"props":27124,"children":27125},{"style":4181},[27126],{"type":58,"value":24549},{"type":52,"tag":131,"props":27128,"children":27130},{"id":27129},"_5-daily-kpis-rpt_daily_kpissql",[27131,27133],{"type":58,"value":27132},"5) Daily KPIs - ",{"type":52,"tag":71,"props":27134,"children":27136},{"className":27135},[],[27137],{"type":58,"value":27138},"rpt_daily_kpis.sql",{"type":52,"tag":107,"props":27140,"children":27141},{},[27142],{"type":58,"value":27143},"A single unified daily view of the whole business. One table, all the numbers that matter.",{"type":52,"tag":107,"props":27145,"children":27146},{},[27147,27148,27157],{"type":58,"value":10384},{"type":52,"tag":218,"props":27149,"children":27150},{},[27151],{"type":52,"tag":71,"props":27152,"children":27154},{"className":27153},[],[27155],{"type":58,"value":27156},"ecommerce\u002Fassets\u002Freports\u002Frpt_daily_kpis.sql",{"type":58,"value":10395},{"type":52,"tag":253,"props":27159,"children":27160},{":variants":255,"group":256},[27161,28424,29670],{"type":52,"tag":259,"props":27162,"children":27163},{"v-slot:clickhouse":7},[27164],{"type":52,"tag":150,"props":27165,"children":27167},{"className":10404,"code":27166,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_daily_kpis\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - reports.rpt_daily_revenue\n  - staging.stg_customers\n  - staging.stg_orders\n  - staging.stg_web_sessions\n  - staging.stg_marketing_spend\ncolumns:\n  - name: kpi_date\n    type: date\n    checks:\n      - name: not_null\n      - name: unique\n@bruin *\u002F\n\nWITH daily_customers AS (\n    SELECT\n        toDate(o.order_date) AS order_date,\n        countIf(toDate(c.first_seen_at) = toDate(o.order_date)) AS new_customers,\n        countIf(toDate(c.first_seen_at) \u003C toDate(o.order_date)) AS returning_customers\n    FROM staging.stg_orders o\n    LEFT JOIN staging.stg_customers c\n        ON o.customer_email = c.customer_email\n    WHERE o.payment_status = 'paid'\n    GROUP BY toDate(o.order_date)\n),\ndaily_sessions AS (\n    SELECT\n        session_date,\n        sum(total_sessions) AS sessions,\n        sum(new_users) AS new_visitors,\n        sum(purchase_events) AS purchases\n    FROM staging.stg_web_sessions\n    GROUP BY session_date\n),\ndaily_spend AS (\n    SELECT\n        spend_date,\n        sum(spend) AS total_ad_spend\n    FROM staging.stg_marketing_spend\n    GROUP BY spend_date\n)\nSELECT\n    r.order_date AS kpi_date,\n    r.net_revenue,\n    r.total_orders,\n    r.paid_orders,\n    r.avg_order_value,\n    r.cancellation_rate,\n    dc.new_customers,\n    dc.returning_customers,\n    ds.sessions,\n    ds.new_visitors,\n    round(ds.purchases \u002F nullIf(ds.sessions, 0) * 100, 2) AS conversion_rate,\n    sp.total_ad_spend,\n    round(r.net_revenue \u002F nullIf(sp.total_ad_spend, 0), 2) AS overall_roas\nFROM reports.rpt_daily_revenue r\nLEFT JOIN daily_customers dc ON r.order_date = dc.order_date\nLEFT JOIN daily_sessions ds ON r.order_date = ds.session_date\nLEFT JOIN daily_spend sp ON r.order_date = sp.spend_date\nORDER BY kpi_date DESC\n",[27168],{"type":52,"tag":71,"props":27169,"children":27170},{"__ignoreMap":7},[27171,27178,27186,27193,27200,27207,27214,27222,27229,27236,27243,27250,27257,27265,27272,27279,27286,27293,27300,27307,27327,27334,27366,27423,27480,27503,27527,27562,27589,27616,27623,27639,27646,27653,27676,27696,27715,27734,27746,27753,27769,27776,27783,27803,27822,27834,27841,27848,27873,27893,27913,27933,27953,27973,27994,28014,28034,28054,28144,28165,28243,28269,28316,28361,28407],{"type":52,"tag":160,"props":27172,"children":27173},{"class":162,"line":163},[27174],{"type":52,"tag":160,"props":27175,"children":27176},{"style":10416},[27177],{"type":58,"value":10419},{"type":52,"tag":160,"props":27179,"children":27180},{"class":162,"line":281},[27181],{"type":52,"tag":160,"props":27182,"children":27183},{"style":10416},[27184],{"type":58,"value":27185},"name: reports.rpt_daily_kpis\n",{"type":52,"tag":160,"props":27187,"children":27188},{"class":162,"line":290},[27189],{"type":52,"tag":160,"props":27190,"children":27191},{"style":10416},[27192],{"type":58,"value":10435},{"type":52,"tag":160,"props":27194,"children":27195},{"class":162,"line":299},[27196],{"type":52,"tag":160,"props":27197,"children":27198},{"style":10416},[27199],{"type":58,"value":10443},{"type":52,"tag":160,"props":27201,"children":27202},{"class":162,"line":27},[27203],{"type":52,"tag":160,"props":27204,"children":27205},{"style":10416},[27206],{"type":58,"value":10451},{"type":52,"tag":160,"props":27208,"children":27209},{"class":162,"line":316},[27210],{"type":52,"tag":160,"props":27211,"children":27212},{"style":10416},[27213],{"type":58,"value":10459},{"type":52,"tag":160,"props":27215,"children":27216},{"class":162,"line":325},[27217],{"type":52,"tag":160,"props":27218,"children":27219},{"style":10416},[27220],{"type":58,"value":27221},"  - reports.rpt_daily_revenue\n",{"type":52,"tag":160,"props":27223,"children":27224},{"class":162,"line":334},[27225],{"type":52,"tag":160,"props":27226,"children":27227},{"style":10416},[27228],{"type":58,"value":20153},{"type":52,"tag":160,"props":27230,"children":27231},{"class":162,"line":343},[27232],{"type":52,"tag":160,"props":27233,"children":27234},{"style":10416},[27235],{"type":58,"value":18170},{"type":52,"tag":160,"props":27237,"children":27238},{"class":162,"line":11},[27239],{"type":52,"tag":160,"props":27240,"children":27241},{"style":10416},[27242],{"type":58,"value":23263},{"type":52,"tag":160,"props":27244,"children":27245},{"class":162,"line":359},[27246],{"type":52,"tag":160,"props":27247,"children":27248},{"style":10416},[27249],{"type":58,"value":23255},{"type":52,"tag":160,"props":27251,"children":27252},{"class":162,"line":368},[27253],{"type":52,"tag":160,"props":27254,"children":27255},{"style":10416},[27256],{"type":58,"value":10483},{"type":52,"tag":160,"props":27258,"children":27259},{"class":162,"line":377},[27260],{"type":52,"tag":160,"props":27261,"children":27262},{"style":10416},[27263],{"type":58,"value":27264},"  - name: kpi_date\n",{"type":52,"tag":160,"props":27266,"children":27267},{"class":162,"line":386},[27268],{"type":52,"tag":160,"props":27269,"children":27270},{"style":10416},[27271],{"type":58,"value":14479},{"type":52,"tag":160,"props":27273,"children":27274},{"class":162,"line":395},[27275],{"type":52,"tag":160,"props":27276,"children":27277},{"style":10416},[27278],{"type":58,"value":10507},{"type":52,"tag":160,"props":27280,"children":27281},{"class":162,"line":404},[27282],{"type":52,"tag":160,"props":27283,"children":27284},{"style":10416},[27285],{"type":58,"value":10515},{"type":52,"tag":160,"props":27287,"children":27288},{"class":162,"line":413},[27289],{"type":52,"tag":160,"props":27290,"children":27291},{"style":10416},[27292],{"type":58,"value":10523},{"type":52,"tag":160,"props":27294,"children":27295},{"class":162,"line":422},[27296],{"type":52,"tag":160,"props":27297,"children":27298},{"style":10416},[27299],{"type":58,"value":10593},{"type":52,"tag":160,"props":27301,"children":27302},{"class":162,"line":430},[27303],{"type":52,"tag":160,"props":27304,"children":27305},{"emptyLinePlaceholder":26},[27306],{"type":58,"value":287},{"type":52,"tag":160,"props":27308,"children":27309},{"class":162,"line":439},[27310,27314,27319,27323],{"type":52,"tag":160,"props":27311,"children":27312},{"style":4181},[27313],{"type":58,"value":20211},{"type":52,"tag":160,"props":27315,"children":27316},{"style":4080},[27317],{"type":58,"value":27318}," daily_customers ",{"type":52,"tag":160,"props":27320,"children":27321},{"style":4181},[27322],{"type":58,"value":10814},{"type":52,"tag":160,"props":27324,"children":27325},{"style":4080},[27326],{"type":58,"value":20225},{"type":52,"tag":160,"props":27328,"children":27329},{"class":162,"line":448},[27330],{"type":52,"tag":160,"props":27331,"children":27332},{"style":4181},[27333],{"type":58,"value":20233},{"type":52,"tag":160,"props":27335,"children":27336},{"class":162,"line":457},[27337,27342,27346,27350,27354,27358,27362],{"type":52,"tag":160,"props":27338,"children":27339},{"style":4080},[27340],{"type":58,"value":27341},"        toDate(",{"type":52,"tag":160,"props":27343,"children":27344},{"style":1771},[27345],{"type":58,"value":10768},{"type":52,"tag":160,"props":27347,"children":27348},{"style":4080},[27349],{"type":58,"value":3931},{"type":52,"tag":160,"props":27351,"children":27352},{"style":1771},[27353],{"type":58,"value":20308},{"type":52,"tag":160,"props":27355,"children":27356},{"style":4080},[27357],{"type":58,"value":11279},{"type":52,"tag":160,"props":27359,"children":27360},{"style":4181},[27361],{"type":58,"value":10814},{"type":52,"tag":160,"props":27363,"children":27364},{"style":4080},[27365],{"type":58,"value":10706},{"type":52,"tag":160,"props":27367,"children":27368},{"class":162,"line":466},[27369,27374,27378,27382,27386,27390,27394,27398,27402,27406,27410,27414,27418],{"type":52,"tag":160,"props":27370,"children":27371},{"style":4080},[27372],{"type":58,"value":27373},"        countIf(toDate(",{"type":52,"tag":160,"props":27375,"children":27376},{"style":1771},[27377],{"type":58,"value":11293},{"type":52,"tag":160,"props":27379,"children":27380},{"style":4080},[27381],{"type":58,"value":3931},{"type":52,"tag":160,"props":27383,"children":27384},{"style":1771},[27385],{"type":58,"value":20275},{"type":52,"tag":160,"props":27387,"children":27388},{"style":4080},[27389],{"type":58,"value":11279},{"type":52,"tag":160,"props":27391,"children":27392},{"style":4181},[27393],{"type":58,"value":11284},{"type":52,"tag":160,"props":27395,"children":27396},{"style":4080},[27397],{"type":58,"value":11262},{"type":52,"tag":160,"props":27399,"children":27400},{"style":1771},[27401],{"type":58,"value":10768},{"type":52,"tag":160,"props":27403,"children":27404},{"style":4080},[27405],{"type":58,"value":3931},{"type":52,"tag":160,"props":27407,"children":27408},{"style":1771},[27409],{"type":58,"value":20308},{"type":52,"tag":160,"props":27411,"children":27412},{"style":4080},[27413],{"type":58,"value":10809},{"type":52,"tag":160,"props":27415,"children":27416},{"style":4181},[27417],{"type":58,"value":10814},{"type":52,"tag":160,"props":27419,"children":27420},{"style":4080},[27421],{"type":58,"value":27422}," new_customers,\n",{"type":52,"tag":160,"props":27424,"children":27425},{"class":162,"line":474},[27426,27430,27434,27438,27442,27446,27451,27455,27459,27463,27467,27471,27475],{"type":52,"tag":160,"props":27427,"children":27428},{"style":4080},[27429],{"type":58,"value":27373},{"type":52,"tag":160,"props":27431,"children":27432},{"style":1771},[27433],{"type":58,"value":11293},{"type":52,"tag":160,"props":27435,"children":27436},{"style":4080},[27437],{"type":58,"value":3931},{"type":52,"tag":160,"props":27439,"children":27440},{"style":1771},[27441],{"type":58,"value":20275},{"type":52,"tag":160,"props":27443,"children":27444},{"style":4080},[27445],{"type":58,"value":11279},{"type":52,"tag":160,"props":27447,"children":27448},{"style":4181},[27449],{"type":58,"value":27450},"\u003C",{"type":52,"tag":160,"props":27452,"children":27453},{"style":4080},[27454],{"type":58,"value":11262},{"type":52,"tag":160,"props":27456,"children":27457},{"style":1771},[27458],{"type":58,"value":10768},{"type":52,"tag":160,"props":27460,"children":27461},{"style":4080},[27462],{"type":58,"value":3931},{"type":52,"tag":160,"props":27464,"children":27465},{"style":1771},[27466],{"type":58,"value":20308},{"type":52,"tag":160,"props":27468,"children":27469},{"style":4080},[27470],{"type":58,"value":10809},{"type":52,"tag":160,"props":27472,"children":27473},{"style":4181},[27474],{"type":58,"value":10814},{"type":52,"tag":160,"props":27476,"children":27477},{"style":4080},[27478],{"type":58,"value":27479}," returning_customers\n",{"type":52,"tag":160,"props":27481,"children":27482},{"class":162,"line":483},[27483,27487,27491,27495,27499],{"type":52,"tag":160,"props":27484,"children":27485},{"style":4181},[27486],{"type":58,"value":20345},{"type":52,"tag":160,"props":27488,"children":27489},{"style":1771},[27490],{"type":58,"value":18623},{"type":52,"tag":160,"props":27492,"children":27493},{"style":4080},[27494],{"type":58,"value":3931},{"type":52,"tag":160,"props":27496,"children":27497},{"style":1771},[27498],{"type":58,"value":19245},{"type":52,"tag":160,"props":27500,"children":27501},{"style":4080},[27502],{"type":58,"value":11184},{"type":52,"tag":160,"props":27504,"children":27505},{"class":162,"line":492},[27506,27511,27515,27519,27523],{"type":52,"tag":160,"props":27507,"children":27508},{"style":4181},[27509],{"type":58,"value":27510},"    LEFT JOIN",{"type":52,"tag":160,"props":27512,"children":27513},{"style":1771},[27514],{"type":58,"value":18623},{"type":52,"tag":160,"props":27516,"children":27517},{"style":4080},[27518],{"type":58,"value":3931},{"type":52,"tag":160,"props":27520,"children":27521},{"style":1771},[27522],{"type":58,"value":20382},{"type":52,"tag":160,"props":27524,"children":27525},{"style":4080},[27526],{"type":58,"value":11209},{"type":52,"tag":160,"props":27528,"children":27529},{"class":162,"line":501},[27530,27534,27538,27542,27546,27550,27554,27558],{"type":52,"tag":160,"props":27531,"children":27532},{"style":4181},[27533],{"type":58,"value":20394},{"type":52,"tag":160,"props":27535,"children":27536},{"style":1771},[27537],{"type":58,"value":11222},{"type":52,"tag":160,"props":27539,"children":27540},{"style":4080},[27541],{"type":58,"value":3931},{"type":52,"tag":160,"props":27543,"children":27544},{"style":1771},[27545],{"type":58,"value":20250},{"type":52,"tag":160,"props":27547,"children":27548},{"style":4181},[27549],{"type":58,"value":11235},{"type":52,"tag":160,"props":27551,"children":27552},{"style":1771},[27553],{"type":58,"value":11240},{"type":52,"tag":160,"props":27555,"children":27556},{"style":4080},[27557],{"type":58,"value":3931},{"type":52,"tag":160,"props":27559,"children":27560},{"style":1771},[27561],{"type":58,"value":20423},{"type":52,"tag":160,"props":27563,"children":27564},{"class":162,"line":510},[27565,27569,27573,27577,27581,27585],{"type":52,"tag":160,"props":27566,"children":27567},{"style":4181},[27568],{"type":58,"value":20431},{"type":52,"tag":160,"props":27570,"children":27571},{"style":1771},[27572],{"type":58,"value":11222},{"type":52,"tag":160,"props":27574,"children":27575},{"style":4080},[27576],{"type":58,"value":3931},{"type":52,"tag":160,"props":27578,"children":27579},{"style":1771},[27580],{"type":58,"value":20444},{"type":52,"tag":160,"props":27582,"children":27583},{"style":4181},[27584],{"type":58,"value":11235},{"type":52,"tag":160,"props":27586,"children":27587},{"style":173},[27588],{"type":58,"value":20453},{"type":52,"tag":160,"props":27590,"children":27591},{"class":162,"line":519},[27592,27596,27600,27604,27608,27612],{"type":52,"tag":160,"props":27593,"children":27594},{"style":4181},[27595],{"type":58,"value":20543},{"type":52,"tag":160,"props":27597,"children":27598},{"style":4080},[27599],{"type":58,"value":11262},{"type":52,"tag":160,"props":27601,"children":27602},{"style":1771},[27603],{"type":58,"value":10768},{"type":52,"tag":160,"props":27605,"children":27606},{"style":4080},[27607],{"type":58,"value":3931},{"type":52,"tag":160,"props":27609,"children":27610},{"style":1771},[27611],{"type":58,"value":20308},{"type":52,"tag":160,"props":27613,"children":27614},{"style":4080},[27615],{"type":58,"value":11307},{"type":52,"tag":160,"props":27617,"children":27618},{"class":162,"line":528},[27619],{"type":52,"tag":160,"props":27620,"children":27621},{"style":4080},[27622],{"type":58,"value":20461},{"type":52,"tag":160,"props":27624,"children":27625},{"class":162,"line":537},[27626,27631,27635],{"type":52,"tag":160,"props":27627,"children":27628},{"style":4080},[27629],{"type":58,"value":27630},"daily_sessions ",{"type":52,"tag":160,"props":27632,"children":27633},{"style":4181},[27634],{"type":58,"value":10814},{"type":52,"tag":160,"props":27636,"children":27637},{"style":4080},[27638],{"type":58,"value":20225},{"type":52,"tag":160,"props":27640,"children":27641},{"class":162,"line":546},[27642],{"type":52,"tag":160,"props":27643,"children":27644},{"style":4181},[27645],{"type":58,"value":20233},{"type":52,"tag":160,"props":27647,"children":27648},{"class":162,"line":555},[27649],{"type":52,"tag":160,"props":27650,"children":27651},{"style":4080},[27652],{"type":58,"value":23518},{"type":52,"tag":160,"props":27654,"children":27655},{"class":162,"line":564},[27656,27660,27664,27668,27672],{"type":52,"tag":160,"props":27657,"children":27658},{"style":1771},[27659],{"type":58,"value":23371},{"type":52,"tag":160,"props":27661,"children":27662},{"style":4080},[27663],{"type":58,"value":23537},{"type":52,"tag":160,"props":27665,"children":27666},{"style":4181},[27667],{"type":58,"value":10814},{"type":52,"tag":160,"props":27669,"children":27670},{"style":4181},[27671],{"type":58,"value":23546},{"type":52,"tag":160,"props":27673,"children":27674},{"style":4080},[27675],{"type":58,"value":10656},{"type":52,"tag":160,"props":27677,"children":27678},{"class":162,"line":573},[27679,27683,27687,27691],{"type":52,"tag":160,"props":27680,"children":27681},{"style":1771},[27682],{"type":58,"value":23371},{"type":52,"tag":160,"props":27684,"children":27685},{"style":4080},[27686],{"type":58,"value":23562},{"type":52,"tag":160,"props":27688,"children":27689},{"style":4181},[27690],{"type":58,"value":10814},{"type":52,"tag":160,"props":27692,"children":27693},{"style":4080},[27694],{"type":58,"value":27695}," new_visitors,\n",{"type":52,"tag":160,"props":27697,"children":27698},{"class":162,"line":582},[27699,27703,27707,27711],{"type":52,"tag":160,"props":27700,"children":27701},{"style":1771},[27702],{"type":58,"value":23371},{"type":52,"tag":160,"props":27704,"children":27705},{"style":4080},[27706],{"type":58,"value":23582},{"type":52,"tag":160,"props":27708,"children":27709},{"style":4181},[27710],{"type":58,"value":10814},{"type":52,"tag":160,"props":27712,"children":27713},{"style":4080},[27714],{"type":58,"value":23591},{"type":52,"tag":160,"props":27716,"children":27717},{"class":162,"line":591},[27718,27722,27726,27730],{"type":52,"tag":160,"props":27719,"children":27720},{"style":4181},[27721],{"type":58,"value":20345},{"type":52,"tag":160,"props":27723,"children":27724},{"style":1771},[27725],{"type":58,"value":18623},{"type":52,"tag":160,"props":27727,"children":27728},{"style":4080},[27729],{"type":58,"value":3931},{"type":52,"tag":160,"props":27731,"children":27732},{"style":1771},[27733],{"type":58,"value":23611},{"type":52,"tag":160,"props":27735,"children":27736},{"class":162,"line":599},[27737,27741],{"type":52,"tag":160,"props":27738,"children":27739},{"style":4181},[27740],{"type":58,"value":20543},{"type":52,"tag":160,"props":27742,"children":27743},{"style":4080},[27744],{"type":58,"value":27745}," session_date\n",{"type":52,"tag":160,"props":27747,"children":27748},{"class":162,"line":608},[27749],{"type":52,"tag":160,"props":27750,"children":27751},{"style":4080},[27752],{"type":58,"value":20461},{"type":52,"tag":160,"props":27754,"children":27755},{"class":162,"line":617},[27756,27761,27765],{"type":52,"tag":160,"props":27757,"children":27758},{"style":4080},[27759],{"type":58,"value":27760},"daily_spend ",{"type":52,"tag":160,"props":27762,"children":27763},{"style":4181},[27764],{"type":58,"value":10814},{"type":52,"tag":160,"props":27766,"children":27767},{"style":4080},[27768],{"type":58,"value":20225},{"type":52,"tag":160,"props":27770,"children":27771},{"class":162,"line":626},[27772],{"type":52,"tag":160,"props":27773,"children":27774},{"style":4181},[27775],{"type":58,"value":20233},{"type":52,"tag":160,"props":27777,"children":27778},{"class":162,"line":635},[27779],{"type":52,"tag":160,"props":27780,"children":27781},{"style":4080},[27782],{"type":58,"value":23355},{"type":52,"tag":160,"props":27784,"children":27785},{"class":162,"line":644},[27786,27790,27794,27798],{"type":52,"tag":160,"props":27787,"children":27788},{"style":1771},[27789],{"type":58,"value":23371},{"type":52,"tag":160,"props":27791,"children":27792},{"style":4080},[27793],{"type":58,"value":23376},{"type":52,"tag":160,"props":27795,"children":27796},{"style":4181},[27797],{"type":58,"value":10814},{"type":52,"tag":160,"props":27799,"children":27800},{"style":4080},[27801],{"type":58,"value":27802}," total_ad_spend\n",{"type":52,"tag":160,"props":27804,"children":27805},{"class":162,"line":653},[27806,27810,27814,27818],{"type":52,"tag":160,"props":27807,"children":27808},{"style":4181},[27809],{"type":58,"value":20345},{"type":52,"tag":160,"props":27811,"children":27812},{"style":1771},[27813],{"type":58,"value":18623},{"type":52,"tag":160,"props":27815,"children":27816},{"style":4080},[27817],{"type":58,"value":3931},{"type":52,"tag":160,"props":27819,"children":27820},{"style":1771},[27821],{"type":58,"value":23468},{"type":52,"tag":160,"props":27823,"children":27824},{"class":162,"line":662},[27825,27829],{"type":52,"tag":160,"props":27826,"children":27827},{"style":4181},[27828],{"type":58,"value":20543},{"type":52,"tag":160,"props":27830,"children":27831},{"style":4080},[27832],{"type":58,"value":27833}," spend_date\n",{"type":52,"tag":160,"props":27835,"children":27836},{"class":162,"line":671},[27837],{"type":52,"tag":160,"props":27838,"children":27839},{"style":4080},[27840],{"type":58,"value":11307},{"type":52,"tag":160,"props":27842,"children":27843},{"class":162,"line":680},[27844],{"type":52,"tag":160,"props":27845,"children":27846},{"style":4181},[27847],{"type":58,"value":10608},{"type":52,"tag":160,"props":27849,"children":27850},{"class":162,"line":688},[27851,27856,27860,27864,27868],{"type":52,"tag":160,"props":27852,"children":27853},{"style":1771},[27854],{"type":58,"value":27855},"    r",{"type":52,"tag":160,"props":27857,"children":27858},{"style":4080},[27859],{"type":58,"value":3931},{"type":52,"tag":160,"props":27861,"children":27862},{"style":1771},[27863],{"type":58,"value":20308},{"type":52,"tag":160,"props":27865,"children":27866},{"style":4181},[27867],{"type":58,"value":10630},{"type":52,"tag":160,"props":27869,"children":27870},{"style":4080},[27871],{"type":58,"value":27872}," kpi_date,\n",{"type":52,"tag":160,"props":27874,"children":27875},{"class":162,"line":697},[27876,27880,27884,27889],{"type":52,"tag":160,"props":27877,"children":27878},{"style":1771},[27879],{"type":58,"value":27855},{"type":52,"tag":160,"props":27881,"children":27882},{"style":4080},[27883],{"type":58,"value":3931},{"type":52,"tag":160,"props":27885,"children":27886},{"style":1771},[27887],{"type":58,"value":27888},"net_revenue",{"type":52,"tag":160,"props":27890,"children":27891},{"style":4080},[27892],{"type":58,"value":10656},{"type":52,"tag":160,"props":27894,"children":27895},{"class":162,"line":706},[27896,27900,27904,27909],{"type":52,"tag":160,"props":27897,"children":27898},{"style":1771},[27899],{"type":58,"value":27855},{"type":52,"tag":160,"props":27901,"children":27902},{"style":4080},[27903],{"type":58,"value":3931},{"type":52,"tag":160,"props":27905,"children":27906},{"style":1771},[27907],{"type":58,"value":27908},"total_orders",{"type":52,"tag":160,"props":27910,"children":27911},{"style":4080},[27912],{"type":58,"value":10656},{"type":52,"tag":160,"props":27914,"children":27915},{"class":162,"line":715},[27916,27920,27924,27929],{"type":52,"tag":160,"props":27917,"children":27918},{"style":1771},[27919],{"type":58,"value":27855},{"type":52,"tag":160,"props":27921,"children":27922},{"style":4080},[27923],{"type":58,"value":3931},{"type":52,"tag":160,"props":27925,"children":27926},{"style":1771},[27927],{"type":58,"value":27928},"paid_orders",{"type":52,"tag":160,"props":27930,"children":27931},{"style":4080},[27932],{"type":58,"value":10656},{"type":52,"tag":160,"props":27934,"children":27935},{"class":162,"line":724},[27936,27940,27944,27949],{"type":52,"tag":160,"props":27937,"children":27938},{"style":1771},[27939],{"type":58,"value":27855},{"type":52,"tag":160,"props":27941,"children":27942},{"style":4080},[27943],{"type":58,"value":3931},{"type":52,"tag":160,"props":27945,"children":27946},{"style":1771},[27947],{"type":58,"value":27948},"avg_order_value",{"type":52,"tag":160,"props":27950,"children":27951},{"style":4080},[27952],{"type":58,"value":10656},{"type":52,"tag":160,"props":27954,"children":27955},{"class":162,"line":733},[27956,27960,27964,27969],{"type":52,"tag":160,"props":27957,"children":27958},{"style":1771},[27959],{"type":58,"value":27855},{"type":52,"tag":160,"props":27961,"children":27962},{"style":4080},[27963],{"type":58,"value":3931},{"type":52,"tag":160,"props":27965,"children":27966},{"style":1771},[27967],{"type":58,"value":27968},"cancellation_rate",{"type":52,"tag":160,"props":27970,"children":27971},{"style":4080},[27972],{"type":58,"value":10656},{"type":52,"tag":160,"props":27974,"children":27975},{"class":162,"line":742},[27976,27981,27985,27990],{"type":52,"tag":160,"props":27977,"children":27978},{"style":1771},[27979],{"type":58,"value":27980},"    dc",{"type":52,"tag":160,"props":27982,"children":27983},{"style":4080},[27984],{"type":58,"value":3931},{"type":52,"tag":160,"props":27986,"children":27987},{"style":1771},[27988],{"type":58,"value":27989},"new_customers",{"type":52,"tag":160,"props":27991,"children":27992},{"style":4080},[27993],{"type":58,"value":10656},{"type":52,"tag":160,"props":27995,"children":27996},{"class":162,"line":23993},[27997,28001,28005,28010],{"type":52,"tag":160,"props":27998,"children":27999},{"style":1771},[28000],{"type":58,"value":27980},{"type":52,"tag":160,"props":28002,"children":28003},{"style":4080},[28004],{"type":58,"value":3931},{"type":52,"tag":160,"props":28006,"children":28007},{"style":1771},[28008],{"type":58,"value":28009},"returning_customers",{"type":52,"tag":160,"props":28011,"children":28012},{"style":4080},[28013],{"type":58,"value":10656},{"type":52,"tag":160,"props":28015,"children":28016},{"class":162,"line":24014},[28017,28022,28026,28030],{"type":52,"tag":160,"props":28018,"children":28019},{"style":1771},[28020],{"type":58,"value":28021},"    ds",{"type":52,"tag":160,"props":28023,"children":28024},{"style":4080},[28025],{"type":58,"value":3931},{"type":52,"tag":160,"props":28027,"children":28028},{"style":1771},[28029],{"type":58,"value":16221},{"type":52,"tag":160,"props":28031,"children":28032},{"style":4080},[28033],{"type":58,"value":10656},{"type":52,"tag":160,"props":28035,"children":28036},{"class":162,"line":24035},[28037,28041,28045,28050],{"type":52,"tag":160,"props":28038,"children":28039},{"style":1771},[28040],{"type":58,"value":28021},{"type":52,"tag":160,"props":28042,"children":28043},{"style":4080},[28044],{"type":58,"value":3931},{"type":52,"tag":160,"props":28046,"children":28047},{"style":1771},[28048],{"type":58,"value":28049},"new_visitors",{"type":52,"tag":160,"props":28051,"children":28052},{"style":4080},[28053],{"type":58,"value":10656},{"type":52,"tag":160,"props":28055,"children":28056},{"class":162,"line":24055},[28057,28061,28065,28070,28074,28079,28083,28087,28091,28095,28099,28103,28107,28111,28115,28119,28123,28127,28131,28135,28139],{"type":52,"tag":160,"props":28058,"children":28059},{"style":1771},[28060],{"type":58,"value":18503},{"type":52,"tag":160,"props":28062,"children":28063},{"style":4080},[28064],{"type":58,"value":10763},{"type":52,"tag":160,"props":28066,"children":28067},{"style":1771},[28068],{"type":58,"value":28069},"ds",{"type":52,"tag":160,"props":28071,"children":28072},{"style":4080},[28073],{"type":58,"value":3931},{"type":52,"tag":160,"props":28075,"children":28076},{"style":1771},[28077],{"type":58,"value":28078},"purchases",{"type":52,"tag":160,"props":28080,"children":28081},{"style":4181},[28082],{"type":58,"value":11084},{"type":52,"tag":160,"props":28084,"children":28085},{"style":1771},[28086],{"type":58,"value":18518},{"type":52,"tag":160,"props":28088,"children":28089},{"style":4080},[28090],{"type":58,"value":10763},{"type":52,"tag":160,"props":28092,"children":28093},{"style":1771},[28094],{"type":58,"value":28069},{"type":52,"tag":160,"props":28096,"children":28097},{"style":4080},[28098],{"type":58,"value":3931},{"type":52,"tag":160,"props":28100,"children":28101},{"style":1771},[28102],{"type":58,"value":16221},{"type":52,"tag":160,"props":28104,"children":28105},{"style":4080},[28106],{"type":58,"value":3976},{"type":52,"tag":160,"props":28108,"children":28109},{"style":1771},[28110],{"type":58,"value":11098},{"type":52,"tag":160,"props":28112,"children":28113},{"style":4080},[28114],{"type":58,"value":11279},{"type":52,"tag":160,"props":28116,"children":28117},{"style":4181},[28118],{"type":58,"value":16713},{"type":52,"tag":160,"props":28120,"children":28121},{"style":1771},[28122],{"type":58,"value":11089},{"type":52,"tag":160,"props":28124,"children":28125},{"style":4080},[28126],{"type":58,"value":3976},{"type":52,"tag":160,"props":28128,"children":28129},{"style":1771},[28130],{"type":58,"value":10804},{"type":52,"tag":160,"props":28132,"children":28133},{"style":4080},[28134],{"type":58,"value":11279},{"type":52,"tag":160,"props":28136,"children":28137},{"style":4181},[28138],{"type":58,"value":10814},{"type":52,"tag":160,"props":28140,"children":28141},{"style":4080},[28142],{"type":58,"value":28143}," conversion_rate,\n",{"type":52,"tag":160,"props":28145,"children":28146},{"class":162,"line":24077},[28147,28152,28156,28161],{"type":52,"tag":160,"props":28148,"children":28149},{"style":1771},[28150],{"type":58,"value":28151},"    sp",{"type":52,"tag":160,"props":28153,"children":28154},{"style":4080},[28155],{"type":58,"value":3931},{"type":52,"tag":160,"props":28157,"children":28158},{"style":1771},[28159],{"type":58,"value":28160},"total_ad_spend",{"type":52,"tag":160,"props":28162,"children":28163},{"style":4080},[28164],{"type":58,"value":10656},{"type":52,"tag":160,"props":28166,"children":28167},{"class":162,"line":24155},[28168,28172,28176,28181,28185,28189,28193,28197,28201,28206,28210,28214,28218,28222,28226,28230,28234,28238],{"type":52,"tag":160,"props":28169,"children":28170},{"style":1771},[28171],{"type":58,"value":18503},{"type":52,"tag":160,"props":28173,"children":28174},{"style":4080},[28175],{"type":58,"value":10763},{"type":52,"tag":160,"props":28177,"children":28178},{"style":1771},[28179],{"type":58,"value":28180},"r",{"type":52,"tag":160,"props":28182,"children":28183},{"style":4080},[28184],{"type":58,"value":3931},{"type":52,"tag":160,"props":28186,"children":28187},{"style":1771},[28188],{"type":58,"value":27888},{"type":52,"tag":160,"props":28190,"children":28191},{"style":4181},[28192],{"type":58,"value":11084},{"type":52,"tag":160,"props":28194,"children":28195},{"style":1771},[28196],{"type":58,"value":18518},{"type":52,"tag":160,"props":28198,"children":28199},{"style":4080},[28200],{"type":58,"value":10763},{"type":52,"tag":160,"props":28202,"children":28203},{"style":1771},[28204],{"type":58,"value":28205},"sp",{"type":52,"tag":160,"props":28207,"children":28208},{"style":4080},[28209],{"type":58,"value":3931},{"type":52,"tag":160,"props":28211,"children":28212},{"style":1771},[28213],{"type":58,"value":28160},{"type":52,"tag":160,"props":28215,"children":28216},{"style":4080},[28217],{"type":58,"value":3976},{"type":52,"tag":160,"props":28219,"children":28220},{"style":1771},[28221],{"type":58,"value":11098},{"type":52,"tag":160,"props":28223,"children":28224},{"style":4080},[28225],{"type":58,"value":18532},{"type":52,"tag":160,"props":28227,"children":28228},{"style":1771},[28229],{"type":58,"value":10804},{"type":52,"tag":160,"props":28231,"children":28232},{"style":4080},[28233],{"type":58,"value":11279},{"type":52,"tag":160,"props":28235,"children":28236},{"style":4181},[28237],{"type":58,"value":10814},{"type":52,"tag":160,"props":28239,"children":28240},{"style":4080},[28241],{"type":58,"value":28242}," overall_roas\n",{"type":52,"tag":160,"props":28244,"children":28245},{"class":162,"line":24232},[28246,28250,28255,28259,28264],{"type":52,"tag":160,"props":28247,"children":28248},{"style":4181},[28249],{"type":58,"value":11165},{"type":52,"tag":160,"props":28251,"children":28252},{"style":1771},[28253],{"type":58,"value":28254}," reports",{"type":52,"tag":160,"props":28256,"children":28257},{"style":4080},[28258],{"type":58,"value":3931},{"type":52,"tag":160,"props":28260,"children":28261},{"style":1771},[28262],{"type":58,"value":28263},"rpt_daily_revenue",{"type":52,"tag":160,"props":28265,"children":28266},{"style":4080},[28267],{"type":58,"value":28268}," r\n",{"type":52,"tag":160,"props":28270,"children":28271},{"class":162,"line":24321},[28272,28276,28281,28286,28291,28295,28299,28303,28308,28312],{"type":52,"tag":160,"props":28273,"children":28274},{"style":4181},[28275],{"type":58,"value":10306},{"type":52,"tag":160,"props":28277,"children":28278},{"style":4080},[28279],{"type":58,"value":28280}," daily_customers dc ",{"type":52,"tag":160,"props":28282,"children":28283},{"style":4181},[28284],{"type":58,"value":28285},"ON",{"type":52,"tag":160,"props":28287,"children":28288},{"style":1771},[28289],{"type":58,"value":28290}," r",{"type":52,"tag":160,"props":28292,"children":28293},{"style":4080},[28294],{"type":58,"value":3931},{"type":52,"tag":160,"props":28296,"children":28297},{"style":1771},[28298],{"type":58,"value":20308},{"type":52,"tag":160,"props":28300,"children":28301},{"style":4181},[28302],{"type":58,"value":11235},{"type":52,"tag":160,"props":28304,"children":28305},{"style":1771},[28306],{"type":58,"value":28307}," dc",{"type":52,"tag":160,"props":28309,"children":28310},{"style":4080},[28311],{"type":58,"value":3931},{"type":52,"tag":160,"props":28313,"children":28314},{"style":1771},[28315],{"type":58,"value":24468},{"type":52,"tag":160,"props":28317,"children":28318},{"class":162,"line":24334},[28319,28323,28328,28332,28336,28340,28344,28348,28353,28357],{"type":52,"tag":160,"props":28320,"children":28321},{"style":4181},[28322],{"type":58,"value":10306},{"type":52,"tag":160,"props":28324,"children":28325},{"style":4080},[28326],{"type":58,"value":28327}," daily_sessions ds ",{"type":52,"tag":160,"props":28329,"children":28330},{"style":4181},[28331],{"type":58,"value":28285},{"type":52,"tag":160,"props":28333,"children":28334},{"style":1771},[28335],{"type":58,"value":28290},{"type":52,"tag":160,"props":28337,"children":28338},{"style":4080},[28339],{"type":58,"value":3931},{"type":52,"tag":160,"props":28341,"children":28342},{"style":1771},[28343],{"type":58,"value":20308},{"type":52,"tag":160,"props":28345,"children":28346},{"style":4181},[28347],{"type":58,"value":11235},{"type":52,"tag":160,"props":28349,"children":28350},{"style":1771},[28351],{"type":58,"value":28352}," ds",{"type":52,"tag":160,"props":28354,"children":28355},{"style":4080},[28356],{"type":58,"value":3931},{"type":52,"tag":160,"props":28358,"children":28359},{"style":1771},[28360],{"type":58,"value":23819},{"type":52,"tag":160,"props":28362,"children":28363},{"class":162,"line":24347},[28364,28368,28373,28377,28381,28385,28389,28393,28398,28402],{"type":52,"tag":160,"props":28365,"children":28366},{"style":4181},[28367],{"type":58,"value":10306},{"type":52,"tag":160,"props":28369,"children":28370},{"style":4080},[28371],{"type":58,"value":28372}," daily_spend sp ",{"type":52,"tag":160,"props":28374,"children":28375},{"style":4181},[28376],{"type":58,"value":28285},{"type":52,"tag":160,"props":28378,"children":28379},{"style":1771},[28380],{"type":58,"value":28290},{"type":52,"tag":160,"props":28382,"children":28383},{"style":4080},[28384],{"type":58,"value":3931},{"type":52,"tag":160,"props":28386,"children":28387},{"style":1771},[28388],{"type":58,"value":20308},{"type":52,"tag":160,"props":28390,"children":28391},{"style":4181},[28392],{"type":58,"value":11235},{"type":52,"tag":160,"props":28394,"children":28395},{"style":1771},[28396],{"type":58,"value":28397}," sp",{"type":52,"tag":160,"props":28399,"children":28400},{"style":4080},[28401],{"type":58,"value":3931},{"type":52,"tag":160,"props":28403,"children":28404},{"style":1771},[28405],{"type":58,"value":28406},"spend_date\n",{"type":52,"tag":160,"props":28408,"children":28409},{"class":162,"line":24384},[28410,28414,28419],{"type":52,"tag":160,"props":28411,"children":28412},{"style":4181},[28413],{"type":58,"value":18652},{"type":52,"tag":160,"props":28415,"children":28416},{"style":4080},[28417],{"type":58,"value":28418}," kpi_date ",{"type":52,"tag":160,"props":28420,"children":28421},{"style":4181},[28422],{"type":58,"value":28423},"DESC\n",{"type":52,"tag":259,"props":28425,"children":28426},{"v-slot:bigquery":7},[28427],{"type":52,"tag":150,"props":28428,"children":28430},{"className":10404,"code":28429,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_daily_kpis\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - reports.rpt_daily_revenue\n  - staging.stg_customers\n  - staging.stg_orders\n  - staging.stg_web_sessions\n  - staging.stg_marketing_spend\ncolumns:\n  - name: kpi_date\n    type: date\n    checks:\n      - name: not_null\n      - name: unique\n@bruin *\u002F\n\nWITH daily_customers AS (\n    SELECT\n        DATE(o.order_date) AS order_date,\n        COUNTIF(DATE(c.first_seen_at) = DATE(o.order_date)) AS new_customers,\n        COUNTIF(DATE(c.first_seen_at) \u003C DATE(o.order_date)) AS returning_customers\n    FROM staging.stg_orders o\n    LEFT JOIN staging.stg_customers c\n        ON o.customer_email = c.customer_email\n    WHERE o.payment_status = 'paid'\n    GROUP BY DATE(o.order_date)\n),\ndaily_sessions AS (\n    SELECT\n        session_date,\n        sum(total_sessions) AS sessions,\n        sum(new_users) AS new_visitors,\n        sum(purchase_events) AS purchases\n    FROM staging.stg_web_sessions\n    GROUP BY session_date\n),\ndaily_spend AS (\n    SELECT\n        spend_date,\n        sum(spend) AS total_ad_spend\n    FROM staging.stg_marketing_spend\n    GROUP BY spend_date\n)\nSELECT\n    r.order_date AS kpi_date,\n    r.net_revenue,\n    r.total_orders,\n    r.paid_orders,\n    r.avg_order_value,\n    r.cancellation_rate,\n    dc.new_customers,\n    dc.returning_customers,\n    ds.sessions,\n    ds.new_visitors,\n    round(ds.purchases \u002F NULLIF(ds.sessions, 0) * 100, 2) AS conversion_rate,\n    sp.total_ad_spend,\n    round(r.net_revenue \u002F NULLIF(sp.total_ad_spend, 0), 2) AS overall_roas\nFROM reports.rpt_daily_revenue r\nLEFT JOIN daily_customers dc ON r.order_date = dc.order_date\nLEFT JOIN daily_sessions ds ON r.order_date = ds.session_date\nLEFT JOIN daily_spend sp ON r.order_date = sp.spend_date\nORDER BY kpi_date DESC\n",[28431],{"type":52,"tag":71,"props":28432,"children":28433},{"__ignoreMap":7},[28434,28441,28448,28455,28462,28469,28476,28483,28490,28497,28504,28511,28518,28525,28532,28539,28546,28553,28560,28567,28586,28593,28628,28696,28763,28786,28809,28844,28871,28902,28909,28924,28931,28938,28961,28980,28999,29018,29029,29036,29051,29058,29065,29084,29103,29114,29121,29128,29151,29170,29189,29208,29227,29246,29265,29284,29303,29322,29409,29428,29503,29526,29569,29612,29655],{"type":52,"tag":160,"props":28435,"children":28436},{"class":162,"line":163},[28437],{"type":52,"tag":160,"props":28438,"children":28439},{"style":10416},[28440],{"type":58,"value":10419},{"type":52,"tag":160,"props":28442,"children":28443},{"class":162,"line":281},[28444],{"type":52,"tag":160,"props":28445,"children":28446},{"style":10416},[28447],{"type":58,"value":27185},{"type":52,"tag":160,"props":28449,"children":28450},{"class":162,"line":290},[28451],{"type":52,"tag":160,"props":28452,"children":28453},{"style":10416},[28454],{"type":58,"value":10435},{"type":52,"tag":160,"props":28456,"children":28457},{"class":162,"line":299},[28458],{"type":52,"tag":160,"props":28459,"children":28460},{"style":10416},[28461],{"type":58,"value":10443},{"type":52,"tag":160,"props":28463,"children":28464},{"class":162,"line":27},[28465],{"type":52,"tag":160,"props":28466,"children":28467},{"style":10416},[28468],{"type":58,"value":10451},{"type":52,"tag":160,"props":28470,"children":28471},{"class":162,"line":316},[28472],{"type":52,"tag":160,"props":28473,"children":28474},{"style":10416},[28475],{"type":58,"value":10459},{"type":52,"tag":160,"props":28477,"children":28478},{"class":162,"line":325},[28479],{"type":52,"tag":160,"props":28480,"children":28481},{"style":10416},[28482],{"type":58,"value":27221},{"type":52,"tag":160,"props":28484,"children":28485},{"class":162,"line":334},[28486],{"type":52,"tag":160,"props":28487,"children":28488},{"style":10416},[28489],{"type":58,"value":20153},{"type":52,"tag":160,"props":28491,"children":28492},{"class":162,"line":343},[28493],{"type":52,"tag":160,"props":28494,"children":28495},{"style":10416},[28496],{"type":58,"value":18170},{"type":52,"tag":160,"props":28498,"children":28499},{"class":162,"line":11},[28500],{"type":52,"tag":160,"props":28501,"children":28502},{"style":10416},[28503],{"type":58,"value":23263},{"type":52,"tag":160,"props":28505,"children":28506},{"class":162,"line":359},[28507],{"type":52,"tag":160,"props":28508,"children":28509},{"style":10416},[28510],{"type":58,"value":23255},{"type":52,"tag":160,"props":28512,"children":28513},{"class":162,"line":368},[28514],{"type":52,"tag":160,"props":28515,"children":28516},{"style":10416},[28517],{"type":58,"value":10483},{"type":52,"tag":160,"props":28519,"children":28520},{"class":162,"line":377},[28521],{"type":52,"tag":160,"props":28522,"children":28523},{"style":10416},[28524],{"type":58,"value":27264},{"type":52,"tag":160,"props":28526,"children":28527},{"class":162,"line":386},[28528],{"type":52,"tag":160,"props":28529,"children":28530},{"style":10416},[28531],{"type":58,"value":14479},{"type":52,"tag":160,"props":28533,"children":28534},{"class":162,"line":395},[28535],{"type":52,"tag":160,"props":28536,"children":28537},{"style":10416},[28538],{"type":58,"value":10507},{"type":52,"tag":160,"props":28540,"children":28541},{"class":162,"line":404},[28542],{"type":52,"tag":160,"props":28543,"children":28544},{"style":10416},[28545],{"type":58,"value":10515},{"type":52,"tag":160,"props":28547,"children":28548},{"class":162,"line":413},[28549],{"type":52,"tag":160,"props":28550,"children":28551},{"style":10416},[28552],{"type":58,"value":10523},{"type":52,"tag":160,"props":28554,"children":28555},{"class":162,"line":422},[28556],{"type":52,"tag":160,"props":28557,"children":28558},{"style":10416},[28559],{"type":58,"value":10593},{"type":52,"tag":160,"props":28561,"children":28562},{"class":162,"line":430},[28563],{"type":52,"tag":160,"props":28564,"children":28565},{"emptyLinePlaceholder":26},[28566],{"type":58,"value":287},{"type":52,"tag":160,"props":28568,"children":28569},{"class":162,"line":439},[28570,28574,28578,28582],{"type":52,"tag":160,"props":28571,"children":28572},{"style":4181},[28573],{"type":58,"value":20211},{"type":52,"tag":160,"props":28575,"children":28576},{"style":4080},[28577],{"type":58,"value":27318},{"type":52,"tag":160,"props":28579,"children":28580},{"style":4181},[28581],{"type":58,"value":10814},{"type":52,"tag":160,"props":28583,"children":28584},{"style":4080},[28585],{"type":58,"value":20225},{"type":52,"tag":160,"props":28587,"children":28588},{"class":162,"line":448},[28589],{"type":52,"tag":160,"props":28590,"children":28591},{"style":4181},[28592],{"type":58,"value":20233},{"type":52,"tag":160,"props":28594,"children":28595},{"class":162,"line":457},[28596,28600,28604,28608,28612,28616,28620,28624],{"type":52,"tag":160,"props":28597,"children":28598},{"style":4181},[28599],{"type":58,"value":24988},{"type":52,"tag":160,"props":28601,"children":28602},{"style":4080},[28603],{"type":58,"value":10763},{"type":52,"tag":160,"props":28605,"children":28606},{"style":1771},[28607],{"type":58,"value":10768},{"type":52,"tag":160,"props":28609,"children":28610},{"style":4080},[28611],{"type":58,"value":3931},{"type":52,"tag":160,"props":28613,"children":28614},{"style":1771},[28615],{"type":58,"value":20308},{"type":52,"tag":160,"props":28617,"children":28618},{"style":4080},[28619],{"type":58,"value":11279},{"type":52,"tag":160,"props":28621,"children":28622},{"style":4181},[28623],{"type":58,"value":10814},{"type":52,"tag":160,"props":28625,"children":28626},{"style":4080},[28627],{"type":58,"value":10706},{"type":52,"tag":160,"props":28629,"children":28630},{"class":162,"line":466},[28631,28636,28640,28644,28648,28652,28656,28660,28664,28668,28672,28676,28680,28684,28688,28692],{"type":52,"tag":160,"props":28632,"children":28633},{"style":4080},[28634],{"type":58,"value":28635},"        COUNTIF(",{"type":52,"tag":160,"props":28637,"children":28638},{"style":4181},[28639],{"type":58,"value":13073},{"type":52,"tag":160,"props":28641,"children":28642},{"style":4080},[28643],{"type":58,"value":10763},{"type":52,"tag":160,"props":28645,"children":28646},{"style":1771},[28647],{"type":58,"value":11293},{"type":52,"tag":160,"props":28649,"children":28650},{"style":4080},[28651],{"type":58,"value":3931},{"type":52,"tag":160,"props":28653,"children":28654},{"style":1771},[28655],{"type":58,"value":20275},{"type":52,"tag":160,"props":28657,"children":28658},{"style":4080},[28659],{"type":58,"value":11279},{"type":52,"tag":160,"props":28661,"children":28662},{"style":4181},[28663],{"type":58,"value":11284},{"type":52,"tag":160,"props":28665,"children":28666},{"style":4181},[28667],{"type":58,"value":12078},{"type":52,"tag":160,"props":28669,"children":28670},{"style":4080},[28671],{"type":58,"value":10763},{"type":52,"tag":160,"props":28673,"children":28674},{"style":1771},[28675],{"type":58,"value":10768},{"type":52,"tag":160,"props":28677,"children":28678},{"style":4080},[28679],{"type":58,"value":3931},{"type":52,"tag":160,"props":28681,"children":28682},{"style":1771},[28683],{"type":58,"value":20308},{"type":52,"tag":160,"props":28685,"children":28686},{"style":4080},[28687],{"type":58,"value":10809},{"type":52,"tag":160,"props":28689,"children":28690},{"style":4181},[28691],{"type":58,"value":10814},{"type":52,"tag":160,"props":28693,"children":28694},{"style":4080},[28695],{"type":58,"value":27422},{"type":52,"tag":160,"props":28697,"children":28698},{"class":162,"line":474},[28699,28703,28707,28711,28715,28719,28723,28727,28731,28735,28739,28743,28747,28751,28755,28759],{"type":52,"tag":160,"props":28700,"children":28701},{"style":4080},[28702],{"type":58,"value":28635},{"type":52,"tag":160,"props":28704,"children":28705},{"style":4181},[28706],{"type":58,"value":13073},{"type":52,"tag":160,"props":28708,"children":28709},{"style":4080},[28710],{"type":58,"value":10763},{"type":52,"tag":160,"props":28712,"children":28713},{"style":1771},[28714],{"type":58,"value":11293},{"type":52,"tag":160,"props":28716,"children":28717},{"style":4080},[28718],{"type":58,"value":3931},{"type":52,"tag":160,"props":28720,"children":28721},{"style":1771},[28722],{"type":58,"value":20275},{"type":52,"tag":160,"props":28724,"children":28725},{"style":4080},[28726],{"type":58,"value":11279},{"type":52,"tag":160,"props":28728,"children":28729},{"style":4181},[28730],{"type":58,"value":27450},{"type":52,"tag":160,"props":28732,"children":28733},{"style":4181},[28734],{"type":58,"value":12078},{"type":52,"tag":160,"props":28736,"children":28737},{"style":4080},[28738],{"type":58,"value":10763},{"type":52,"tag":160,"props":28740,"children":28741},{"style":1771},[28742],{"type":58,"value":10768},{"type":52,"tag":160,"props":28744,"children":28745},{"style":4080},[28746],{"type":58,"value":3931},{"type":52,"tag":160,"props":28748,"children":28749},{"style":1771},[28750],{"type":58,"value":20308},{"type":52,"tag":160,"props":28752,"children":28753},{"style":4080},[28754],{"type":58,"value":10809},{"type":52,"tag":160,"props":28756,"children":28757},{"style":4181},[28758],{"type":58,"value":10814},{"type":52,"tag":160,"props":28760,"children":28761},{"style":4080},[28762],{"type":58,"value":27479},{"type":52,"tag":160,"props":28764,"children":28765},{"class":162,"line":483},[28766,28770,28774,28778,28782],{"type":52,"tag":160,"props":28767,"children":28768},{"style":4181},[28769],{"type":58,"value":20345},{"type":52,"tag":160,"props":28771,"children":28772},{"style":1771},[28773],{"type":58,"value":18623},{"type":52,"tag":160,"props":28775,"children":28776},{"style":4080},[28777],{"type":58,"value":3931},{"type":52,"tag":160,"props":28779,"children":28780},{"style":1771},[28781],{"type":58,"value":19245},{"type":52,"tag":160,"props":28783,"children":28784},{"style":4080},[28785],{"type":58,"value":11184},{"type":52,"tag":160,"props":28787,"children":28788},{"class":162,"line":492},[28789,28793,28797,28801,28805],{"type":52,"tag":160,"props":28790,"children":28791},{"style":4181},[28792],{"type":58,"value":27510},{"type":52,"tag":160,"props":28794,"children":28795},{"style":1771},[28796],{"type":58,"value":18623},{"type":52,"tag":160,"props":28798,"children":28799},{"style":4080},[28800],{"type":58,"value":3931},{"type":52,"tag":160,"props":28802,"children":28803},{"style":1771},[28804],{"type":58,"value":20382},{"type":52,"tag":160,"props":28806,"children":28807},{"style":4080},[28808],{"type":58,"value":11209},{"type":52,"tag":160,"props":28810,"children":28811},{"class":162,"line":501},[28812,28816,28820,28824,28828,28832,28836,28840],{"type":52,"tag":160,"props":28813,"children":28814},{"style":4181},[28815],{"type":58,"value":20394},{"type":52,"tag":160,"props":28817,"children":28818},{"style":1771},[28819],{"type":58,"value":11222},{"type":52,"tag":160,"props":28821,"children":28822},{"style":4080},[28823],{"type":58,"value":3931},{"type":52,"tag":160,"props":28825,"children":28826},{"style":1771},[28827],{"type":58,"value":20250},{"type":52,"tag":160,"props":28829,"children":28830},{"style":4181},[28831],{"type":58,"value":11235},{"type":52,"tag":160,"props":28833,"children":28834},{"style":1771},[28835],{"type":58,"value":11240},{"type":52,"tag":160,"props":28837,"children":28838},{"style":4080},[28839],{"type":58,"value":3931},{"type":52,"tag":160,"props":28841,"children":28842},{"style":1771},[28843],{"type":58,"value":20423},{"type":52,"tag":160,"props":28845,"children":28846},{"class":162,"line":510},[28847,28851,28855,28859,28863,28867],{"type":52,"tag":160,"props":28848,"children":28849},{"style":4181},[28850],{"type":58,"value":20431},{"type":52,"tag":160,"props":28852,"children":28853},{"style":1771},[28854],{"type":58,"value":11222},{"type":52,"tag":160,"props":28856,"children":28857},{"style":4080},[28858],{"type":58,"value":3931},{"type":52,"tag":160,"props":28860,"children":28861},{"style":1771},[28862],{"type":58,"value":20444},{"type":52,"tag":160,"props":28864,"children":28865},{"style":4181},[28866],{"type":58,"value":11235},{"type":52,"tag":160,"props":28868,"children":28869},{"style":173},[28870],{"type":58,"value":20453},{"type":52,"tag":160,"props":28872,"children":28873},{"class":162,"line":519},[28874,28878,28882,28886,28890,28894,28898],{"type":52,"tag":160,"props":28875,"children":28876},{"style":4181},[28877],{"type":58,"value":20543},{"type":52,"tag":160,"props":28879,"children":28880},{"style":4181},[28881],{"type":58,"value":12078},{"type":52,"tag":160,"props":28883,"children":28884},{"style":4080},[28885],{"type":58,"value":10763},{"type":52,"tag":160,"props":28887,"children":28888},{"style":1771},[28889],{"type":58,"value":10768},{"type":52,"tag":160,"props":28891,"children":28892},{"style":4080},[28893],{"type":58,"value":3931},{"type":52,"tag":160,"props":28895,"children":28896},{"style":1771},[28897],{"type":58,"value":20308},{"type":52,"tag":160,"props":28899,"children":28900},{"style":4080},[28901],{"type":58,"value":11307},{"type":52,"tag":160,"props":28903,"children":28904},{"class":162,"line":528},[28905],{"type":52,"tag":160,"props":28906,"children":28907},{"style":4080},[28908],{"type":58,"value":20461},{"type":52,"tag":160,"props":28910,"children":28911},{"class":162,"line":537},[28912,28916,28920],{"type":52,"tag":160,"props":28913,"children":28914},{"style":4080},[28915],{"type":58,"value":27630},{"type":52,"tag":160,"props":28917,"children":28918},{"style":4181},[28919],{"type":58,"value":10814},{"type":52,"tag":160,"props":28921,"children":28922},{"style":4080},[28923],{"type":58,"value":20225},{"type":52,"tag":160,"props":28925,"children":28926},{"class":162,"line":546},[28927],{"type":52,"tag":160,"props":28928,"children":28929},{"style":4181},[28930],{"type":58,"value":20233},{"type":52,"tag":160,"props":28932,"children":28933},{"class":162,"line":555},[28934],{"type":52,"tag":160,"props":28935,"children":28936},{"style":4080},[28937],{"type":58,"value":23518},{"type":52,"tag":160,"props":28939,"children":28940},{"class":162,"line":564},[28941,28945,28949,28953,28957],{"type":52,"tag":160,"props":28942,"children":28943},{"style":1771},[28944],{"type":58,"value":23371},{"type":52,"tag":160,"props":28946,"children":28947},{"style":4080},[28948],{"type":58,"value":23537},{"type":52,"tag":160,"props":28950,"children":28951},{"style":4181},[28952],{"type":58,"value":10814},{"type":52,"tag":160,"props":28954,"children":28955},{"style":4181},[28956],{"type":58,"value":23546},{"type":52,"tag":160,"props":28958,"children":28959},{"style":4080},[28960],{"type":58,"value":10656},{"type":52,"tag":160,"props":28962,"children":28963},{"class":162,"line":573},[28964,28968,28972,28976],{"type":52,"tag":160,"props":28965,"children":28966},{"style":1771},[28967],{"type":58,"value":23371},{"type":52,"tag":160,"props":28969,"children":28970},{"style":4080},[28971],{"type":58,"value":23562},{"type":52,"tag":160,"props":28973,"children":28974},{"style":4181},[28975],{"type":58,"value":10814},{"type":52,"tag":160,"props":28977,"children":28978},{"style":4080},[28979],{"type":58,"value":27695},{"type":52,"tag":160,"props":28981,"children":28982},{"class":162,"line":582},[28983,28987,28991,28995],{"type":52,"tag":160,"props":28984,"children":28985},{"style":1771},[28986],{"type":58,"value":23371},{"type":52,"tag":160,"props":28988,"children":28989},{"style":4080},[28990],{"type":58,"value":23582},{"type":52,"tag":160,"props":28992,"children":28993},{"style":4181},[28994],{"type":58,"value":10814},{"type":52,"tag":160,"props":28996,"children":28997},{"style":4080},[28998],{"type":58,"value":23591},{"type":52,"tag":160,"props":29000,"children":29001},{"class":162,"line":591},[29002,29006,29010,29014],{"type":52,"tag":160,"props":29003,"children":29004},{"style":4181},[29005],{"type":58,"value":20345},{"type":52,"tag":160,"props":29007,"children":29008},{"style":1771},[29009],{"type":58,"value":18623},{"type":52,"tag":160,"props":29011,"children":29012},{"style":4080},[29013],{"type":58,"value":3931},{"type":52,"tag":160,"props":29015,"children":29016},{"style":1771},[29017],{"type":58,"value":23611},{"type":52,"tag":160,"props":29019,"children":29020},{"class":162,"line":599},[29021,29025],{"type":52,"tag":160,"props":29022,"children":29023},{"style":4181},[29024],{"type":58,"value":20543},{"type":52,"tag":160,"props":29026,"children":29027},{"style":4080},[29028],{"type":58,"value":27745},{"type":52,"tag":160,"props":29030,"children":29031},{"class":162,"line":608},[29032],{"type":52,"tag":160,"props":29033,"children":29034},{"style":4080},[29035],{"type":58,"value":20461},{"type":52,"tag":160,"props":29037,"children":29038},{"class":162,"line":617},[29039,29043,29047],{"type":52,"tag":160,"props":29040,"children":29041},{"style":4080},[29042],{"type":58,"value":27760},{"type":52,"tag":160,"props":29044,"children":29045},{"style":4181},[29046],{"type":58,"value":10814},{"type":52,"tag":160,"props":29048,"children":29049},{"style":4080},[29050],{"type":58,"value":20225},{"type":52,"tag":160,"props":29052,"children":29053},{"class":162,"line":626},[29054],{"type":52,"tag":160,"props":29055,"children":29056},{"style":4181},[29057],{"type":58,"value":20233},{"type":52,"tag":160,"props":29059,"children":29060},{"class":162,"line":635},[29061],{"type":52,"tag":160,"props":29062,"children":29063},{"style":4080},[29064],{"type":58,"value":23355},{"type":52,"tag":160,"props":29066,"children":29067},{"class":162,"line":644},[29068,29072,29076,29080],{"type":52,"tag":160,"props":29069,"children":29070},{"style":1771},[29071],{"type":58,"value":23371},{"type":52,"tag":160,"props":29073,"children":29074},{"style":4080},[29075],{"type":58,"value":23376},{"type":52,"tag":160,"props":29077,"children":29078},{"style":4181},[29079],{"type":58,"value":10814},{"type":52,"tag":160,"props":29081,"children":29082},{"style":4080},[29083],{"type":58,"value":27802},{"type":52,"tag":160,"props":29085,"children":29086},{"class":162,"line":653},[29087,29091,29095,29099],{"type":52,"tag":160,"props":29088,"children":29089},{"style":4181},[29090],{"type":58,"value":20345},{"type":52,"tag":160,"props":29092,"children":29093},{"style":1771},[29094],{"type":58,"value":18623},{"type":52,"tag":160,"props":29096,"children":29097},{"style":4080},[29098],{"type":58,"value":3931},{"type":52,"tag":160,"props":29100,"children":29101},{"style":1771},[29102],{"type":58,"value":23468},{"type":52,"tag":160,"props":29104,"children":29105},{"class":162,"line":662},[29106,29110],{"type":52,"tag":160,"props":29107,"children":29108},{"style":4181},[29109],{"type":58,"value":20543},{"type":52,"tag":160,"props":29111,"children":29112},{"style":4080},[29113],{"type":58,"value":27833},{"type":52,"tag":160,"props":29115,"children":29116},{"class":162,"line":671},[29117],{"type":52,"tag":160,"props":29118,"children":29119},{"style":4080},[29120],{"type":58,"value":11307},{"type":52,"tag":160,"props":29122,"children":29123},{"class":162,"line":680},[29124],{"type":52,"tag":160,"props":29125,"children":29126},{"style":4181},[29127],{"type":58,"value":10608},{"type":52,"tag":160,"props":29129,"children":29130},{"class":162,"line":688},[29131,29135,29139,29143,29147],{"type":52,"tag":160,"props":29132,"children":29133},{"style":1771},[29134],{"type":58,"value":27855},{"type":52,"tag":160,"props":29136,"children":29137},{"style":4080},[29138],{"type":58,"value":3931},{"type":52,"tag":160,"props":29140,"children":29141},{"style":1771},[29142],{"type":58,"value":20308},{"type":52,"tag":160,"props":29144,"children":29145},{"style":4181},[29146],{"type":58,"value":10630},{"type":52,"tag":160,"props":29148,"children":29149},{"style":4080},[29150],{"type":58,"value":27872},{"type":52,"tag":160,"props":29152,"children":29153},{"class":162,"line":697},[29154,29158,29162,29166],{"type":52,"tag":160,"props":29155,"children":29156},{"style":1771},[29157],{"type":58,"value":27855},{"type":52,"tag":160,"props":29159,"children":29160},{"style":4080},[29161],{"type":58,"value":3931},{"type":52,"tag":160,"props":29163,"children":29164},{"style":1771},[29165],{"type":58,"value":27888},{"type":52,"tag":160,"props":29167,"children":29168},{"style":4080},[29169],{"type":58,"value":10656},{"type":52,"tag":160,"props":29171,"children":29172},{"class":162,"line":706},[29173,29177,29181,29185],{"type":52,"tag":160,"props":29174,"children":29175},{"style":1771},[29176],{"type":58,"value":27855},{"type":52,"tag":160,"props":29178,"children":29179},{"style":4080},[29180],{"type":58,"value":3931},{"type":52,"tag":160,"props":29182,"children":29183},{"style":1771},[29184],{"type":58,"value":27908},{"type":52,"tag":160,"props":29186,"children":29187},{"style":4080},[29188],{"type":58,"value":10656},{"type":52,"tag":160,"props":29190,"children":29191},{"class":162,"line":715},[29192,29196,29200,29204],{"type":52,"tag":160,"props":29193,"children":29194},{"style":1771},[29195],{"type":58,"value":27855},{"type":52,"tag":160,"props":29197,"children":29198},{"style":4080},[29199],{"type":58,"value":3931},{"type":52,"tag":160,"props":29201,"children":29202},{"style":1771},[29203],{"type":58,"value":27928},{"type":52,"tag":160,"props":29205,"children":29206},{"style":4080},[29207],{"type":58,"value":10656},{"type":52,"tag":160,"props":29209,"children":29210},{"class":162,"line":724},[29211,29215,29219,29223],{"type":52,"tag":160,"props":29212,"children":29213},{"style":1771},[29214],{"type":58,"value":27855},{"type":52,"tag":160,"props":29216,"children":29217},{"style":4080},[29218],{"type":58,"value":3931},{"type":52,"tag":160,"props":29220,"children":29221},{"style":1771},[29222],{"type":58,"value":27948},{"type":52,"tag":160,"props":29224,"children":29225},{"style":4080},[29226],{"type":58,"value":10656},{"type":52,"tag":160,"props":29228,"children":29229},{"class":162,"line":733},[29230,29234,29238,29242],{"type":52,"tag":160,"props":29231,"children":29232},{"style":1771},[29233],{"type":58,"value":27855},{"type":52,"tag":160,"props":29235,"children":29236},{"style":4080},[29237],{"type":58,"value":3931},{"type":52,"tag":160,"props":29239,"children":29240},{"style":1771},[29241],{"type":58,"value":27968},{"type":52,"tag":160,"props":29243,"children":29244},{"style":4080},[29245],{"type":58,"value":10656},{"type":52,"tag":160,"props":29247,"children":29248},{"class":162,"line":742},[29249,29253,29257,29261],{"type":52,"tag":160,"props":29250,"children":29251},{"style":1771},[29252],{"type":58,"value":27980},{"type":52,"tag":160,"props":29254,"children":29255},{"style":4080},[29256],{"type":58,"value":3931},{"type":52,"tag":160,"props":29258,"children":29259},{"style":1771},[29260],{"type":58,"value":27989},{"type":52,"tag":160,"props":29262,"children":29263},{"style":4080},[29264],{"type":58,"value":10656},{"type":52,"tag":160,"props":29266,"children":29267},{"class":162,"line":23993},[29268,29272,29276,29280],{"type":52,"tag":160,"props":29269,"children":29270},{"style":1771},[29271],{"type":58,"value":27980},{"type":52,"tag":160,"props":29273,"children":29274},{"style":4080},[29275],{"type":58,"value":3931},{"type":52,"tag":160,"props":29277,"children":29278},{"style":1771},[29279],{"type":58,"value":28009},{"type":52,"tag":160,"props":29281,"children":29282},{"style":4080},[29283],{"type":58,"value":10656},{"type":52,"tag":160,"props":29285,"children":29286},{"class":162,"line":24014},[29287,29291,29295,29299],{"type":52,"tag":160,"props":29288,"children":29289},{"style":1771},[29290],{"type":58,"value":28021},{"type":52,"tag":160,"props":29292,"children":29293},{"style":4080},[29294],{"type":58,"value":3931},{"type":52,"tag":160,"props":29296,"children":29297},{"style":1771},[29298],{"type":58,"value":16221},{"type":52,"tag":160,"props":29300,"children":29301},{"style":4080},[29302],{"type":58,"value":10656},{"type":52,"tag":160,"props":29304,"children":29305},{"class":162,"line":24035},[29306,29310,29314,29318],{"type":52,"tag":160,"props":29307,"children":29308},{"style":1771},[29309],{"type":58,"value":28021},{"type":52,"tag":160,"props":29311,"children":29312},{"style":4080},[29313],{"type":58,"value":3931},{"type":52,"tag":160,"props":29315,"children":29316},{"style":1771},[29317],{"type":58,"value":28049},{"type":52,"tag":160,"props":29319,"children":29320},{"style":4080},[29321],{"type":58,"value":10656},{"type":52,"tag":160,"props":29323,"children":29324},{"class":162,"line":24055},[29325,29329,29333,29337,29341,29345,29349,29353,29357,29361,29365,29369,29373,29377,29381,29385,29389,29393,29397,29401,29405],{"type":52,"tag":160,"props":29326,"children":29327},{"style":1771},[29328],{"type":58,"value":18503},{"type":52,"tag":160,"props":29330,"children":29331},{"style":4080},[29332],{"type":58,"value":10763},{"type":52,"tag":160,"props":29334,"children":29335},{"style":1771},[29336],{"type":58,"value":28069},{"type":52,"tag":160,"props":29338,"children":29339},{"style":4080},[29340],{"type":58,"value":3931},{"type":52,"tag":160,"props":29342,"children":29343},{"style":1771},[29344],{"type":58,"value":28078},{"type":52,"tag":160,"props":29346,"children":29347},{"style":4181},[29348],{"type":58,"value":11084},{"type":52,"tag":160,"props":29350,"children":29351},{"style":1771},[29352],{"type":58,"value":19099},{"type":52,"tag":160,"props":29354,"children":29355},{"style":4080},[29356],{"type":58,"value":10763},{"type":52,"tag":160,"props":29358,"children":29359},{"style":1771},[29360],{"type":58,"value":28069},{"type":52,"tag":160,"props":29362,"children":29363},{"style":4080},[29364],{"type":58,"value":3931},{"type":52,"tag":160,"props":29366,"children":29367},{"style":1771},[29368],{"type":58,"value":16221},{"type":52,"tag":160,"props":29370,"children":29371},{"style":4080},[29372],{"type":58,"value":3976},{"type":52,"tag":160,"props":29374,"children":29375},{"style":1771},[29376],{"type":58,"value":11098},{"type":52,"tag":160,"props":29378,"children":29379},{"style":4080},[29380],{"type":58,"value":11279},{"type":52,"tag":160,"props":29382,"children":29383},{"style":4181},[29384],{"type":58,"value":16713},{"type":52,"tag":160,"props":29386,"children":29387},{"style":1771},[29388],{"type":58,"value":11089},{"type":52,"tag":160,"props":29390,"children":29391},{"style":4080},[29392],{"type":58,"value":3976},{"type":52,"tag":160,"props":29394,"children":29395},{"style":1771},[29396],{"type":58,"value":10804},{"type":52,"tag":160,"props":29398,"children":29399},{"style":4080},[29400],{"type":58,"value":11279},{"type":52,"tag":160,"props":29402,"children":29403},{"style":4181},[29404],{"type":58,"value":10814},{"type":52,"tag":160,"props":29406,"children":29407},{"style":4080},[29408],{"type":58,"value":28143},{"type":52,"tag":160,"props":29410,"children":29411},{"class":162,"line":24077},[29412,29416,29420,29424],{"type":52,"tag":160,"props":29413,"children":29414},{"style":1771},[29415],{"type":58,"value":28151},{"type":52,"tag":160,"props":29417,"children":29418},{"style":4080},[29419],{"type":58,"value":3931},{"type":52,"tag":160,"props":29421,"children":29422},{"style":1771},[29423],{"type":58,"value":28160},{"type":52,"tag":160,"props":29425,"children":29426},{"style":4080},[29427],{"type":58,"value":10656},{"type":52,"tag":160,"props":29429,"children":29430},{"class":162,"line":24155},[29431,29435,29439,29443,29447,29451,29455,29459,29463,29467,29471,29475,29479,29483,29487,29491,29495,29499],{"type":52,"tag":160,"props":29432,"children":29433},{"style":1771},[29434],{"type":58,"value":18503},{"type":52,"tag":160,"props":29436,"children":29437},{"style":4080},[29438],{"type":58,"value":10763},{"type":52,"tag":160,"props":29440,"children":29441},{"style":1771},[29442],{"type":58,"value":28180},{"type":52,"tag":160,"props":29444,"children":29445},{"style":4080},[29446],{"type":58,"value":3931},{"type":52,"tag":160,"props":29448,"children":29449},{"style":1771},[29450],{"type":58,"value":27888},{"type":52,"tag":160,"props":29452,"children":29453},{"style":4181},[29454],{"type":58,"value":11084},{"type":52,"tag":160,"props":29456,"children":29457},{"style":1771},[29458],{"type":58,"value":19099},{"type":52,"tag":160,"props":29460,"children":29461},{"style":4080},[29462],{"type":58,"value":10763},{"type":52,"tag":160,"props":29464,"children":29465},{"style":1771},[29466],{"type":58,"value":28205},{"type":52,"tag":160,"props":29468,"children":29469},{"style":4080},[29470],{"type":58,"value":3931},{"type":52,"tag":160,"props":29472,"children":29473},{"style":1771},[29474],{"type":58,"value":28160},{"type":52,"tag":160,"props":29476,"children":29477},{"style":4080},[29478],{"type":58,"value":3976},{"type":52,"tag":160,"props":29480,"children":29481},{"style":1771},[29482],{"type":58,"value":11098},{"type":52,"tag":160,"props":29484,"children":29485},{"style":4080},[29486],{"type":58,"value":18532},{"type":52,"tag":160,"props":29488,"children":29489},{"style":1771},[29490],{"type":58,"value":10804},{"type":52,"tag":160,"props":29492,"children":29493},{"style":4080},[29494],{"type":58,"value":11279},{"type":52,"tag":160,"props":29496,"children":29497},{"style":4181},[29498],{"type":58,"value":10814},{"type":52,"tag":160,"props":29500,"children":29501},{"style":4080},[29502],{"type":58,"value":28242},{"type":52,"tag":160,"props":29504,"children":29505},{"class":162,"line":24232},[29506,29510,29514,29518,29522],{"type":52,"tag":160,"props":29507,"children":29508},{"style":4181},[29509],{"type":58,"value":11165},{"type":52,"tag":160,"props":29511,"children":29512},{"style":1771},[29513],{"type":58,"value":28254},{"type":52,"tag":160,"props":29515,"children":29516},{"style":4080},[29517],{"type":58,"value":3931},{"type":52,"tag":160,"props":29519,"children":29520},{"style":1771},[29521],{"type":58,"value":28263},{"type":52,"tag":160,"props":29523,"children":29524},{"style":4080},[29525],{"type":58,"value":28268},{"type":52,"tag":160,"props":29527,"children":29528},{"class":162,"line":24321},[29529,29533,29537,29541,29545,29549,29553,29557,29561,29565],{"type":52,"tag":160,"props":29530,"children":29531},{"style":4181},[29532],{"type":58,"value":10306},{"type":52,"tag":160,"props":29534,"children":29535},{"style":4080},[29536],{"type":58,"value":28280},{"type":52,"tag":160,"props":29538,"children":29539},{"style":4181},[29540],{"type":58,"value":28285},{"type":52,"tag":160,"props":29542,"children":29543},{"style":1771},[29544],{"type":58,"value":28290},{"type":52,"tag":160,"props":29546,"children":29547},{"style":4080},[29548],{"type":58,"value":3931},{"type":52,"tag":160,"props":29550,"children":29551},{"style":1771},[29552],{"type":58,"value":20308},{"type":52,"tag":160,"props":29554,"children":29555},{"style":4181},[29556],{"type":58,"value":11235},{"type":52,"tag":160,"props":29558,"children":29559},{"style":1771},[29560],{"type":58,"value":28307},{"type":52,"tag":160,"props":29562,"children":29563},{"style":4080},[29564],{"type":58,"value":3931},{"type":52,"tag":160,"props":29566,"children":29567},{"style":1771},[29568],{"type":58,"value":24468},{"type":52,"tag":160,"props":29570,"children":29571},{"class":162,"line":24334},[29572,29576,29580,29584,29588,29592,29596,29600,29604,29608],{"type":52,"tag":160,"props":29573,"children":29574},{"style":4181},[29575],{"type":58,"value":10306},{"type":52,"tag":160,"props":29577,"children":29578},{"style":4080},[29579],{"type":58,"value":28327},{"type":52,"tag":160,"props":29581,"children":29582},{"style":4181},[29583],{"type":58,"value":28285},{"type":52,"tag":160,"props":29585,"children":29586},{"style":1771},[29587],{"type":58,"value":28290},{"type":52,"tag":160,"props":29589,"children":29590},{"style":4080},[29591],{"type":58,"value":3931},{"type":52,"tag":160,"props":29593,"children":29594},{"style":1771},[29595],{"type":58,"value":20308},{"type":52,"tag":160,"props":29597,"children":29598},{"style":4181},[29599],{"type":58,"value":11235},{"type":52,"tag":160,"props":29601,"children":29602},{"style":1771},[29603],{"type":58,"value":28352},{"type":52,"tag":160,"props":29605,"children":29606},{"style":4080},[29607],{"type":58,"value":3931},{"type":52,"tag":160,"props":29609,"children":29610},{"style":1771},[29611],{"type":58,"value":23819},{"type":52,"tag":160,"props":29613,"children":29614},{"class":162,"line":24347},[29615,29619,29623,29627,29631,29635,29639,29643,29647,29651],{"type":52,"tag":160,"props":29616,"children":29617},{"style":4181},[29618],{"type":58,"value":10306},{"type":52,"tag":160,"props":29620,"children":29621},{"style":4080},[29622],{"type":58,"value":28372},{"type":52,"tag":160,"props":29624,"children":29625},{"style":4181},[29626],{"type":58,"value":28285},{"type":52,"tag":160,"props":29628,"children":29629},{"style":1771},[29630],{"type":58,"value":28290},{"type":52,"tag":160,"props":29632,"children":29633},{"style":4080},[29634],{"type":58,"value":3931},{"type":52,"tag":160,"props":29636,"children":29637},{"style":1771},[29638],{"type":58,"value":20308},{"type":52,"tag":160,"props":29640,"children":29641},{"style":4181},[29642],{"type":58,"value":11235},{"type":52,"tag":160,"props":29644,"children":29645},{"style":1771},[29646],{"type":58,"value":28397},{"type":52,"tag":160,"props":29648,"children":29649},{"style":4080},[29650],{"type":58,"value":3931},{"type":52,"tag":160,"props":29652,"children":29653},{"style":1771},[29654],{"type":58,"value":28406},{"type":52,"tag":160,"props":29656,"children":29657},{"class":162,"line":24384},[29658,29662,29666],{"type":52,"tag":160,"props":29659,"children":29660},{"style":4181},[29661],{"type":58,"value":18652},{"type":52,"tag":160,"props":29663,"children":29664},{"style":4080},[29665],{"type":58,"value":28418},{"type":52,"tag":160,"props":29667,"children":29668},{"style":4181},[29669],{"type":58,"value":28423},{"type":52,"tag":259,"props":29671,"children":29672},{"v-slot:snowflake":7},[29673],{"type":52,"tag":150,"props":29674,"children":29676},{"className":10404,"code":29675,"language":10406,"meta":7,"style":7},"\u002F* @bruin\nname: reports.rpt_daily_kpis\ntype: sql\nmaterialization:\n  type: table\ndepends:\n  - reports.rpt_daily_revenue\n  - staging.stg_customers\n  - staging.stg_orders\n  - staging.stg_web_sessions\n  - staging.stg_marketing_spend\ncolumns:\n  - name: kpi_date\n    type: date\n    checks:\n      - name: not_null\n      - name: unique\n@bruin *\u002F\n\nWITH daily_customers AS (\n    SELECT\n        o.order_date::DATE AS order_date,\n        COUNT(CASE WHEN c.first_seen_at::DATE = o.order_date::DATE THEN 1 END) AS new_customers,\n        COUNT(CASE WHEN c.first_seen_at::DATE \u003C o.order_date::DATE THEN 1 END) AS returning_customers\n    FROM staging.stg_orders o\n    LEFT JOIN staging.stg_customers c\n        ON o.customer_email = c.customer_email\n    WHERE o.payment_status = 'paid'\n    GROUP BY o.order_date::DATE\n),\ndaily_sessions AS (\n    SELECT\n        session_date,\n        sum(total_sessions) AS sessions,\n        sum(new_users) AS new_visitors,\n        sum(purchase_events) AS purchases\n    FROM staging.stg_web_sessions\n    GROUP BY session_date\n),\ndaily_spend AS (\n    SELECT\n        spend_date,\n        sum(spend) AS total_ad_spend\n    FROM staging.stg_marketing_spend\n    GROUP BY spend_date\n)\nSELECT\n    r.order_date AS kpi_date,\n    r.net_revenue,\n    r.total_orders,\n    r.paid_orders,\n    r.avg_order_value,\n    r.cancellation_rate,\n    dc.new_customers,\n    dc.returning_customers,\n    ds.sessions,\n    ds.new_visitors,\n    round(ds.purchases \u002F NULLIF(ds.sessions, 0) * 100, 2) AS conversion_rate,\n    sp.total_ad_spend,\n    round(r.net_revenue \u002F NULLIF(sp.total_ad_spend, 0), 2) AS overall_roas\nFROM reports.rpt_daily_revenue r\nLEFT JOIN daily_customers dc ON r.order_date = dc.order_date\nLEFT JOIN daily_sessions ds ON r.order_date = ds.session_date\nLEFT JOIN daily_spend sp ON r.order_date = sp.spend_date\nORDER BY kpi_date DESC\n",[29677],{"type":52,"tag":71,"props":29678,"children":29679},{"__ignoreMap":7},[29680,29687,29694,29701,29708,29715,29722,29729,29736,29743,29750,29757,29764,29771,29778,29785,29792,29799,29806,29813,29832,29839,29870,29958,30046,30069,30092,30127,30154,30181,30188,30203,30210,30217,30240,30259,30278,30297,30308,30315,30330,30337,30344,30363,30382,30393,30400,30407,30430,30449,30468,30487,30506,30525,30544,30563,30582,30601,30688,30707,30782,30805,30848,30891,30934],{"type":52,"tag":160,"props":29681,"children":29682},{"class":162,"line":163},[29683],{"type":52,"tag":160,"props":29684,"children":29685},{"style":10416},[29686],{"type":58,"value":10419},{"type":52,"tag":160,"props":29688,"children":29689},{"class":162,"line":281},[29690],{"type":52,"tag":160,"props":29691,"children":29692},{"style":10416},[29693],{"type":58,"value":27185},{"type":52,"tag":160,"props":29695,"children":29696},{"class":162,"line":290},[29697],{"type":52,"tag":160,"props":29698,"children":29699},{"style":10416},[29700],{"type":58,"value":10435},{"type":52,"tag":160,"props":29702,"children":29703},{"class":162,"line":299},[29704],{"type":52,"tag":160,"props":29705,"children":29706},{"style":10416},[29707],{"type":58,"value":10443},{"type":52,"tag":160,"props":29709,"children":29710},{"class":162,"line":27},[29711],{"type":52,"tag":160,"props":29712,"children":29713},{"style":10416},[29714],{"type":58,"value":10451},{"type":52,"tag":160,"props":29716,"children":29717},{"class":162,"line":316},[29718],{"type":52,"tag":160,"props":29719,"children":29720},{"style":10416},[29721],{"type":58,"value":10459},{"type":52,"tag":160,"props":29723,"children":29724},{"class":162,"line":325},[29725],{"type":52,"tag":160,"props":29726,"children":29727},{"style":10416},[29728],{"type":58,"value":27221},{"type":52,"tag":160,"props":29730,"children":29731},{"class":162,"line":334},[29732],{"type":52,"tag":160,"props":29733,"children":29734},{"style":10416},[29735],{"type":58,"value":20153},{"type":52,"tag":160,"props":29737,"children":29738},{"class":162,"line":343},[29739],{"type":52,"tag":160,"props":29740,"children":29741},{"style":10416},[29742],{"type":58,"value":18170},{"type":52,"tag":160,"props":29744,"children":29745},{"class":162,"line":11},[29746],{"type":52,"tag":160,"props":29747,"children":29748},{"style":10416},[29749],{"type":58,"value":23263},{"type":52,"tag":160,"props":29751,"children":29752},{"class":162,"line":359},[29753],{"type":52,"tag":160,"props":29754,"children":29755},{"style":10416},[29756],{"type":58,"value":23255},{"type":52,"tag":160,"props":29758,"children":29759},{"class":162,"line":368},[29760],{"type":52,"tag":160,"props":29761,"children":29762},{"style":10416},[29763],{"type":58,"value":10483},{"type":52,"tag":160,"props":29765,"children":29766},{"class":162,"line":377},[29767],{"type":52,"tag":160,"props":29768,"children":29769},{"style":10416},[29770],{"type":58,"value":27264},{"type":52,"tag":160,"props":29772,"children":29773},{"class":162,"line":386},[29774],{"type":52,"tag":160,"props":29775,"children":29776},{"style":10416},[29777],{"type":58,"value":14479},{"type":52,"tag":160,"props":29779,"children":29780},{"class":162,"line":395},[29781],{"type":52,"tag":160,"props":29782,"children":29783},{"style":10416},[29784],{"type":58,"value":10507},{"type":52,"tag":160,"props":29786,"children":29787},{"class":162,"line":404},[29788],{"type":52,"tag":160,"props":29789,"children":29790},{"style":10416},[29791],{"type":58,"value":10515},{"type":52,"tag":160,"props":29793,"children":29794},{"class":162,"line":413},[29795],{"type":52,"tag":160,"props":29796,"children":29797},{"style":10416},[29798],{"type":58,"value":10523},{"type":52,"tag":160,"props":29800,"children":29801},{"class":162,"line":422},[29802],{"type":52,"tag":160,"props":29803,"children":29804},{"style":10416},[29805],{"type":58,"value":10593},{"type":52,"tag":160,"props":29807,"children":29808},{"class":162,"line":430},[29809],{"type":52,"tag":160,"props":29810,"children":29811},{"emptyLinePlaceholder":26},[29812],{"type":58,"value":287},{"type":52,"tag":160,"props":29814,"children":29815},{"class":162,"line":439},[29816,29820,29824,29828],{"type":52,"tag":160,"props":29817,"children":29818},{"style":4181},[29819],{"type":58,"value":20211},{"type":52,"tag":160,"props":29821,"children":29822},{"style":4080},[29823],{"type":58,"value":27318},{"type":52,"tag":160,"props":29825,"children":29826},{"style":4181},[29827],{"type":58,"value":10814},{"type":52,"tag":160,"props":29829,"children":29830},{"style":4080},[29831],{"type":58,"value":20225},{"type":52,"tag":160,"props":29833,"children":29834},{"class":162,"line":448},[29835],{"type":52,"tag":160,"props":29836,"children":29837},{"style":4181},[29838],{"type":58,"value":20233},{"type":52,"tag":160,"props":29840,"children":29841},{"class":162,"line":457},[29842,29846,29850,29854,29858,29862,29866],{"type":52,"tag":160,"props":29843,"children":29844},{"style":1771},[29845],{"type":58,"value":20241},{"type":52,"tag":160,"props":29847,"children":29848},{"style":4080},[29849],{"type":58,"value":3931},{"type":52,"tag":160,"props":29851,"children":29852},{"style":1771},[29853],{"type":58,"value":20308},{"type":52,"tag":160,"props":29855,"children":29856},{"style":4080},[29857],{"type":58,"value":13068},{"type":52,"tag":160,"props":29859,"children":29860},{"style":4181},[29861],{"type":58,"value":13073},{"type":52,"tag":160,"props":29863,"children":29864},{"style":4181},[29865],{"type":58,"value":10630},{"type":52,"tag":160,"props":29867,"children":29868},{"style":4080},[29869],{"type":58,"value":10706},{"type":52,"tag":160,"props":29871,"children":29872},{"class":162,"line":466},[29873,29878,29882,29886,29890,29894,29898,29902,29906,29910,29914,29918,29922,29926,29930,29934,29938,29942,29946,29950,29954],{"type":52,"tag":160,"props":29874,"children":29875},{"style":1771},[29876],{"type":58,"value":29877},"        COUNT",{"type":52,"tag":160,"props":29879,"children":29880},{"style":4080},[29881],{"type":58,"value":10763},{"type":52,"tag":160,"props":29883,"children":29884},{"style":4181},[29885],{"type":58,"value":16151},{"type":52,"tag":160,"props":29887,"children":29888},{"style":4181},[29889],{"type":58,"value":16745},{"type":52,"tag":160,"props":29891,"children":29892},{"style":1771},[29893],{"type":58,"value":11240},{"type":52,"tag":160,"props":29895,"children":29896},{"style":4080},[29897],{"type":58,"value":3931},{"type":52,"tag":160,"props":29899,"children":29900},{"style":1771},[29901],{"type":58,"value":20275},{"type":52,"tag":160,"props":29903,"children":29904},{"style":4080},[29905],{"type":58,"value":13068},{"type":52,"tag":160,"props":29907,"children":29908},{"style":4181},[29909],{"type":58,"value":13073},{"type":52,"tag":160,"props":29911,"children":29912},{"style":4181},[29913],{"type":58,"value":11235},{"type":52,"tag":160,"props":29915,"children":29916},{"style":1771},[29917],{"type":58,"value":11222},{"type":52,"tag":160,"props":29919,"children":29920},{"style":4080},[29921],{"type":58,"value":3931},{"type":52,"tag":160,"props":29923,"children":29924},{"style":1771},[29925],{"type":58,"value":20308},{"type":52,"tag":160,"props":29927,"children":29928},{"style":4080},[29929],{"type":58,"value":13068},{"type":52,"tag":160,"props":29931,"children":29932},{"style":4181},[29933],{"type":58,"value":13073},{"type":52,"tag":160,"props":29935,"children":29936},{"style":4181},[29937],{"type":58,"value":16340},{"type":52,"tag":160,"props":29939,"children":29940},{"style":1771},[29941],{"type":58,"value":16777},{"type":52,"tag":160,"props":29943,"children":29944},{"style":4181},[29945],{"type":58,"value":16782},{"type":52,"tag":160,"props":29947,"children":29948},{"style":4080},[29949],{"type":58,"value":11279},{"type":52,"tag":160,"props":29951,"children":29952},{"style":4181},[29953],{"type":58,"value":10814},{"type":52,"tag":160,"props":29955,"children":29956},{"style":4080},[29957],{"type":58,"value":27422},{"type":52,"tag":160,"props":29959,"children":29960},{"class":162,"line":474},[29961,29965,29969,29973,29977,29981,29985,29989,29993,29997,30002,30006,30010,30014,30018,30022,30026,30030,30034,30038,30042],{"type":52,"tag":160,"props":29962,"children":29963},{"style":1771},[29964],{"type":58,"value":29877},{"type":52,"tag":160,"props":29966,"children":29967},{"style":4080},[29968],{"type":58,"value":10763},{"type":52,"tag":160,"props":29970,"children":29971},{"style":4181},[29972],{"type":58,"value":16151},{"type":52,"tag":160,"props":29974,"children":29975},{"style":4181},[29976],{"type":58,"value":16745},{"type":52,"tag":160,"props":29978,"children":29979},{"style":1771},[29980],{"type":58,"value":11240},{"type":52,"tag":160,"props":29982,"children":29983},{"style":4080},[29984],{"type":58,"value":3931},{"type":52,"tag":160,"props":29986,"children":29987},{"style":1771},[29988],{"type":58,"value":20275},{"type":52,"tag":160,"props":29990,"children":29991},{"style":4080},[29992],{"type":58,"value":13068},{"type":52,"tag":160,"props":29994,"children":29995},{"style":4181},[29996],{"type":58,"value":13073},{"type":52,"tag":160,"props":29998,"children":29999},{"style":4181},[30000],{"type":58,"value":30001}," \u003C",{"type":52,"tag":160,"props":30003,"children":30004},{"style":1771},[30005],{"type":58,"value":11222},{"type":52,"tag":160,"props":30007,"children":30008},{"style":4080},[30009],{"type":58,"value":3931},{"type":52,"tag":160,"props":30011,"children":30012},{"style":1771},[30013],{"type":58,"value":20308},{"type":52,"tag":160,"props":30015,"children":30016},{"style":4080},[30017],{"type":58,"value":13068},{"type":52,"tag":160,"props":30019,"children":30020},{"style":4181},[30021],{"type":58,"value":13073},{"type":52,"tag":160,"props":30023,"children":30024},{"style":4181},[30025],{"type":58,"value":16340},{"type":52,"tag":160,"props":30027,"children":30028},{"style":1771},[30029],{"type":58,"value":16777},{"type":52,"tag":160,"props":30031,"children":30032},{"style":4181},[30033],{"type":58,"value":16782},{"type":52,"tag":160,"props":30035,"children":30036},{"style":4080},[30037],{"type":58,"value":11279},{"type":52,"tag":160,"props":30039,"children":30040},{"style":4181},[30041],{"type":58,"value":10814},{"type":52,"tag":160,"props":30043,"children":30044},{"style":4080},[30045],{"type":58,"value":27479},{"type":52,"tag":160,"props":30047,"children":30048},{"class":162,"line":483},[30049,30053,30057,30061,30065],{"type":52,"tag":160,"props":30050,"children":30051},{"style":4181},[30052],{"type":58,"value":20345},{"type":52,"tag":160,"props":30054,"children":30055},{"style":1771},[30056],{"type":58,"value":18623},{"type":52,"tag":160,"props":30058,"children":30059},{"style":4080},[30060],{"type":58,"value":3931},{"type":52,"tag":160,"props":30062,"children":30063},{"style":1771},[30064],{"type":58,"value":19245},{"type":52,"tag":160,"props":30066,"children":30067},{"style":4080},[30068],{"type":58,"value":11184},{"type":52,"tag":160,"props":30070,"children":30071},{"class":162,"line":492},[30072,30076,30080,30084,30088],{"type":52,"tag":160,"props":30073,"children":30074},{"style":4181},[30075],{"type":58,"value":27510},{"type":52,"tag":160,"props":30077,"children":30078},{"style":1771},[30079],{"type":58,"value":18623},{"type":52,"tag":160,"props":30081,"children":30082},{"style":4080},[30083],{"type":58,"value":3931},{"type":52,"tag":160,"props":30085,"children":30086},{"style":1771},[30087],{"type":58,"value":20382},{"type":52,"tag":160,"props":30089,"children":30090},{"style":4080},[30091],{"type":58,"value":11209},{"type":52,"tag":160,"props":30093,"children":30094},{"class":162,"line":501},[30095,30099,30103,30107,30111,30115,30119,30123],{"type":52,"tag":160,"props":30096,"children":30097},{"style":4181},[30098],{"type":58,"value":20394},{"type":52,"tag":160,"props":30100,"children":30101},{"style":1771},[30102],{"type":58,"value":11222},{"type":52,"tag":160,"props":30104,"children":30105},{"style":4080},[30106],{"type":58,"value":3931},{"type":52,"tag":160,"props":30108,"children":30109},{"style":1771},[30110],{"type":58,"value":20250},{"type":52,"tag":160,"props":30112,"children":30113},{"style":4181},[30114],{"type":58,"value":11235},{"type":52,"tag":160,"props":30116,"children":30117},{"style":1771},[30118],{"type":58,"value":11240},{"type":52,"tag":160,"props":30120,"children":30121},{"style":4080},[30122],{"type":58,"value":3931},{"type":52,"tag":160,"props":30124,"children":30125},{"style":1771},[30126],{"type":58,"value":20423},{"type":52,"tag":160,"props":30128,"children":30129},{"class":162,"line":510},[30130,30134,30138,30142,30146,30150],{"type":52,"tag":160,"props":30131,"children":30132},{"style":4181},[30133],{"type":58,"value":20431},{"type":52,"tag":160,"props":30135,"children":30136},{"style":1771},[30137],{"type":58,"value":11222},{"type":52,"tag":160,"props":30139,"children":30140},{"style":4080},[30141],{"type":58,"value":3931},{"type":52,"tag":160,"props":30143,"children":30144},{"style":1771},[30145],{"type":58,"value":20444},{"type":52,"tag":160,"props":30147,"children":30148},{"style":4181},[30149],{"type":58,"value":11235},{"type":52,"tag":160,"props":30151,"children":30152},{"style":173},[30153],{"type":58,"value":20453},{"type":52,"tag":160,"props":30155,"children":30156},{"class":162,"line":519},[30157,30161,30165,30169,30173,30177],{"type":52,"tag":160,"props":30158,"children":30159},{"style":4181},[30160],{"type":58,"value":20543},{"type":52,"tag":160,"props":30162,"children":30163},{"style":1771},[30164],{"type":58,"value":11222},{"type":52,"tag":160,"props":30166,"children":30167},{"style":4080},[30168],{"type":58,"value":3931},{"type":52,"tag":160,"props":30170,"children":30171},{"style":1771},[30172],{"type":58,"value":20308},{"type":52,"tag":160,"props":30174,"children":30175},{"style":4080},[30176],{"type":58,"value":13068},{"type":52,"tag":160,"props":30178,"children":30179},{"style":4181},[30180],{"type":58,"value":13098},{"type":52,"tag":160,"props":30182,"children":30183},{"class":162,"line":528},[30184],{"type":52,"tag":160,"props":30185,"children":30186},{"style":4080},[30187],{"type":58,"value":20461},{"type":52,"tag":160,"props":30189,"children":30190},{"class":162,"line":537},[30191,30195,30199],{"type":52,"tag":160,"props":30192,"children":30193},{"style":4080},[30194],{"type":58,"value":27630},{"type":52,"tag":160,"props":30196,"children":30197},{"style":4181},[30198],{"type":58,"value":10814},{"type":52,"tag":160,"props":30200,"children":30201},{"style":4080},[30202],{"type":58,"value":20225},{"type":52,"tag":160,"props":30204,"children":30205},{"class":162,"line":546},[30206],{"type":52,"tag":160,"props":30207,"children":30208},{"style":4181},[30209],{"type":58,"value":20233},{"type":52,"tag":160,"props":30211,"children":30212},{"class":162,"line":555},[30213],{"type":52,"tag":160,"props":30214,"children":30215},{"style":4080},[30216],{"type":58,"value":23518},{"type":52,"tag":160,"props":30218,"children":30219},{"class":162,"line":564},[30220,30224,30228,30232,30236],{"type":52,"tag":160,"props":30221,"children":30222},{"style":1771},[30223],{"type":58,"value":23371},{"type":52,"tag":160,"props":30225,"children":30226},{"style":4080},[30227],{"type":58,"value":23537},{"type":52,"tag":160,"props":30229,"children":30230},{"style":4181},[30231],{"type":58,"value":10814},{"type":52,"tag":160,"props":30233,"children":30234},{"style":4181},[30235],{"type":58,"value":23546},{"type":52,"tag":160,"props":30237,"children":30238},{"style":4080},[30239],{"type":58,"value":10656},{"type":52,"tag":160,"props":30241,"children":30242},{"class":162,"line":573},[30243,30247,30251,30255],{"type":52,"tag":160,"props":30244,"children":30245},{"style":1771},[30246],{"type":58,"value":23371},{"type":52,"tag":160,"props":30248,"children":30249},{"style":4080},[30250],{"type":58,"value":23562},{"type":52,"tag":160,"props":30252,"children":30253},{"style":4181},[30254],{"type":58,"value":10814},{"type":52,"tag":160,"props":30256,"children":30257},{"style":4080},[30258],{"type":58,"value":27695},{"type":52,"tag":160,"props":30260,"children":30261},{"class":162,"line":582},[30262,30266,30270,30274],{"type":52,"tag":160,"props":30263,"children":30264},{"style":1771},[30265],{"type":58,"value":23371},{"type":52,"tag":160,"props":30267,"children":30268},{"style":4080},[30269],{"type":58,"value":23582},{"type":52,"tag":160,"props":30271,"children":30272},{"style":4181},[30273],{"type":58,"value":10814},{"type":52,"tag":160,"props":30275,"children":30276},{"style":4080},[30277],{"type":58,"value":23591},{"type":52,"tag":160,"props":30279,"children":30280},{"class":162,"line":591},[30281,30285,30289,30293],{"type":52,"tag":160,"props":30282,"children":30283},{"style":4181},[30284],{"type":58,"value":20345},{"type":52,"tag":160,"props":30286,"children":30287},{"style":1771},[30288],{"type":58,"value":18623},{"type":52,"tag":160,"props":30290,"children":30291},{"style":4080},[30292],{"type":58,"value":3931},{"type":52,"tag":160,"props":30294,"children":30295},{"style":1771},[30296],{"type":58,"value":23611},{"type":52,"tag":160,"props":30298,"children":30299},{"class":162,"line":599},[30300,30304],{"type":52,"tag":160,"props":30301,"children":30302},{"style":4181},[30303],{"type":58,"value":20543},{"type":52,"tag":160,"props":30305,"children":30306},{"style":4080},[30307],{"type":58,"value":27745},{"type":52,"tag":160,"props":30309,"children":30310},{"class":162,"line":608},[30311],{"type":52,"tag":160,"props":30312,"children":30313},{"style":4080},[30314],{"type":58,"value":20461},{"type":52,"tag":160,"props":30316,"children":30317},{"class":162,"line":617},[30318,30322,30326],{"type":52,"tag":160,"props":30319,"children":30320},{"style":4080},[30321],{"type":58,"value":27760},{"type":52,"tag":160,"props":30323,"children":30324},{"style":4181},[30325],{"type":58,"value":10814},{"type":52,"tag":160,"props":30327,"children":30328},{"style":4080},[30329],{"type":58,"value":20225},{"type":52,"tag":160,"props":30331,"children":30332},{"class":162,"line":626},[30333],{"type":52,"tag":160,"props":30334,"children":30335},{"style":4181},[30336],{"type":58,"value":20233},{"type":52,"tag":160,"props":30338,"children":30339},{"class":162,"line":635},[30340],{"type":52,"tag":160,"props":30341,"children":30342},{"style":4080},[30343],{"type":58,"value":23355},{"type":52,"tag":160,"props":30345,"children":30346},{"class":162,"line":644},[30347,30351,30355,30359],{"type":52,"tag":160,"props":30348,"children":30349},{"style":1771},[30350],{"type":58,"value":23371},{"type":52,"tag":160,"props":30352,"children":30353},{"style":4080},[30354],{"type":58,"value":23376},{"type":52,"tag":160,"props":30356,"children":30357},{"style":4181},[30358],{"type":58,"value":10814},{"type":52,"tag":160,"props":30360,"children":30361},{"style":4080},[30362],{"type":58,"value":27802},{"type":52,"tag":160,"props":30364,"children":30365},{"class":162,"line":653},[30366,30370,30374,30378],{"type":52,"tag":160,"props":30367,"children":30368},{"style":4181},[30369],{"type":58,"value":20345},{"type":52,"tag":160,"props":30371,"children":30372},{"style":1771},[30373],{"type":58,"value":18623},{"type":52,"tag":160,"props":30375,"children":30376},{"style":4080},[30377],{"type":58,"value":3931},{"type":52,"tag":160,"props":30379,"children":30380},{"style":1771},[30381],{"type":58,"value":23468},{"type":52,"tag":160,"props":30383,"children":30384},{"class":162,"line":662},[30385,30389],{"type":52,"tag":160,"props":30386,"children":30387},{"style":4181},[30388],{"type":58,"value":20543},{"type":52,"tag":160,"props":30390,"children":30391},{"style":4080},[30392],{"type":58,"value":27833},{"type":52,"tag":160,"props":30394,"children":30395},{"class":162,"line":671},[30396],{"type":52,"tag":160,"props":30397,"children":30398},{"style":4080},[30399],{"type":58,"value":11307},{"type":52,"tag":160,"props":30401,"children":30402},{"class":162,"line":680},[30403],{"type":52,"tag":160,"props":30404,"children":30405},{"style":4181},[30406],{"type":58,"value":10608},{"type":52,"tag":160,"props":30408,"children":30409},{"class":162,"line":688},[30410,30414,30418,30422,30426],{"type":52,"tag":160,"props":30411,"children":30412},{"style":1771},[30413],{"type":58,"value":27855},{"type":52,"tag":160,"props":30415,"children":30416},{"style":4080},[30417],{"type":58,"value":3931},{"type":52,"tag":160,"props":30419,"children":30420},{"style":1771},[30421],{"type":58,"value":20308},{"type":52,"tag":160,"props":30423,"children":30424},{"style":4181},[30425],{"type":58,"value":10630},{"type":52,"tag":160,"props":30427,"children":30428},{"style":4080},[30429],{"type":58,"value":27872},{"type":52,"tag":160,"props":30431,"children":30432},{"class":162,"line":697},[30433,30437,30441,30445],{"type":52,"tag":160,"props":30434,"children":30435},{"style":1771},[30436],{"type":58,"value":27855},{"type":52,"tag":160,"props":30438,"children":30439},{"style":4080},[30440],{"type":58,"value":3931},{"type":52,"tag":160,"props":30442,"children":30443},{"style":1771},[30444],{"type":58,"value":27888},{"type":52,"tag":160,"props":30446,"children":30447},{"style":4080},[30448],{"type":58,"value":10656},{"type":52,"tag":160,"props":30450,"children":30451},{"class":162,"line":706},[30452,30456,30460,30464],{"type":52,"tag":160,"props":30453,"children":30454},{"style":1771},[30455],{"type":58,"value":27855},{"type":52,"tag":160,"props":30457,"children":30458},{"style":4080},[30459],{"type":58,"value":3931},{"type":52,"tag":160,"props":30461,"children":30462},{"style":1771},[30463],{"type":58,"value":27908},{"type":52,"tag":160,"props":30465,"children":30466},{"style":4080},[30467],{"type":58,"value":10656},{"type":52,"tag":160,"props":30469,"children":30470},{"class":162,"line":715},[30471,30475,30479,30483],{"type":52,"tag":160,"props":30472,"children":30473},{"style":1771},[30474],{"type":58,"value":27855},{"type":52,"tag":160,"props":30476,"children":30477},{"style":4080},[30478],{"type":58,"value":3931},{"type":52,"tag":160,"props":30480,"children":30481},{"style":1771},[30482],{"type":58,"value":27928},{"type":52,"tag":160,"props":30484,"children":30485},{"style":4080},[30486],{"type":58,"value":10656},{"type":52,"tag":160,"props":30488,"children":30489},{"class":162,"line":724},[30490,30494,30498,30502],{"type":52,"tag":160,"props":30491,"children":30492},{"style":1771},[30493],{"type":58,"value":27855},{"type":52,"tag":160,"props":30495,"children":30496},{"style":4080},[30497],{"type":58,"value":3931},{"type":52,"tag":160,"props":30499,"children":30500},{"style":1771},[30501],{"type":58,"value":27948},{"type":52,"tag":160,"props":30503,"children":30504},{"style":4080},[30505],{"type":58,"value":10656},{"type":52,"tag":160,"props":30507,"children":30508},{"class":162,"line":733},[30509,30513,30517,30521],{"type":52,"tag":160,"props":30510,"children":30511},{"style":1771},[30512],{"type":58,"value":27855},{"type":52,"tag":160,"props":30514,"children":30515},{"style":4080},[30516],{"type":58,"value":3931},{"type":52,"tag":160,"props":30518,"children":30519},{"style":1771},[30520],{"type":58,"value":27968},{"type":52,"tag":160,"props":30522,"children":30523},{"style":4080},[30524],{"type":58,"value":10656},{"type":52,"tag":160,"props":30526,"children":30527},{"class":162,"line":742},[30528,30532,30536,30540],{"type":52,"tag":160,"props":30529,"children":30530},{"style":1771},[30531],{"type":58,"value":27980},{"type":52,"tag":160,"props":30533,"children":30534},{"style":4080},[30535],{"type":58,"value":3931},{"type":52,"tag":160,"props":30537,"children":30538},{"style":1771},[30539],{"type":58,"value":27989},{"type":52,"tag":160,"props":30541,"children":30542},{"style":4080},[30543],{"type":58,"value":10656},{"type":52,"tag":160,"props":30545,"children":30546},{"class":162,"line":23993},[30547,30551,30555,30559],{"type":52,"tag":160,"props":30548,"children":30549},{"style":1771},[30550],{"type":58,"value":27980},{"type":52,"tag":160,"props":30552,"children":30553},{"style":4080},[30554],{"type":58,"value":3931},{"type":52,"tag":160,"props":30556,"children":30557},{"style":1771},[30558],{"type":58,"value":28009},{"type":52,"tag":160,"props":30560,"children":30561},{"style":4080},[30562],{"type":58,"value":10656},{"type":52,"tag":160,"props":30564,"children":30565},{"class":162,"line":24014},[30566,30570,30574,30578],{"type":52,"tag":160,"props":30567,"children":30568},{"style":1771},[30569],{"type":58,"value":28021},{"type":52,"tag":160,"props":30571,"children":30572},{"style":4080},[30573],{"type":58,"value":3931},{"type":52,"tag":160,"props":30575,"children":30576},{"style":1771},[30577],{"type":58,"value":16221},{"type":52,"tag":160,"props":30579,"children":30580},{"style":4080},[30581],{"type":58,"value":10656},{"type":52,"tag":160,"props":30583,"children":30584},{"class":162,"line":24035},[30585,30589,30593,30597],{"type":52,"tag":160,"props":30586,"children":30587},{"style":1771},[30588],{"type":58,"value":28021},{"type":52,"tag":160,"props":30590,"children":30591},{"style":4080},[30592],{"type":58,"value":3931},{"type":52,"tag":160,"props":30594,"children":30595},{"style":1771},[30596],{"type":58,"value":28049},{"type":52,"tag":160,"props":30598,"children":30599},{"style":4080},[30600],{"type":58,"value":10656},{"type":52,"tag":160,"props":30602,"children":30603},{"class":162,"line":24055},[30604,30608,30612,30616,30620,30624,30628,30632,30636,30640,30644,30648,30652,30656,30660,30664,30668,30672,30676,30680,30684],{"type":52,"tag":160,"props":30605,"children":30606},{"style":1771},[30607],{"type":58,"value":18503},{"type":52,"tag":160,"props":30609,"children":30610},{"style":4080},[30611],{"type":58,"value":10763},{"type":52,"tag":160,"props":30613,"children":30614},{"style":1771},[30615],{"type":58,"value":28069},{"type":52,"tag":160,"props":30617,"children":30618},{"style":4080},[30619],{"type":58,"value":3931},{"type":52,"tag":160,"props":30621,"children":30622},{"style":1771},[30623],{"type":58,"value":28078},{"type":52,"tag":160,"props":30625,"children":30626},{"style":4181},[30627],{"type":58,"value":11084},{"type":52,"tag":160,"props":30629,"children":30630},{"style":1771},[30631],{"type":58,"value":19099},{"type":52,"tag":160,"props":30633,"children":30634},{"style":4080},[30635],{"type":58,"value":10763},{"type":52,"tag":160,"props":30637,"children":30638},{"style":1771},[30639],{"type":58,"value":28069},{"type":52,"tag":160,"props":30641,"children":30642},{"style":4080},[30643],{"type":58,"value":3931},{"type":52,"tag":160,"props":30645,"children":30646},{"style":1771},[30647],{"type":58,"value":16221},{"type":52,"tag":160,"props":30649,"children":30650},{"style":4080},[30651],{"type":58,"value":3976},{"type":52,"tag":160,"props":30653,"children":30654},{"style":1771},[30655],{"type":58,"value":11098},{"type":52,"tag":160,"props":30657,"children":30658},{"style":4080},[30659],{"type":58,"value":11279},{"type":52,"tag":160,"props":30661,"children":30662},{"style":4181},[30663],{"type":58,"value":16713},{"type":52,"tag":160,"props":30665,"children":30666},{"style":1771},[30667],{"type":58,"value":11089},{"type":52,"tag":160,"props":30669,"children":30670},{"style":4080},[30671],{"type":58,"value":3976},{"type":52,"tag":160,"props":30673,"children":30674},{"style":1771},[30675],{"type":58,"value":10804},{"type":52,"tag":160,"props":30677,"children":30678},{"style":4080},[30679],{"type":58,"value":11279},{"type":52,"tag":160,"props":30681,"children":30682},{"style":4181},[30683],{"type":58,"value":10814},{"type":52,"tag":160,"props":30685,"children":30686},{"style":4080},[30687],{"type":58,"value":28143},{"type":52,"tag":160,"props":30689,"children":30690},{"class":162,"line":24077},[30691,30695,30699,30703],{"type":52,"tag":160,"props":30692,"children":30693},{"style":1771},[30694],{"type":58,"value":28151},{"type":52,"tag":160,"props":30696,"children":30697},{"style":4080},[30698],{"type":58,"value":3931},{"type":52,"tag":160,"props":30700,"children":30701},{"style":1771},[30702],{"type":58,"value":28160},{"type":52,"tag":160,"props":30704,"children":30705},{"style":4080},[30706],{"type":58,"value":10656},{"type":52,"tag":160,"props":30708,"children":30709},{"class":162,"line":24155},[30710,30714,30718,30722,30726,30730,30734,30738,30742,30746,30750,30754,30758,30762,30766,30770,30774,30778],{"type":52,"tag":160,"props":30711,"children":30712},{"style":1771},[30713],{"type":58,"value":18503},{"type":52,"tag":160,"props":30715,"children":30716},{"style":4080},[30717],{"type":58,"value":10763},{"type":52,"tag":160,"props":30719,"children":30720},{"style":1771},[30721],{"type":58,"value":28180},{"type":52,"tag":160,"props":30723,"children":30724},{"style":4080},[30725],{"type":58,"value":3931},{"type":52,"tag":160,"props":30727,"children":30728},{"style":1771},[30729],{"type":58,"value":27888},{"type":52,"tag":160,"props":30731,"children":30732},{"style":4181},[30733],{"type":58,"value":11084},{"type":52,"tag":160,"props":30735,"children":30736},{"style":1771},[30737],{"type":58,"value":19099},{"type":52,"tag":160,"props":30739,"children":30740},{"style":4080},[30741],{"type":58,"value":10763},{"type":52,"tag":160,"props":30743,"children":30744},{"style":1771},[30745],{"type":58,"value":28205},{"type":52,"tag":160,"props":30747,"children":30748},{"style":4080},[30749],{"type":58,"value":3931},{"type":52,"tag":160,"props":30751,"children":30752},{"style":1771},[30753],{"type":58,"value":28160},{"type":52,"tag":160,"props":30755,"children":30756},{"style":4080},[30757],{"type":58,"value":3976},{"type":52,"tag":160,"props":30759,"children":30760},{"style":1771},[30761],{"type":58,"value":11098},{"type":52,"tag":160,"props":30763,"children":30764},{"style":4080},[30765],{"type":58,"value":18532},{"type":52,"tag":160,"props":30767,"children":30768},{"style":1771},[30769],{"type":58,"value":10804},{"type":52,"tag":160,"props":30771,"children":30772},{"style":4080},[30773],{"type":58,"value":11279},{"type":52,"tag":160,"props":30775,"children":30776},{"style":4181},[30777],{"type":58,"value":10814},{"type":52,"tag":160,"props":30779,"children":30780},{"style":4080},[30781],{"type":58,"value":28242},{"type":52,"tag":160,"props":30783,"children":30784},{"class":162,"line":24232},[30785,30789,30793,30797,30801],{"type":52,"tag":160,"props":30786,"children":30787},{"style":4181},[30788],{"type":58,"value":11165},{"type":52,"tag":160,"props":30790,"children":30791},{"style":1771},[30792],{"type":58,"value":28254},{"type":52,"tag":160,"props":30794,"children":30795},{"style":4080},[30796],{"type":58,"value":3931},{"type":52,"tag":160,"props":30798,"children":30799},{"style":1771},[30800],{"type":58,"value":28263},{"type":52,"tag":160,"props":30802,"children":30803},{"style":4080},[30804],{"type":58,"value":28268},{"type":52,"tag":160,"props":30806,"children":30807},{"class":162,"line":24321},[30808,30812,30816,30820,30824,30828,30832,30836,30840,30844],{"type":52,"tag":160,"props":30809,"children":30810},{"style":4181},[30811],{"type":58,"value":10306},{"type":52,"tag":160,"props":30813,"children":30814},{"style":4080},[30815],{"type":58,"value":28280},{"type":52,"tag":160,"props":30817,"children":30818},{"style":4181},[30819],{"type":58,"value":28285},{"type":52,"tag":160,"props":30821,"children":30822},{"style":1771},[30823],{"type":58,"value":28290},{"type":52,"tag":160,"props":30825,"children":30826},{"style":4080},[30827],{"type":58,"value":3931},{"type":52,"tag":160,"props":30829,"children":30830},{"style":1771},[30831],{"type":58,"value":20308},{"type":52,"tag":160,"props":30833,"children":30834},{"style":4181},[30835],{"type":58,"value":11235},{"type":52,"tag":160,"props":30837,"children":30838},{"style":1771},[30839],{"type":58,"value":28307},{"type":52,"tag":160,"props":30841,"children":30842},{"style":4080},[30843],{"type":58,"value":3931},{"type":52,"tag":160,"props":30845,"children":30846},{"style":1771},[30847],{"type":58,"value":24468},{"type":52,"tag":160,"props":30849,"children":30850},{"class":162,"line":24334},[30851,30855,30859,30863,30867,30871,30875,30879,30883,30887],{"type":52,"tag":160,"props":30852,"children":30853},{"style":4181},[30854],{"type":58,"value":10306},{"type":52,"tag":160,"props":30856,"children":30857},{"style":4080},[30858],{"type":58,"value":28327},{"type":52,"tag":160,"props":30860,"children":30861},{"style":4181},[30862],{"type":58,"value":28285},{"type":52,"tag":160,"props":30864,"children":30865},{"style":1771},[30866],{"type":58,"value":28290},{"type":52,"tag":160,"props":30868,"children":30869},{"style":4080},[30870],{"type":58,"value":3931},{"type":52,"tag":160,"props":30872,"children":30873},{"style":1771},[30874],{"type":58,"value":20308},{"type":52,"tag":160,"props":30876,"children":30877},{"style":4181},[30878],{"type":58,"value":11235},{"type":52,"tag":160,"props":30880,"children":30881},{"style":1771},[30882],{"type":58,"value":28352},{"type":52,"tag":160,"props":30884,"children":30885},{"style":4080},[30886],{"type":58,"value":3931},{"type":52,"tag":160,"props":30888,"children":30889},{"style":1771},[30890],{"type":58,"value":23819},{"type":52,"tag":160,"props":30892,"children":30893},{"class":162,"line":24347},[30894,30898,30902,30906,30910,30914,30918,30922,30926,30930],{"type":52,"tag":160,"props":30895,"children":30896},{"style":4181},[30897],{"type":58,"value":10306},{"type":52,"tag":160,"props":30899,"children":30900},{"style":4080},[30901],{"type":58,"value":28372},{"type":52,"tag":160,"props":30903,"children":30904},{"style":4181},[30905],{"type":58,"value":28285},{"type":52,"tag":160,"props":30907,"children":30908},{"style":1771},[30909],{"type":58,"value":28290},{"type":52,"tag":160,"props":30911,"children":30912},{"style":4080},[30913],{"type":58,"value":3931},{"type":52,"tag":160,"props":30915,"children":30916},{"style":1771},[30917],{"type":58,"value":20308},{"type":52,"tag":160,"props":30919,"children":30920},{"style":4181},[30921],{"type":58,"value":11235},{"type":52,"tag":160,"props":30923,"children":30924},{"style":1771},[30925],{"type":58,"value":28397},{"type":52,"tag":160,"props":30927,"children":30928},{"style":4080},[30929],{"type":58,"value":3931},{"type":52,"tag":160,"props":30931,"children":30932},{"style":1771},[30933],{"type":58,"value":28406},{"type":52,"tag":160,"props":30935,"children":30936},{"class":162,"line":24384},[30937,30941,30945],{"type":52,"tag":160,"props":30938,"children":30939},{"style":4181},[30940],{"type":58,"value":18652},{"type":52,"tag":160,"props":30942,"children":30943},{"style":4080},[30944],{"type":58,"value":28418},{"type":52,"tag":160,"props":30946,"children":30947},{"style":4181},[30948],{"type":58,"value":28423},{"type":52,"tag":131,"props":30950,"children":30952},{"id":30951},"run-the-full-pipeline-end-to-end",[30953],{"type":58,"value":30954},"Run the full pipeline end-to-end",{"type":52,"tag":107,"props":30956,"children":30957},{},[30958],{"type":58,"value":30959},"Run the entire pipeline - ingestion, staging, and reports - in one command:",{"type":52,"tag":150,"props":30961,"children":30962},{"className":152,"code":9750,"language":154,"meta":7,"style":7},[30963],{"type":52,"tag":71,"props":30964,"children":30965},{"__ignoreMap":7},[30966],{"type":52,"tag":160,"props":30967,"children":30968},{"class":162,"line":163},[30969,30973,30977,30981,30985,30989,30993],{"type":52,"tag":160,"props":30970,"children":30971},{"style":167},[30972],{"type":58,"value":170},{"type":52,"tag":160,"props":30974,"children":30975},{"style":173},[30976],{"type":58,"value":9766},{"type":52,"tag":160,"props":30978,"children":30979},{"style":1771},[30980],{"type":58,"value":9771},{"type":52,"tag":160,"props":30982,"children":30983},{"style":173},[30984],{"type":58,"value":9776},{"type":52,"tag":160,"props":30986,"children":30987},{"style":1771},[30988],{"type":58,"value":9781},{"type":52,"tag":160,"props":30990,"children":30991},{"style":173},[30992],{"type":58,"value":9786},{"type":52,"tag":160,"props":30994,"children":30995},{"style":173},[30996],{"type":58,"value":5301},{"type":52,"tag":107,"props":30998,"children":30999},{},[31000,31002,31007,31009,31013],{"type":58,"value":31001},"Bruin executes everything in dependency order: ",{"type":52,"tag":1876,"props":31003,"children":31004},{"href":3986},[31005],{"type":58,"value":31006},"ingestor assets",{"type":58,"value":31008}," first, then staging, then reports. ",{"type":52,"tag":1876,"props":31010,"children":31011},{"href":3986},[31012],{"type":58,"value":10026},{"type":58,"value":31014}," run after each asset.",{"type":52,"tag":107,"props":31016,"children":31017},{},[31018],{"type":58,"value":31019},"If your test month looks good, run a full backfill:",{"type":52,"tag":150,"props":31021,"children":31023},{"className":152,"code":31022,"language":154,"meta":7,"style":7},"bruin run --start-date 2024-01-01 --end-date 2025-04-01 .\n",[31024],{"type":52,"tag":71,"props":31025,"children":31026},{"__ignoreMap":7},[31027],{"type":52,"tag":160,"props":31028,"children":31029},{"class":162,"line":163},[31030,31034,31038,31042,31046,31050,31055],{"type":52,"tag":160,"props":31031,"children":31032},{"style":167},[31033],{"type":58,"value":170},{"type":52,"tag":160,"props":31035,"children":31036},{"style":173},[31037],{"type":58,"value":9766},{"type":52,"tag":160,"props":31039,"children":31040},{"style":1771},[31041],{"type":58,"value":9771},{"type":52,"tag":160,"props":31043,"children":31044},{"style":173},[31045],{"type":58,"value":9923},{"type":52,"tag":160,"props":31047,"children":31048},{"style":1771},[31049],{"type":58,"value":9781},{"type":52,"tag":160,"props":31051,"children":31052},{"style":173},[31053],{"type":58,"value":31054}," 2025-04-01",{"type":52,"tag":160,"props":31056,"children":31057},{"style":173},[31058],{"type":58,"value":5301},{"type":52,"tag":107,"props":31060,"children":31061},{},[31062,31064,31070],{"type":58,"value":31063},"You can also use ",{"type":52,"tag":71,"props":31065,"children":31067},{"className":31066},[],[31068],{"type":58,"value":31069},"--full-refresh",{"type":58,"value":31071}," to drop and recreate all tables from scratch if you need a clean slate:",{"type":52,"tag":150,"props":31073,"children":31075},{"className":152,"code":31074,"language":154,"meta":7,"style":7},"bruin run --full-refresh --start-date 2024-01-01 --end-date 2025-04-01 .\n",[31076],{"type":52,"tag":71,"props":31077,"children":31078},{"__ignoreMap":7},[31079],{"type":52,"tag":160,"props":31080,"children":31081},{"class":162,"line":163},[31082,31086,31090,31095,31099,31103,31107,31111],{"type":52,"tag":160,"props":31083,"children":31084},{"style":167},[31085],{"type":58,"value":170},{"type":52,"tag":160,"props":31087,"children":31088},{"style":173},[31089],{"type":58,"value":9766},{"type":52,"tag":160,"props":31091,"children":31092},{"style":1771},[31093],{"type":58,"value":31094}," --full-refresh",{"type":52,"tag":160,"props":31096,"children":31097},{"style":1771},[31098],{"type":58,"value":9771},{"type":52,"tag":160,"props":31100,"children":31101},{"style":173},[31102],{"type":58,"value":9923},{"type":52,"tag":160,"props":31104,"children":31105},{"style":1771},[31106],{"type":58,"value":9781},{"type":52,"tag":160,"props":31108,"children":31109},{"style":173},[31110],{"type":58,"value":31054},{"type":52,"tag":160,"props":31112,"children":31113},{"style":173},[31114],{"type":58,"value":5301},{"type":52,"tag":107,"props":31116,"children":31117},{},[31118],{"type":58,"value":31119},"Validate the full pipeline:",{"type":52,"tag":150,"props":31121,"children":31122},{"className":152,"code":5280,"language":154,"meta":7,"style":7},[31123],{"type":52,"tag":71,"props":31124,"children":31125},{"__ignoreMap":7},[31126],{"type":52,"tag":160,"props":31127,"children":31128},{"class":162,"line":163},[31129,31133,31137],{"type":52,"tag":160,"props":31130,"children":31131},{"style":167},[31132],{"type":58,"value":170},{"type":52,"tag":160,"props":31134,"children":31135},{"style":173},[31136],{"type":58,"value":5296},{"type":52,"tag":160,"props":31138,"children":31139},{"style":173},[31140],{"type":58,"value":5301},{"type":52,"tag":131,"props":31142,"children":31144},{"id":31143},"verify-results-with-claude-code",[31145],{"type":58,"value":31146},"Verify results with Claude Code",{"type":52,"tag":107,"props":31148,"children":31149},{},[31150],{"type":58,"value":31151},"After the pipeline runs, ask Claude Code to spot-check the reports:",{"type":52,"tag":239,"props":31153,"children":31154},{},[31155],{"type":52,"tag":107,"props":31156,"children":31157},{},[31158],{"type":58,"value":31159},"Query reports.rpt_daily_revenue for the last 7 days and show me the results. Does anything look off?",{"type":52,"tag":239,"props":31161,"children":31162},{},[31163],{"type":52,"tag":107,"props":31164,"children":31165},{},[31166],{"type":58,"value":31167},"Check if rpt_customer_cohorts has data for the last 6 months. Show me the retention rate for the most recent cohort.",{"type":52,"tag":239,"props":31169,"children":31170},{},[31171],{"type":52,"tag":107,"props":31172,"children":31173},{},[31174],{"type":58,"value":31175},"Run bruin validate on the project and summarize any quality check failures.",{"type":52,"tag":107,"props":31177,"children":31178},{},[31179],{"type":58,"value":31180},"If a report looks wrong, Claude Code can compare the report output against the staging tables to find the issue:",{"type":52,"tag":239,"props":31182,"children":31183},{},[31184],{"type":52,"tag":107,"props":31185,"children":31186},{},[31187],{"type":58,"value":31188},"The rpt_marketing_roi table shows zero attributed_revenue for Facebook. Query the staging tables to trace where the data is dropping off.",{"type":52,"tag":53,"props":31190,"children":31191},{"id":1999},[31192],{"type":58,"value":2002},{"type":52,"tag":2004,"props":31194,"children":31195},{},[31196,31206,31216,31225],{"type":52,"tag":65,"props":31197,"children":31198},{},[31199,31204],{"type":52,"tag":218,"props":31200,"children":31201},{},[31202],{"type":58,"value":31203},"5 report tables",{"type":58,"value":31205}," that turn clean staging data into business metrics",{"type":52,"tag":65,"props":31207,"children":31208},{},[31209,31214],{"type":52,"tag":218,"props":31210,"children":31211},{},[31212],{"type":58,"value":31213},"Three-layer pipeline:",{"type":58,"value":31215}," ingestion, staging, reports - all orchestrated by Bruin",{"type":52,"tag":65,"props":31217,"children":31218},{},[31219,31223],{"type":52,"tag":218,"props":31220,"children":31221},{},[31222],{"type":58,"value":17905},{"type":58,"value":31224}," make sure reports only run after their staging inputs are fresh",{"type":52,"tag":65,"props":31226,"children":31227},{},[31228,31232],{"type":52,"tag":218,"props":31229,"children":31230},{},[31231],{"type":58,"value":10026},{"type":58,"value":31233}," on every report table catch issues before anyone sees bad numbers",{"type":52,"tag":107,"props":31235,"children":31236},{},[31237],{"type":58,"value":31238},"Next, you'll add an AI layer so anyone on your team can query this data in plain language.",{"type":52,"tag":2059,"props":31240,"children":31241},{},[31242],{"type":58,"value":2063},{"title":7,"searchDepth":281,"depth":281,"links":31244},[31245,31246,31247,31262],{"id":55,"depth":281,"text":59},{"id":102,"depth":281,"text":105},{"id":126,"depth":281,"text":129,"children":31248},[31249,31250,31252,31254,31256,31258,31260,31261],{"id":18041,"depth":290,"text":18044},{"id":18078,"depth":290,"text":31251},"1) Daily revenue - rpt_daily_revenue.sql",{"id":20054,"depth":290,"text":31253},"2) Customer cohorts - rpt_customer_cohorts.sql",{"id":22897,"depth":290,"text":31255},"3) Product performance - rpt_product_performance.sql",{"id":23163,"depth":290,"text":31257},"4) Marketing ROI - rpt_marketing_roi.sql",{"id":27129,"depth":290,"text":31259},"5) Daily KPIs - rpt_daily_kpis.sql",{"id":30951,"depth":290,"text":30954},{"id":31143,"depth":290,"text":31146},{"id":1999,"depth":281,"text":2002},"content:tutorials:ecommerce-pipeline:build-reports.md","tutorials\u002Fecommerce-pipeline\u002Fbuild-reports.md","tutorials\u002Fecommerce-pipeline\u002Fbuild-reports",{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"readingTime":11,"category":12,"tags":31267,"variants":31268,"difficulty":25,"module":5,"subSteps":26,"step":27,"journeys":31269,"learnMore":31270,"author":31275,"body":31276,"_type":266,"_id":2076,"_source":2077,"_file":2078,"_stem":2079,"_extension":2080},[14,15,16,17,18,19,20,21,22,23],[19,20,21],[29,30],[31271,31272,31273,31274],{"label":33,"url":34},{"label":36,"url":37},{"label":39,"url":40},{"label":42,"url":43},{"name":45,"role":46,"image":47},{"type":49,"children":31277,"toc":33033},[31278,31282,31312,31316,31320,31330,31334,31338,31348,31373,31383,31387,31408,31412,31419,31423,32587,32591,32601,32608,32615,32622,32629,32658,32665,32675,32679,32689,32716,32726,32730,32734,32741,32770,32864,32871,32910,32917,32950,32957,32961,32968,32978,32982,33025,33029],{"type":52,"tag":53,"props":31279,"children":31280},{"id":55},[31281],{"type":58,"value":59},{"type":52,"tag":61,"props":31283,"children":31284},{},[31285,31294,31304,31308],{"type":52,"tag":65,"props":31286,"children":31287},{},[31288,31289],{"type":58,"value":69},{"type":52,"tag":71,"props":31290,"children":31292},{"className":31291},[],[31293],{"type":58,"value":76},{"type":52,"tag":65,"props":31295,"children":31296},{},[31297,31298,31303],{"type":58,"value":81},{"type":52,"tag":71,"props":31299,"children":31301},{"className":31300},[],[31302],{"type":58,"value":87},{"type":58,"value":89},{"type":52,"tag":65,"props":31305,"children":31306},{},[31307],{"type":58,"value":94},{"type":52,"tag":65,"props":31309,"children":31310},{},[31311],{"type":58,"value":99},{"type":52,"tag":53,"props":31313,"children":31314},{"id":102},[31315],{"type":58,"value":105},{"type":52,"tag":107,"props":31317,"children":31318},{},[31319],{"type":58,"value":111},{"type":52,"tag":107,"props":31321,"children":31322},{},[31323,31324,31329],{"type":58,"value":116},{"type":52,"tag":71,"props":31325,"children":31327},{"className":31326},[],[31328],{"type":58,"value":87},{"type":58,"value":123},{"type":52,"tag":53,"props":31331,"children":31332},{"id":126},[31333],{"type":58,"value":129},{"type":52,"tag":131,"props":31335,"children":31336},{"id":133},[31337],{"type":58,"value":136},{"type":52,"tag":107,"props":31339,"children":31340},{},[31341,31342,31347],{"type":58,"value":141},{"type":52,"tag":71,"props":31343,"children":31345},{"className":31344},[],[31346],{"type":58,"value":76},{"type":58,"value":148},{"type":52,"tag":150,"props":31349,"children":31350},{"className":152,"code":153,"language":154,"meta":7,"style":7},[31351],{"type":52,"tag":71,"props":31352,"children":31353},{"__ignoreMap":7},[31354],{"type":52,"tag":160,"props":31355,"children":31356},{"class":162,"line":163},[31357,31361,31365,31369],{"type":52,"tag":160,"props":31358,"children":31359},{"style":167},[31360],{"type":58,"value":170},{"type":52,"tag":160,"props":31362,"children":31363},{"style":173},[31364],{"type":58,"value":176},{"type":52,"tag":160,"props":31366,"children":31367},{"style":173},[31368],{"type":58,"value":181},{"type":52,"tag":160,"props":31370,"children":31371},{"style":173},[31372],{"type":58,"value":186},{"type":52,"tag":107,"props":31374,"children":31375},{},[31376,31377,31382],{"type":58,"value":191},{"type":52,"tag":71,"props":31378,"children":31380},{"className":31379},[],[31381],{"type":58,"value":197},{"type":58,"value":199},{"type":52,"tag":131,"props":31384,"children":31385},{"id":202},[31386],{"type":58,"value":205},{"type":52,"tag":107,"props":31388,"children":31389},{},[31390,31391,31396,31397,31401,31402,31407],{"type":58,"value":81},{"type":52,"tag":71,"props":31392,"children":31394},{"className":31393},[],[31395],{"type":58,"value":87},{"type":58,"value":216},{"type":52,"tag":218,"props":31398,"children":31399},{},[31400],{"type":58,"value":222},{"type":58,"value":224},{"type":52,"tag":71,"props":31403,"children":31405},{"className":31404},[],[31406],{"type":58,"value":230},{"type":58,"value":232},{"type":52,"tag":107,"props":31409,"children":31410},{},[31411],{"type":58,"value":237},{"type":52,"tag":239,"props":31413,"children":31414},{},[31415],{"type":52,"tag":107,"props":31416,"children":31417},{},[31418],{"type":58,"value":246},{"type":52,"tag":107,"props":31420,"children":31421},{},[31422],{"type":58,"value":251},{"type":52,"tag":253,"props":31424,"children":31425},{":variants":255,"group":256},[31426,31813,32200],{"type":52,"tag":259,"props":31427,"children":31428},{"v-slot:clickhouse":7},[31429],{"type":52,"tag":150,"props":31430,"children":31431},{"className":264,"code":265,"language":266,"meta":7,"style":7},[31432],{"type":52,"tag":71,"props":31433,"children":31434},{"__ignoreMap":7},[31435,31442,31449,31456,31463,31470,31477,31484,31491,31498,31505,31512,31519,31526,31533,31540,31547,31554,31561,31568,31575,31582,31589,31596,31603,31610,31617,31624,31631,31638,31645,31652,31659,31666,31673,31680,31687,31694,31701,31708,31715,31722,31729,31736,31743,31750,31757,31764,31771,31778,31785,31792,31799,31806],{"type":52,"tag":160,"props":31436,"children":31437},{"class":162,"line":163},[31438],{"type":52,"tag":160,"props":31439,"children":31440},{},[31441],{"type":58,"value":278},{"type":52,"tag":160,"props":31443,"children":31444},{"class":162,"line":281},[31445],{"type":52,"tag":160,"props":31446,"children":31447},{"emptyLinePlaceholder":26},[31448],{"type":58,"value":287},{"type":52,"tag":160,"props":31450,"children":31451},{"class":162,"line":290},[31452],{"type":52,"tag":160,"props":31453,"children":31454},{},[31455],{"type":58,"value":296},{"type":52,"tag":160,"props":31457,"children":31458},{"class":162,"line":299},[31459],{"type":52,"tag":160,"props":31460,"children":31461},{},[31462],{"type":58,"value":305},{"type":52,"tag":160,"props":31464,"children":31465},{"class":162,"line":27},[31466],{"type":52,"tag":160,"props":31467,"children":31468},{},[31469],{"type":58,"value":313},{"type":52,"tag":160,"props":31471,"children":31472},{"class":162,"line":316},[31473],{"type":52,"tag":160,"props":31474,"children":31475},{},[31476],{"type":58,"value":322},{"type":52,"tag":160,"props":31478,"children":31479},{"class":162,"line":325},[31480],{"type":52,"tag":160,"props":31481,"children":31482},{},[31483],{"type":58,"value":331},{"type":52,"tag":160,"props":31485,"children":31486},{"class":162,"line":334},[31487],{"type":52,"tag":160,"props":31488,"children":31489},{},[31490],{"type":58,"value":340},{"type":52,"tag":160,"props":31492,"children":31493},{"class":162,"line":343},[31494],{"type":52,"tag":160,"props":31495,"children":31496},{"emptyLinePlaceholder":26},[31497],{"type":58,"value":287},{"type":52,"tag":160,"props":31499,"children":31500},{"class":162,"line":11},[31501],{"type":52,"tag":160,"props":31502,"children":31503},{},[31504],{"type":58,"value":356},{"type":52,"tag":160,"props":31506,"children":31507},{"class":162,"line":359},[31508],{"type":52,"tag":160,"props":31509,"children":31510},{},[31511],{"type":58,"value":365},{"type":52,"tag":160,"props":31513,"children":31514},{"class":162,"line":368},[31515],{"type":52,"tag":160,"props":31516,"children":31517},{},[31518],{"type":58,"value":374},{"type":52,"tag":160,"props":31520,"children":31521},{"class":162,"line":377},[31522],{"type":52,"tag":160,"props":31523,"children":31524},{},[31525],{"type":58,"value":383},{"type":52,"tag":160,"props":31527,"children":31528},{"class":162,"line":386},[31529],{"type":52,"tag":160,"props":31530,"children":31531},{},[31532],{"type":58,"value":392},{"type":52,"tag":160,"props":31534,"children":31535},{"class":162,"line":395},[31536],{"type":52,"tag":160,"props":31537,"children":31538},{},[31539],{"type":58,"value":401},{"type":52,"tag":160,"props":31541,"children":31542},{"class":162,"line":404},[31543],{"type":52,"tag":160,"props":31544,"children":31545},{},[31546],{"type":58,"value":410},{"type":52,"tag":160,"props":31548,"children":31549},{"class":162,"line":413},[31550],{"type":52,"tag":160,"props":31551,"children":31552},{},[31553],{"type":58,"value":419},{"type":52,"tag":160,"props":31555,"children":31556},{"class":162,"line":422},[31557],{"type":52,"tag":160,"props":31558,"children":31559},{"emptyLinePlaceholder":26},[31560],{"type":58,"value":287},{"type":52,"tag":160,"props":31562,"children":31563},{"class":162,"line":430},[31564],{"type":52,"tag":160,"props":31565,"children":31566},{},[31567],{"type":58,"value":436},{"type":52,"tag":160,"props":31569,"children":31570},{"class":162,"line":439},[31571],{"type":52,"tag":160,"props":31572,"children":31573},{},[31574],{"type":58,"value":445},{"type":52,"tag":160,"props":31576,"children":31577},{"class":162,"line":448},[31578],{"type":52,"tag":160,"props":31579,"children":31580},{},[31581],{"type":58,"value":454},{"type":52,"tag":160,"props":31583,"children":31584},{"class":162,"line":457},[31585],{"type":52,"tag":160,"props":31586,"children":31587},{},[31588],{"type":58,"value":463},{"type":52,"tag":160,"props":31590,"children":31591},{"class":162,"line":466},[31592],{"type":52,"tag":160,"props":31593,"children":31594},{"emptyLinePlaceholder":26},[31595],{"type":58,"value":287},{"type":52,"tag":160,"props":31597,"children":31598},{"class":162,"line":474},[31599],{"type":52,"tag":160,"props":31600,"children":31601},{},[31602],{"type":58,"value":480},{"type":52,"tag":160,"props":31604,"children":31605},{"class":162,"line":483},[31606],{"type":52,"tag":160,"props":31607,"children":31608},{},[31609],{"type":58,"value":489},{"type":52,"tag":160,"props":31611,"children":31612},{"class":162,"line":492},[31613],{"type":52,"tag":160,"props":31614,"children":31615},{},[31616],{"type":58,"value":498},{"type":52,"tag":160,"props":31618,"children":31619},{"class":162,"line":501},[31620],{"type":52,"tag":160,"props":31621,"children":31622},{},[31623],{"type":58,"value":507},{"type":52,"tag":160,"props":31625,"children":31626},{"class":162,"line":510},[31627],{"type":52,"tag":160,"props":31628,"children":31629},{},[31630],{"type":58,"value":516},{"type":52,"tag":160,"props":31632,"children":31633},{"class":162,"line":519},[31634],{"type":52,"tag":160,"props":31635,"children":31636},{},[31637],{"type":58,"value":525},{"type":52,"tag":160,"props":31639,"children":31640},{"class":162,"line":528},[31641],{"type":52,"tag":160,"props":31642,"children":31643},{},[31644],{"type":58,"value":534},{"type":52,"tag":160,"props":31646,"children":31647},{"class":162,"line":537},[31648],{"type":52,"tag":160,"props":31649,"children":31650},{},[31651],{"type":58,"value":543},{"type":52,"tag":160,"props":31653,"children":31654},{"class":162,"line":546},[31655],{"type":52,"tag":160,"props":31656,"children":31657},{},[31658],{"type":58,"value":552},{"type":52,"tag":160,"props":31660,"children":31661},{"class":162,"line":555},[31662],{"type":52,"tag":160,"props":31663,"children":31664},{},[31665],{"type":58,"value":561},{"type":52,"tag":160,"props":31667,"children":31668},{"class":162,"line":564},[31669],{"type":52,"tag":160,"props":31670,"children":31671},{},[31672],{"type":58,"value":570},{"type":52,"tag":160,"props":31674,"children":31675},{"class":162,"line":573},[31676],{"type":52,"tag":160,"props":31677,"children":31678},{},[31679],{"type":58,"value":579},{"type":52,"tag":160,"props":31681,"children":31682},{"class":162,"line":582},[31683],{"type":52,"tag":160,"props":31684,"children":31685},{},[31686],{"type":58,"value":588},{"type":52,"tag":160,"props":31688,"children":31689},{"class":162,"line":591},[31690],{"type":52,"tag":160,"props":31691,"children":31692},{"emptyLinePlaceholder":26},[31693],{"type":58,"value":287},{"type":52,"tag":160,"props":31695,"children":31696},{"class":162,"line":599},[31697],{"type":52,"tag":160,"props":31698,"children":31699},{},[31700],{"type":58,"value":605},{"type":52,"tag":160,"props":31702,"children":31703},{"class":162,"line":608},[31704],{"type":52,"tag":160,"props":31705,"children":31706},{},[31707],{"type":58,"value":614},{"type":52,"tag":160,"props":31709,"children":31710},{"class":162,"line":617},[31711],{"type":52,"tag":160,"props":31712,"children":31713},{},[31714],{"type":58,"value":623},{"type":52,"tag":160,"props":31716,"children":31717},{"class":162,"line":626},[31718],{"type":52,"tag":160,"props":31719,"children":31720},{},[31721],{"type":58,"value":632},{"type":52,"tag":160,"props":31723,"children":31724},{"class":162,"line":635},[31725],{"type":52,"tag":160,"props":31726,"children":31727},{},[31728],{"type":58,"value":641},{"type":52,"tag":160,"props":31730,"children":31731},{"class":162,"line":644},[31732],{"type":52,"tag":160,"props":31733,"children":31734},{},[31735],{"type":58,"value":650},{"type":52,"tag":160,"props":31737,"children":31738},{"class":162,"line":653},[31739],{"type":52,"tag":160,"props":31740,"children":31741},{},[31742],{"type":58,"value":659},{"type":52,"tag":160,"props":31744,"children":31745},{"class":162,"line":662},[31746],{"type":52,"tag":160,"props":31747,"children":31748},{},[31749],{"type":58,"value":668},{"type":52,"tag":160,"props":31751,"children":31752},{"class":162,"line":671},[31753],{"type":52,"tag":160,"props":31754,"children":31755},{},[31756],{"type":58,"value":677},{"type":52,"tag":160,"props":31758,"children":31759},{"class":162,"line":680},[31760],{"type":52,"tag":160,"props":31761,"children":31762},{"emptyLinePlaceholder":26},[31763],{"type":58,"value":287},{"type":52,"tag":160,"props":31765,"children":31766},{"class":162,"line":688},[31767],{"type":52,"tag":160,"props":31768,"children":31769},{},[31770],{"type":58,"value":694},{"type":52,"tag":160,"props":31772,"children":31773},{"class":162,"line":697},[31774],{"type":52,"tag":160,"props":31775,"children":31776},{},[31777],{"type":58,"value":703},{"type":52,"tag":160,"props":31779,"children":31780},{"class":162,"line":706},[31781],{"type":52,"tag":160,"props":31782,"children":31783},{},[31784],{"type":58,"value":712},{"type":52,"tag":160,"props":31786,"children":31787},{"class":162,"line":715},[31788],{"type":52,"tag":160,"props":31789,"children":31790},{},[31791],{"type":58,"value":721},{"type":52,"tag":160,"props":31793,"children":31794},{"class":162,"line":724},[31795],{"type":52,"tag":160,"props":31796,"children":31797},{},[31798],{"type":58,"value":730},{"type":52,"tag":160,"props":31800,"children":31801},{"class":162,"line":733},[31802],{"type":52,"tag":160,"props":31803,"children":31804},{},[31805],{"type":58,"value":739},{"type":52,"tag":160,"props":31807,"children":31808},{"class":162,"line":742},[31809],{"type":52,"tag":160,"props":31810,"children":31811},{},[31812],{"type":58,"value":748},{"type":52,"tag":259,"props":31814,"children":31815},{"v-slot:bigquery":7},[31816],{"type":52,"tag":150,"props":31817,"children":31818},{"className":264,"code":754,"language":266,"meta":7,"style":7},[31819],{"type":52,"tag":71,"props":31820,"children":31821},{"__ignoreMap":7},[31822,31829,31836,31843,31850,31857,31864,31871,31878,31885,31892,31899,31906,31913,31920,31927,31934,31941,31948,31955,31962,31969,31976,31983,31990,31997,32004,32011,32018,32025,32032,32039,32046,32053,32060,32067,32074,32081,32088,32095,32102,32109,32116,32123,32130,32137,32144,32151,32158,32165,32172,32179,32186,32193],{"type":52,"tag":160,"props":31823,"children":31824},{"class":162,"line":163},[31825],{"type":52,"tag":160,"props":31826,"children":31827},{},[31828],{"type":58,"value":278},{"type":52,"tag":160,"props":31830,"children":31831},{"class":162,"line":281},[31832],{"type":52,"tag":160,"props":31833,"children":31834},{"emptyLinePlaceholder":26},[31835],{"type":58,"value":287},{"type":52,"tag":160,"props":31837,"children":31838},{"class":162,"line":290},[31839],{"type":52,"tag":160,"props":31840,"children":31841},{},[31842],{"type":58,"value":296},{"type":52,"tag":160,"props":31844,"children":31845},{"class":162,"line":299},[31846],{"type":52,"tag":160,"props":31847,"children":31848},{},[31849],{"type":58,"value":787},{"type":52,"tag":160,"props":31851,"children":31852},{"class":162,"line":27},[31853],{"type":52,"tag":160,"props":31854,"children":31855},{},[31856],{"type":58,"value":313},{"type":52,"tag":160,"props":31858,"children":31859},{"class":162,"line":316},[31860],{"type":52,"tag":160,"props":31861,"children":31862},{},[31863],{"type":58,"value":322},{"type":52,"tag":160,"props":31865,"children":31866},{"class":162,"line":325},[31867],{"type":52,"tag":160,"props":31868,"children":31869},{},[31870],{"type":58,"value":331},{"type":52,"tag":160,"props":31872,"children":31873},{"class":162,"line":334},[31874],{"type":52,"tag":160,"props":31875,"children":31876},{},[31877],{"type":58,"value":340},{"type":52,"tag":160,"props":31879,"children":31880},{"class":162,"line":343},[31881],{"type":52,"tag":160,"props":31882,"children":31883},{"emptyLinePlaceholder":26},[31884],{"type":58,"value":287},{"type":52,"tag":160,"props":31886,"children":31887},{"class":162,"line":11},[31888],{"type":52,"tag":160,"props":31889,"children":31890},{},[31891],{"type":58,"value":356},{"type":52,"tag":160,"props":31893,"children":31894},{"class":162,"line":359},[31895],{"type":52,"tag":160,"props":31896,"children":31897},{},[31898],{"type":58,"value":365},{"type":52,"tag":160,"props":31900,"children":31901},{"class":162,"line":368},[31902],{"type":52,"tag":160,"props":31903,"children":31904},{},[31905],{"type":58,"value":374},{"type":52,"tag":160,"props":31907,"children":31908},{"class":162,"line":377},[31909],{"type":52,"tag":160,"props":31910,"children":31911},{},[31912],{"type":58,"value":383},{"type":52,"tag":160,"props":31914,"children":31915},{"class":162,"line":386},[31916],{"type":52,"tag":160,"props":31917,"children":31918},{},[31919],{"type":58,"value":392},{"type":52,"tag":160,"props":31921,"children":31922},{"class":162,"line":395},[31923],{"type":52,"tag":160,"props":31924,"children":31925},{},[31926],{"type":58,"value":401},{"type":52,"tag":160,"props":31928,"children":31929},{"class":162,"line":404},[31930],{"type":52,"tag":160,"props":31931,"children":31932},{},[31933],{"type":58,"value":410},{"type":52,"tag":160,"props":31935,"children":31936},{"class":162,"line":413},[31937],{"type":52,"tag":160,"props":31938,"children":31939},{},[31940],{"type":58,"value":419},{"type":52,"tag":160,"props":31942,"children":31943},{"class":162,"line":422},[31944],{"type":52,"tag":160,"props":31945,"children":31946},{"emptyLinePlaceholder":26},[31947],{"type":58,"value":287},{"type":52,"tag":160,"props":31949,"children":31950},{"class":162,"line":430},[31951],{"type":52,"tag":160,"props":31952,"children":31953},{},[31954],{"type":58,"value":436},{"type":52,"tag":160,"props":31956,"children":31957},{"class":162,"line":439},[31958],{"type":52,"tag":160,"props":31959,"children":31960},{},[31961],{"type":58,"value":445},{"type":52,"tag":160,"props":31963,"children":31964},{"class":162,"line":448},[31965],{"type":52,"tag":160,"props":31966,"children":31967},{},[31968],{"type":58,"value":454},{"type":52,"tag":160,"props":31970,"children":31971},{"class":162,"line":457},[31972],{"type":52,"tag":160,"props":31973,"children":31974},{},[31975],{"type":58,"value":463},{"type":52,"tag":160,"props":31977,"children":31978},{"class":162,"line":466},[31979],{"type":52,"tag":160,"props":31980,"children":31981},{"emptyLinePlaceholder":26},[31982],{"type":58,"value":287},{"type":52,"tag":160,"props":31984,"children":31985},{"class":162,"line":474},[31986],{"type":52,"tag":160,"props":31987,"children":31988},{},[31989],{"type":58,"value":480},{"type":52,"tag":160,"props":31991,"children":31992},{"class":162,"line":483},[31993],{"type":52,"tag":160,"props":31994,"children":31995},{},[31996],{"type":58,"value":489},{"type":52,"tag":160,"props":31998,"children":31999},{"class":162,"line":492},[32000],{"type":52,"tag":160,"props":32001,"children":32002},{},[32003],{"type":58,"value":498},{"type":52,"tag":160,"props":32005,"children":32006},{"class":162,"line":501},[32007],{"type":52,"tag":160,"props":32008,"children":32009},{},[32010],{"type":58,"value":507},{"type":52,"tag":160,"props":32012,"children":32013},{"class":162,"line":510},[32014],{"type":52,"tag":160,"props":32015,"children":32016},{},[32017],{"type":58,"value":516},{"type":52,"tag":160,"props":32019,"children":32020},{"class":162,"line":519},[32021],{"type":52,"tag":160,"props":32022,"children":32023},{},[32024],{"type":58,"value":525},{"type":52,"tag":160,"props":32026,"children":32027},{"class":162,"line":528},[32028],{"type":52,"tag":160,"props":32029,"children":32030},{},[32031],{"type":58,"value":534},{"type":52,"tag":160,"props":32033,"children":32034},{"class":162,"line":537},[32035],{"type":52,"tag":160,"props":32036,"children":32037},{},[32038],{"type":58,"value":543},{"type":52,"tag":160,"props":32040,"children":32041},{"class":162,"line":546},[32042],{"type":52,"tag":160,"props":32043,"children":32044},{},[32045],{"type":58,"value":552},{"type":52,"tag":160,"props":32047,"children":32048},{"class":162,"line":555},[32049],{"type":52,"tag":160,"props":32050,"children":32051},{},[32052],{"type":58,"value":561},{"type":52,"tag":160,"props":32054,"children":32055},{"class":162,"line":564},[32056],{"type":52,"tag":160,"props":32057,"children":32058},{},[32059],{"type":58,"value":570},{"type":52,"tag":160,"props":32061,"children":32062},{"class":162,"line":573},[32063],{"type":52,"tag":160,"props":32064,"children":32065},{},[32066],{"type":58,"value":579},{"type":52,"tag":160,"props":32068,"children":32069},{"class":162,"line":582},[32070],{"type":52,"tag":160,"props":32071,"children":32072},{},[32073],{"type":58,"value":588},{"type":52,"tag":160,"props":32075,"children":32076},{"class":162,"line":591},[32077],{"type":52,"tag":160,"props":32078,"children":32079},{"emptyLinePlaceholder":26},[32080],{"type":58,"value":287},{"type":52,"tag":160,"props":32082,"children":32083},{"class":162,"line":599},[32084],{"type":52,"tag":160,"props":32085,"children":32086},{},[32087],{"type":58,"value":605},{"type":52,"tag":160,"props":32089,"children":32090},{"class":162,"line":608},[32091],{"type":52,"tag":160,"props":32092,"children":32093},{},[32094],{"type":58,"value":614},{"type":52,"tag":160,"props":32096,"children":32097},{"class":162,"line":617},[32098],{"type":52,"tag":160,"props":32099,"children":32100},{},[32101],{"type":58,"value":623},{"type":52,"tag":160,"props":32103,"children":32104},{"class":162,"line":626},[32105],{"type":52,"tag":160,"props":32106,"children":32107},{},[32108],{"type":58,"value":632},{"type":52,"tag":160,"props":32110,"children":32111},{"class":162,"line":635},[32112],{"type":52,"tag":160,"props":32113,"children":32114},{},[32115],{"type":58,"value":641},{"type":52,"tag":160,"props":32117,"children":32118},{"class":162,"line":644},[32119],{"type":52,"tag":160,"props":32120,"children":32121},{},[32122],{"type":58,"value":650},{"type":52,"tag":160,"props":32124,"children":32125},{"class":162,"line":653},[32126],{"type":52,"tag":160,"props":32127,"children":32128},{},[32129],{"type":58,"value":659},{"type":52,"tag":160,"props":32131,"children":32132},{"class":162,"line":662},[32133],{"type":52,"tag":160,"props":32134,"children":32135},{},[32136],{"type":58,"value":668},{"type":52,"tag":160,"props":32138,"children":32139},{"class":162,"line":671},[32140],{"type":52,"tag":160,"props":32141,"children":32142},{},[32143],{"type":58,"value":677},{"type":52,"tag":160,"props":32145,"children":32146},{"class":162,"line":680},[32147],{"type":52,"tag":160,"props":32148,"children":32149},{"emptyLinePlaceholder":26},[32150],{"type":58,"value":287},{"type":52,"tag":160,"props":32152,"children":32153},{"class":162,"line":688},[32154],{"type":52,"tag":160,"props":32155,"children":32156},{},[32157],{"type":58,"value":694},{"type":52,"tag":160,"props":32159,"children":32160},{"class":162,"line":697},[32161],{"type":52,"tag":160,"props":32162,"children":32163},{},[32164],{"type":58,"value":703},{"type":52,"tag":160,"props":32166,"children":32167},{"class":162,"line":706},[32168],{"type":52,"tag":160,"props":32169,"children":32170},{},[32171],{"type":58,"value":712},{"type":52,"tag":160,"props":32173,"children":32174},{"class":162,"line":715},[32175],{"type":52,"tag":160,"props":32176,"children":32177},{},[32178],{"type":58,"value":721},{"type":52,"tag":160,"props":32180,"children":32181},{"class":162,"line":724},[32182],{"type":52,"tag":160,"props":32183,"children":32184},{},[32185],{"type":58,"value":730},{"type":52,"tag":160,"props":32187,"children":32188},{"class":162,"line":733},[32189],{"type":52,"tag":160,"props":32190,"children":32191},{},[32192],{"type":58,"value":739},{"type":52,"tag":160,"props":32194,"children":32195},{"class":162,"line":742},[32196],{"type":52,"tag":160,"props":32197,"children":32198},{},[32199],{"type":58,"value":748},{"type":52,"tag":259,"props":32201,"children":32202},{"v-slot:snowflake":7},[32203],{"type":52,"tag":150,"props":32204,"children":32205},{"className":264,"code":1143,"language":266,"meta":7,"style":7},[32206],{"type":52,"tag":71,"props":32207,"children":32208},{"__ignoreMap":7},[32209,32216,32223,32230,32237,32244,32251,32258,32265,32272,32279,32286,32293,32300,32307,32314,32321,32328,32335,32342,32349,32356,32363,32370,32377,32384,32391,32398,32405,32412,32419,32426,32433,32440,32447,32454,32461,32468,32475,32482,32489,32496,32503,32510,32517,32524,32531,32538,32545,32552,32559,32566,32573,32580],{"type":52,"tag":160,"props":32210,"children":32211},{"class":162,"line":163},[32212],{"type":52,"tag":160,"props":32213,"children":32214},{},[32215],{"type":58,"value":278},{"type":52,"tag":160,"props":32217,"children":32218},{"class":162,"line":281},[32219],{"type":52,"tag":160,"props":32220,"children":32221},{"emptyLinePlaceholder":26},[32222],{"type":58,"value":287},{"type":52,"tag":160,"props":32224,"children":32225},{"class":162,"line":290},[32226],{"type":52,"tag":160,"props":32227,"children":32228},{},[32229],{"type":58,"value":296},{"type":52,"tag":160,"props":32231,"children":32232},{"class":162,"line":299},[32233],{"type":52,"tag":160,"props":32234,"children":32235},{},[32236],{"type":58,"value":1176},{"type":52,"tag":160,"props":32238,"children":32239},{"class":162,"line":27},[32240],{"type":52,"tag":160,"props":32241,"children":32242},{},[32243],{"type":58,"value":313},{"type":52,"tag":160,"props":32245,"children":32246},{"class":162,"line":316},[32247],{"type":52,"tag":160,"props":32248,"children":32249},{},[32250],{"type":58,"value":322},{"type":52,"tag":160,"props":32252,"children":32253},{"class":162,"line":325},[32254],{"type":52,"tag":160,"props":32255,"children":32256},{},[32257],{"type":58,"value":331},{"type":52,"tag":160,"props":32259,"children":32260},{"class":162,"line":334},[32261],{"type":52,"tag":160,"props":32262,"children":32263},{},[32264],{"type":58,"value":340},{"type":52,"tag":160,"props":32266,"children":32267},{"class":162,"line":343},[32268],{"type":52,"tag":160,"props":32269,"children":32270},{"emptyLinePlaceholder":26},[32271],{"type":58,"value":287},{"type":52,"tag":160,"props":32273,"children":32274},{"class":162,"line":11},[32275],{"type":52,"tag":160,"props":32276,"children":32277},{},[32278],{"type":58,"value":356},{"type":52,"tag":160,"props":32280,"children":32281},{"class":162,"line":359},[32282],{"type":52,"tag":160,"props":32283,"children":32284},{},[32285],{"type":58,"value":365},{"type":52,"tag":160,"props":32287,"children":32288},{"class":162,"line":368},[32289],{"type":52,"tag":160,"props":32290,"children":32291},{},[32292],{"type":58,"value":374},{"type":52,"tag":160,"props":32294,"children":32295},{"class":162,"line":377},[32296],{"type":52,"tag":160,"props":32297,"children":32298},{},[32299],{"type":58,"value":383},{"type":52,"tag":160,"props":32301,"children":32302},{"class":162,"line":386},[32303],{"type":52,"tag":160,"props":32304,"children":32305},{},[32306],{"type":58,"value":392},{"type":52,"tag":160,"props":32308,"children":32309},{"class":162,"line":395},[32310],{"type":52,"tag":160,"props":32311,"children":32312},{},[32313],{"type":58,"value":401},{"type":52,"tag":160,"props":32315,"children":32316},{"class":162,"line":404},[32317],{"type":52,"tag":160,"props":32318,"children":32319},{},[32320],{"type":58,"value":410},{"type":52,"tag":160,"props":32322,"children":32323},{"class":162,"line":413},[32324],{"type":52,"tag":160,"props":32325,"children":32326},{},[32327],{"type":58,"value":419},{"type":52,"tag":160,"props":32329,"children":32330},{"class":162,"line":422},[32331],{"type":52,"tag":160,"props":32332,"children":32333},{"emptyLinePlaceholder":26},[32334],{"type":58,"value":287},{"type":52,"tag":160,"props":32336,"children":32337},{"class":162,"line":430},[32338],{"type":52,"tag":160,"props":32339,"children":32340},{},[32341],{"type":58,"value":436},{"type":52,"tag":160,"props":32343,"children":32344},{"class":162,"line":439},[32345],{"type":52,"tag":160,"props":32346,"children":32347},{},[32348],{"type":58,"value":445},{"type":52,"tag":160,"props":32350,"children":32351},{"class":162,"line":448},[32352],{"type":52,"tag":160,"props":32353,"children":32354},{},[32355],{"type":58,"value":454},{"type":52,"tag":160,"props":32357,"children":32358},{"class":162,"line":457},[32359],{"type":52,"tag":160,"props":32360,"children":32361},{},[32362],{"type":58,"value":463},{"type":52,"tag":160,"props":32364,"children":32365},{"class":162,"line":466},[32366],{"type":52,"tag":160,"props":32367,"children":32368},{"emptyLinePlaceholder":26},[32369],{"type":58,"value":287},{"type":52,"tag":160,"props":32371,"children":32372},{"class":162,"line":474},[32373],{"type":52,"tag":160,"props":32374,"children":32375},{},[32376],{"type":58,"value":480},{"type":52,"tag":160,"props":32378,"children":32379},{"class":162,"line":483},[32380],{"type":52,"tag":160,"props":32381,"children":32382},{},[32383],{"type":58,"value":489},{"type":52,"tag":160,"props":32385,"children":32386},{"class":162,"line":492},[32387],{"type":52,"tag":160,"props":32388,"children":32389},{},[32390],{"type":58,"value":498},{"type":52,"tag":160,"props":32392,"children":32393},{"class":162,"line":501},[32394],{"type":52,"tag":160,"props":32395,"children":32396},{},[32397],{"type":58,"value":507},{"type":52,"tag":160,"props":32399,"children":32400},{"class":162,"line":510},[32401],{"type":52,"tag":160,"props":32402,"children":32403},{},[32404],{"type":58,"value":516},{"type":52,"tag":160,"props":32406,"children":32407},{"class":162,"line":519},[32408],{"type":52,"tag":160,"props":32409,"children":32410},{},[32411],{"type":58,"value":525},{"type":52,"tag":160,"props":32413,"children":32414},{"class":162,"line":528},[32415],{"type":52,"tag":160,"props":32416,"children":32417},{},[32418],{"type":58,"value":534},{"type":52,"tag":160,"props":32420,"children":32421},{"class":162,"line":537},[32422],{"type":52,"tag":160,"props":32423,"children":32424},{},[32425],{"type":58,"value":543},{"type":52,"tag":160,"props":32427,"children":32428},{"class":162,"line":546},[32429],{"type":52,"tag":160,"props":32430,"children":32431},{},[32432],{"type":58,"value":552},{"type":52,"tag":160,"props":32434,"children":32435},{"class":162,"line":555},[32436],{"type":52,"tag":160,"props":32437,"children":32438},{},[32439],{"type":58,"value":561},{"type":52,"tag":160,"props":32441,"children":32442},{"class":162,"line":564},[32443],{"type":52,"tag":160,"props":32444,"children":32445},{},[32446],{"type":58,"value":570},{"type":52,"tag":160,"props":32448,"children":32449},{"class":162,"line":573},[32450],{"type":52,"tag":160,"props":32451,"children":32452},{},[32453],{"type":58,"value":579},{"type":52,"tag":160,"props":32455,"children":32456},{"class":162,"line":582},[32457],{"type":52,"tag":160,"props":32458,"children":32459},{},[32460],{"type":58,"value":588},{"type":52,"tag":160,"props":32462,"children":32463},{"class":162,"line":591},[32464],{"type":52,"tag":160,"props":32465,"children":32466},{"emptyLinePlaceholder":26},[32467],{"type":58,"value":287},{"type":52,"tag":160,"props":32469,"children":32470},{"class":162,"line":599},[32471],{"type":52,"tag":160,"props":32472,"children":32473},{},[32474],{"type":58,"value":605},{"type":52,"tag":160,"props":32476,"children":32477},{"class":162,"line":608},[32478],{"type":52,"tag":160,"props":32479,"children":32480},{},[32481],{"type":58,"value":614},{"type":52,"tag":160,"props":32483,"children":32484},{"class":162,"line":617},[32485],{"type":52,"tag":160,"props":32486,"children":32487},{},[32488],{"type":58,"value":623},{"type":52,"tag":160,"props":32490,"children":32491},{"class":162,"line":626},[32492],{"type":52,"tag":160,"props":32493,"children":32494},{},[32495],{"type":58,"value":632},{"type":52,"tag":160,"props":32497,"children":32498},{"class":162,"line":635},[32499],{"type":52,"tag":160,"props":32500,"children":32501},{},[32502],{"type":58,"value":641},{"type":52,"tag":160,"props":32504,"children":32505},{"class":162,"line":644},[32506],{"type":52,"tag":160,"props":32507,"children":32508},{},[32509],{"type":58,"value":650},{"type":52,"tag":160,"props":32511,"children":32512},{"class":162,"line":653},[32513],{"type":52,"tag":160,"props":32514,"children":32515},{},[32516],{"type":58,"value":659},{"type":52,"tag":160,"props":32518,"children":32519},{"class":162,"line":662},[32520],{"type":52,"tag":160,"props":32521,"children":32522},{},[32523],{"type":58,"value":668},{"type":52,"tag":160,"props":32525,"children":32526},{"class":162,"line":671},[32527],{"type":52,"tag":160,"props":32528,"children":32529},{},[32530],{"type":58,"value":677},{"type":52,"tag":160,"props":32532,"children":32533},{"class":162,"line":680},[32534],{"type":52,"tag":160,"props":32535,"children":32536},{"emptyLinePlaceholder":26},[32537],{"type":58,"value":287},{"type":52,"tag":160,"props":32539,"children":32540},{"class":162,"line":688},[32541],{"type":52,"tag":160,"props":32542,"children":32543},{},[32544],{"type":58,"value":694},{"type":52,"tag":160,"props":32546,"children":32547},{"class":162,"line":697},[32548],{"type":52,"tag":160,"props":32549,"children":32550},{},[32551],{"type":58,"value":703},{"type":52,"tag":160,"props":32553,"children":32554},{"class":162,"line":706},[32555],{"type":52,"tag":160,"props":32556,"children":32557},{},[32558],{"type":58,"value":712},{"type":52,"tag":160,"props":32560,"children":32561},{"class":162,"line":715},[32562],{"type":52,"tag":160,"props":32563,"children":32564},{},[32565],{"type":58,"value":721},{"type":52,"tag":160,"props":32567,"children":32568},{"class":162,"line":724},[32569],{"type":52,"tag":160,"props":32570,"children":32571},{},[32572],{"type":58,"value":730},{"type":52,"tag":160,"props":32574,"children":32575},{"class":162,"line":733},[32576],{"type":52,"tag":160,"props":32577,"children":32578},{},[32579],{"type":58,"value":739},{"type":52,"tag":160,"props":32581,"children":32582},{"class":162,"line":742},[32583],{"type":52,"tag":160,"props":32584,"children":32585},{},[32586],{"type":58,"value":748},{"type":52,"tag":131,"props":32588,"children":32589},{"id":1529},[32590],{"type":58,"value":1532},{"type":52,"tag":107,"props":32592,"children":32593},{},[32594,32595,32600],{"type":58,"value":1537},{"type":52,"tag":71,"props":32596,"children":32598},{"className":32597},[],[32599],{"type":58,"value":87},{"type":58,"value":1544},{"type":52,"tag":239,"props":32602,"children":32603},{},[32604],{"type":52,"tag":107,"props":32605,"children":32606},{},[32607],{"type":58,"value":1552},{"type":52,"tag":239,"props":32609,"children":32610},{},[32611],{"type":52,"tag":107,"props":32612,"children":32613},{},[32614],{"type":58,"value":1560},{"type":52,"tag":239,"props":32616,"children":32617},{},[32618],{"type":52,"tag":107,"props":32619,"children":32620},{},[32621],{"type":58,"value":1568},{"type":52,"tag":239,"props":32623,"children":32624},{},[32625],{"type":52,"tag":107,"props":32626,"children":32627},{},[32628],{"type":58,"value":1576},{"type":52,"tag":239,"props":32630,"children":32631},{},[32632],{"type":52,"tag":107,"props":32633,"children":32634},{},[32635,32639,32640,32645,32646,32651,32652,32657],{"type":52,"tag":218,"props":32636,"children":32637},{},[32638],{"type":58,"value":1587},{"type":58,"value":1589},{"type":52,"tag":71,"props":32641,"children":32643},{"className":32642},[],[32644],{"type":58,"value":1595},{"type":58,"value":1597},{"type":52,"tag":71,"props":32647,"children":32649},{"className":32648},[],[32650],{"type":58,"value":1603},{"type":58,"value":1605},{"type":52,"tag":71,"props":32653,"children":32655},{"className":32654},[],[32656],{"type":58,"value":1611},{"type":58,"value":1613},{"type":52,"tag":239,"props":32659,"children":32660},{},[32661],{"type":52,"tag":107,"props":32662,"children":32663},{},[32664],{"type":58,"value":1621},{"type":52,"tag":107,"props":32666,"children":32667},{},[32668,32669,32674],{"type":58,"value":1626},{"type":52,"tag":71,"props":32670,"children":32672},{"className":32671},[],[32673],{"type":58,"value":87},{"type":58,"value":1633},{"type":52,"tag":131,"props":32676,"children":32677},{"id":1636},[32678],{"type":58,"value":1639},{"type":52,"tag":107,"props":32680,"children":32681},{},[32682,32683,32688],{"type":58,"value":1644},{"type":52,"tag":71,"props":32684,"children":32686},{"className":32685},[],[32687],{"type":58,"value":87},{"type":58,"value":1651},{"type":52,"tag":150,"props":32690,"children":32691},{"className":264,"code":1654,"language":266,"meta":7,"style":7},[32692],{"type":52,"tag":71,"props":32693,"children":32694},{"__ignoreMap":7},[32695,32702,32709],{"type":52,"tag":160,"props":32696,"children":32697},{"class":162,"line":163},[32698],{"type":52,"tag":160,"props":32699,"children":32700},{},[32701],{"type":58,"value":1666},{"type":52,"tag":160,"props":32703,"children":32704},{"class":162,"line":281},[32705],{"type":52,"tag":160,"props":32706,"children":32707},{},[32708],{"type":58,"value":1674},{"type":52,"tag":160,"props":32710,"children":32711},{"class":162,"line":290},[32712],{"type":52,"tag":160,"props":32713,"children":32714},{},[32715],{"type":58,"value":1682},{"type":52,"tag":107,"props":32717,"children":32718},{},[32719,32720,32725],{"type":58,"value":1687},{"type":52,"tag":71,"props":32721,"children":32723},{"className":32722},[],[32724],{"type":58,"value":87},{"type":58,"value":1694},{"type":52,"tag":131,"props":32727,"children":32728},{"id":1697},[32729],{"type":58,"value":1700},{"type":52,"tag":107,"props":32731,"children":32732},{},[32733],{"type":58,"value":1705},{"type":52,"tag":107,"props":32735,"children":32736},{},[32737],{"type":52,"tag":218,"props":32738,"children":32739},{},[32740],{"type":58,"value":1713},{"type":52,"tag":239,"props":32742,"children":32743},{},[32744],{"type":52,"tag":107,"props":32745,"children":32746},{},[32747,32751,32752,32757,32758,32763,32764,32769],{"type":52,"tag":218,"props":32748,"children":32749},{},[32750],{"type":58,"value":1587},{"type":58,"value":1725},{"type":52,"tag":71,"props":32753,"children":32755},{"className":32754},[],[32756],{"type":58,"value":230},{"type":58,"value":1732},{"type":52,"tag":71,"props":32759,"children":32761},{"className":32760},[],[32762],{"type":58,"value":1738},{"type":58,"value":1740},{"type":52,"tag":71,"props":32765,"children":32767},{"className":32766},[],[32768],{"type":58,"value":1746},{"type":58,"value":1748},{"type":52,"tag":150,"props":32771,"children":32772},{"className":152,"code":1751,"language":154,"meta":7,"style":7},[32773],{"type":52,"tag":71,"props":32774,"children":32775},{"__ignoreMap":7},[32776,32799,32818,32841],{"type":52,"tag":160,"props":32777,"children":32778},{"class":162,"line":163},[32779,32783,32787,32791,32795],{"type":52,"tag":160,"props":32780,"children":32781},{"style":167},[32782],{"type":58,"value":1763},{"type":52,"tag":160,"props":32784,"children":32785},{"style":173},[32786],{"type":58,"value":1768},{"type":52,"tag":160,"props":32788,"children":32789},{"style":1771},[32790],{"type":58,"value":1774},{"type":52,"tag":160,"props":32792,"children":32793},{"style":1771},[32794],{"type":58,"value":1779},{"type":52,"tag":160,"props":32796,"children":32797},{"style":173},[32798],{"type":58,"value":1784},{"type":52,"tag":160,"props":32800,"children":32801},{"class":162,"line":281},[32802,32806,32810,32814],{"type":52,"tag":160,"props":32803,"children":32804},{"style":167},[32805],{"type":58,"value":1763},{"type":52,"tag":160,"props":32807,"children":32808},{"style":173},[32809],{"type":58,"value":1796},{"type":52,"tag":160,"props":32811,"children":32812},{"style":1771},[32813],{"type":58,"value":1801},{"type":52,"tag":160,"props":32815,"children":32816},{"style":173},[32817],{"type":58,"value":1806},{"type":52,"tag":160,"props":32819,"children":32820},{"class":162,"line":290},[32821,32825,32829,32833,32837],{"type":52,"tag":160,"props":32822,"children":32823},{"style":167},[32824],{"type":58,"value":1763},{"type":52,"tag":160,"props":32826,"children":32827},{"style":173},[32828],{"type":58,"value":1818},{"type":52,"tag":160,"props":32830,"children":32831},{"style":173},[32832],{"type":58,"value":1768},{"type":52,"tag":160,"props":32834,"children":32835},{"style":173},[32836],{"type":58,"value":1827},{"type":52,"tag":160,"props":32838,"children":32839},{"style":173},[32840],{"type":58,"value":1832},{"type":52,"tag":160,"props":32842,"children":32843},{"class":162,"line":299},[32844,32848,32852,32856,32860],{"type":52,"tag":160,"props":32845,"children":32846},{"style":167},[32847],{"type":58,"value":1763},{"type":52,"tag":160,"props":32849,"children":32850},{"style":173},[32851],{"type":58,"value":1844},{"type":52,"tag":160,"props":32853,"children":32854},{"style":1771},[32855],{"type":58,"value":1849},{"type":52,"tag":160,"props":32857,"children":32858},{"style":173},[32859],{"type":58,"value":1827},{"type":52,"tag":160,"props":32861,"children":32862},{"style":173},[32863],{"type":58,"value":1858},{"type":52,"tag":107,"props":32865,"children":32866},{},[32867],{"type":52,"tag":218,"props":32868,"children":32869},{},[32870],{"type":58,"value":1866},{"type":52,"tag":61,"props":32872,"children":32873},{},[32874,32888,32892,32902,32906],{"type":52,"tag":65,"props":32875,"children":32876},{},[32877,32878,32883,32884],{"type":58,"value":1874},{"type":52,"tag":1876,"props":32879,"children":32881},{"href":1878,"rel":32880},[1880],[32882],{"type":58,"value":17},{"type":58,"value":1884},{"type":52,"tag":218,"props":32885,"children":32886},{},[32887],{"type":58,"value":1889},{"type":52,"tag":65,"props":32889,"children":32890},{},[32891],{"type":58,"value":1894},{"type":52,"tag":65,"props":32893,"children":32894},{},[32895,32896,32901],{"type":58,"value":1899},{"type":52,"tag":71,"props":32897,"children":32899},{"className":32898},[],[32900],{"type":58,"value":1905},{"type":58,"value":1907},{"type":52,"tag":65,"props":32903,"children":32904},{},[32905],{"type":58,"value":1912},{"type":52,"tag":65,"props":32907,"children":32908},{},[32909],{"type":58,"value":1917},{"type":52,"tag":107,"props":32911,"children":32912},{},[32913],{"type":52,"tag":218,"props":32914,"children":32915},{},[32916],{"type":58,"value":1925},{"type":52,"tag":61,"props":32918,"children":32919},{},[32920,32928,32938,32942,32946],{"type":52,"tag":65,"props":32921,"children":32922},{},[32923,32924],{"type":58,"value":1874},{"type":52,"tag":218,"props":32925,"children":32926},{},[32927],{"type":58,"value":1937},{"type":52,"tag":65,"props":32929,"children":32930},{},[32931,32932,32937],{"type":58,"value":1942},{"type":52,"tag":71,"props":32933,"children":32935},{"className":32934},[],[32936],{"type":58,"value":1905},{"type":58,"value":1907},{"type":52,"tag":65,"props":32939,"children":32940},{},[32941],{"type":58,"value":1953},{"type":52,"tag":65,"props":32943,"children":32944},{},[32945],{"type":58,"value":1958},{"type":52,"tag":65,"props":32947,"children":32948},{},[32949],{"type":58,"value":1963},{"type":52,"tag":107,"props":32951,"children":32952},{},[32953],{"type":52,"tag":218,"props":32954,"children":32955},{},[32956],{"type":58,"value":1971},{"type":52,"tag":107,"props":32958,"children":32959},{},[32960],{"type":58,"value":1976},{"type":52,"tag":239,"props":32962,"children":32963},{},[32964],{"type":52,"tag":107,"props":32965,"children":32966},{},[32967],{"type":58,"value":1984},{"type":52,"tag":107,"props":32969,"children":32970},{},[32971,32972,32977],{"type":58,"value":1989},{"type":52,"tag":71,"props":32973,"children":32975},{"className":32974},[],[32976],{"type":58,"value":87},{"type":58,"value":1996},{"type":52,"tag":53,"props":32979,"children":32980},{"id":1999},[32981],{"type":58,"value":2002},{"type":52,"tag":2004,"props":32983,"children":32984},{},[32985,32997,33009,33017],{"type":52,"tag":65,"props":32986,"children":32987},{},[32988,32996],{"type":52,"tag":218,"props":32989,"children":32990},{},[32991],{"type":52,"tag":71,"props":32992,"children":32994},{"className":32993},[],[32995],{"type":58,"value":76},{"type":58,"value":2019},{"type":52,"tag":65,"props":32998,"children":32999},{},[33000,33008],{"type":52,"tag":218,"props":33001,"children":33002},{},[33003],{"type":52,"tag":71,"props":33004,"children":33006},{"className":33005},[],[33007],{"type":58,"value":87},{"type":58,"value":2032},{"type":52,"tag":65,"props":33010,"children":33011},{},[33012,33016],{"type":52,"tag":218,"props":33013,"children":33014},{},[33015],{"type":58,"value":2040},{"type":58,"value":2042},{"type":52,"tag":65,"props":33018,"children":33019},{},[33020,33024],{"type":52,"tag":218,"props":33021,"children":33022},{},[33023],{"type":58,"value":2050},{"type":58,"value":2052},{"type":52,"tag":107,"props":33026,"children":33027},{},[33028],{"type":58,"value":2057},{"type":52,"tag":2059,"props":33030,"children":33031},{},[33032],{"type":58,"value":2063},{"title":7,"searchDepth":281,"depth":281,"links":33034},[33035,33036,33037,33044],{"id":55,"depth":281,"text":59},{"id":102,"depth":281,"text":105},{"id":126,"depth":281,"text":129,"children":33038},[33039,33040,33041,33042,33043],{"id":133,"depth":290,"text":136},{"id":202,"depth":290,"text":205},{"id":1529,"depth":290,"text":1532},{"id":1636,"depth":290,"text":1639},{"id":1697,"depth":290,"text":1700},{"id":1999,"depth":281,"text":2002},{"_path":33046,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":33047,"description":33048,"date":10,"readingTime":27,"category":12,"tags":33049,"difficulty":3866,"module":5,"subSteps":26,"step":316,"journeys":33051,"learnMore":33052,"author":33059,"body":33060,"_type":266,"_id":33489,"_source":2077,"_file":33490,"_stem":33491,"_extension":2080},"\u002Ftutorials\u002Fecommerce-pipeline\u002Fdashboards","Build Ecommerce Dashboards","Use the Bruin Cloud AI agent to generate interactive ecommerce dashboards - revenue trends, customer cohorts, marketing ROI, and product performance - from natural language.",[17,16,33050,23],"Dashboards",[29,30],[33053,33056],{"label":33054,"url":33055},"AI Dashboard Builder tutorial","\u002Flearn\u002Fbruin-dashboards",{"label":33057,"url":33058},"Bruin Cloud overview","https:\u002F\u002Fgetbruin.com\u002Fdocs\u002Fbruin\u002Fcloud\u002Foverview.html",{"name":45,"role":46,"image":47},{"type":49,"children":33061,"toc":33475},[33062,33066,33071,33075,33080,33092,33096,33102,33113,33119,33124,33132,33145,33151,33155,33163,33176,33182,33186,33194,33207,33213,33217,33225,33238,33244,33249,33284,33289,33293,33298,33341,33344,33350,33355,33418,33430,33438],{"type":52,"tag":53,"props":33063,"children":33064},{"id":55},[33065],{"type":58,"value":59},{"type":52,"tag":107,"props":33067,"children":33068},{},[33069],{"type":58,"value":33070},"Use the Bruin Cloud AI Dashboard Builder to create four ecommerce dashboards from natural language prompts. No SQL, no chart configuration - just describe what you want to see.",{"type":52,"tag":53,"props":33072,"children":33073},{"id":102},[33074],{"type":58,"value":105},{"type":52,"tag":107,"props":33076,"children":33077},{},[33078],{"type":58,"value":33079},"Reports in a database are useful for analysts, but most people want dashboards. A founder wants to check revenue trends. A marketing manager wants ROAS by channel. A product lead wants to know which SKUs are underperforming.",{"type":52,"tag":107,"props":33081,"children":33082},{},[33083,33085,33090],{"type":58,"value":33084},"The AI Dashboard Builder creates charts from your report tables based on what you ask for. It reads your ",{"type":52,"tag":71,"props":33086,"children":33088},{"className":33087},[],[33089],{"type":58,"value":87},{"type":58,"value":33091}," context, so it uses the right metrics and definitions.",{"type":52,"tag":53,"props":33093,"children":33094},{"id":126},[33095],{"type":58,"value":129},{"type":52,"tag":131,"props":33097,"children":33099},{"id":33098},"_1-open-the-dashboards-page",[33100],{"type":58,"value":33101},"1) Open the Dashboards page",{"type":52,"tag":107,"props":33103,"children":33104},{},[33105,33107,33111],{"type":58,"value":33106},"Go to the ",{"type":52,"tag":218,"props":33108,"children":33109},{},[33110],{"type":58,"value":33050},{"type":58,"value":33112}," section in Bruin Cloud. Make sure your pipeline has run at least once so the report tables have data.",{"type":52,"tag":131,"props":33114,"children":33116},{"id":33115},"_2-executive-kpis-dashboard",[33117],{"type":58,"value":33118},"2) Executive KPIs dashboard",{"type":52,"tag":107,"props":33120,"children":33121},{},[33122],{"type":58,"value":33123},"Ask the AI agent:",{"type":52,"tag":239,"props":33125,"children":33126},{},[33127],{"type":52,"tag":107,"props":33128,"children":33129},{},[33130],{"type":58,"value":33131},"Build an executive dashboard showing daily revenue, order count, AOV, and new vs returning customers for the last 30 days with week-over-week comparison.",{"type":52,"tag":107,"props":33133,"children":33134},{},[33135,33137,33143],{"type":58,"value":33136},"The agent generates SQL against your ",{"type":52,"tag":71,"props":33138,"children":33140},{"className":33139},[],[33141],{"type":58,"value":33142},"reports.rpt_daily_kpis",{"type":58,"value":33144}," table and creates line charts, KPI cards, and comparison metrics.",{"type":52,"tag":131,"props":33146,"children":33148},{"id":33147},"_3-marketing-performance-dashboard",[33149],{"type":58,"value":33150},"3) Marketing performance dashboard",{"type":52,"tag":107,"props":33152,"children":33153},{},[33154],{"type":58,"value":33123},{"type":52,"tag":239,"props":33156,"children":33157},{},[33158],{"type":52,"tag":107,"props":33159,"children":33160},{},[33161],{"type":58,"value":33162},"Show me marketing performance by channel - ROAS, spend, and attributed revenue for Facebook Ads and email, with a trend chart for the last 90 days.",{"type":52,"tag":107,"props":33164,"children":33165},{},[33166,33168,33174],{"type":58,"value":33167},"This pulls from ",{"type":52,"tag":71,"props":33169,"children":33171},{"className":33170},[],[33172],{"type":58,"value":33173},"reports.rpt_marketing_roi",{"type":58,"value":33175}," and creates a multi-channel comparison with spend efficiency metrics.",{"type":52,"tag":131,"props":33177,"children":33179},{"id":33178},"_4-customer-cohorts-dashboard",[33180],{"type":58,"value":33181},"4) Customer cohorts dashboard",{"type":52,"tag":107,"props":33183,"children":33184},{},[33185],{"type":58,"value":33123},{"type":52,"tag":239,"props":33187,"children":33188},{},[33189],{"type":52,"tag":107,"props":33190,"children":33191},{},[33192],{"type":58,"value":33193},"Create a cohort retention chart showing monthly customer retention rates for the last 6 cohorts, plus lifetime value by cohort.",{"type":52,"tag":107,"props":33195,"children":33196},{},[33197,33199,33205],{"type":58,"value":33198},"This uses ",{"type":52,"tag":71,"props":33200,"children":33202},{"className":33201},[],[33203],{"type":58,"value":33204},"reports.rpt_customer_cohorts",{"type":58,"value":33206}," to build a retention heatmap and LTV trend.",{"type":52,"tag":131,"props":33208,"children":33210},{"id":33209},"_5-product-performance-dashboard",[33211],{"type":58,"value":33212},"5) Product performance dashboard",{"type":52,"tag":107,"props":33214,"children":33215},{},[33216],{"type":58,"value":33123},{"type":52,"tag":239,"props":33218,"children":33219},{},[33220],{"type":52,"tag":107,"props":33221,"children":33222},{},[33223],{"type":58,"value":33224},"Show top 20 products by revenue with their cancellation rate, and a category-level revenue breakdown.",{"type":52,"tag":107,"props":33226,"children":33227},{},[33228,33230,33236],{"type":58,"value":33229},"This queries ",{"type":52,"tag":71,"props":33231,"children":33233},{"className":33232},[],[33234],{"type":58,"value":33235},"reports.rpt_product_performance",{"type":58,"value":33237}," to create a ranked product table and a category breakdown chart.",{"type":52,"tag":131,"props":33239,"children":33241},{"id":33240},"_6-iterate-and-ask-questions",[33242],{"type":58,"value":33243},"6) Iterate and ask questions",{"type":52,"tag":107,"props":33245,"children":33246},{},[33247],{"type":58,"value":33248},"The AI agent is conversational. You can refine any dashboard:",{"type":52,"tag":2004,"props":33250,"children":33251},{},[33252,33262,33274],{"type":52,"tag":65,"props":33253,"children":33254},{},[33255,33257],{"type":58,"value":33256},"Click on a chart to bring it into context, then ask: ",{"type":52,"tag":4830,"props":33258,"children":33259},{},[33260],{"type":58,"value":33261},"\"Change this to a bar chart instead\"",{"type":52,"tag":65,"props":33263,"children":33264},{},[33265,33267,33272],{"type":58,"value":33266},"Ask follow-up questions: ",{"type":52,"tag":4830,"props":33268,"children":33269},{},[33270],{"type":58,"value":33271},"\"Why did revenue dip last Tuesday?\"",{"type":58,"value":33273}," - the agent analyzes the data instead of building another chart",{"type":52,"tag":65,"props":33275,"children":33276},{},[33277,33279],{"type":58,"value":33278},"Add new charts: ",{"type":52,"tag":4830,"props":33280,"children":33281},{},[33282],{"type":58,"value":33283},"\"Add a chart showing refund rate by product category\"",{"type":52,"tag":107,"props":33285,"children":33286},{},[33287],{"type":58,"value":33288},"Every chart is backed by a visible SQL query you can inspect and verify.",{"type":52,"tag":53,"props":33290,"children":33291},{"id":1999},[33292],{"type":58,"value":2002},{"type":52,"tag":107,"props":33294,"children":33295},{},[33296],{"type":58,"value":33297},"You now have four interactive ecommerce dashboards that update as your pipeline runs daily:",{"type":52,"tag":61,"props":33299,"children":33300},{},[33301,33311,33321,33331],{"type":52,"tag":65,"props":33302,"children":33303},{},[33304,33309],{"type":52,"tag":218,"props":33305,"children":33306},{},[33307],{"type":58,"value":33308},"Executive KPIs",{"type":58,"value":33310}," - daily revenue, orders, AOV, customer mix",{"type":52,"tag":65,"props":33312,"children":33313},{},[33314,33319],{"type":52,"tag":218,"props":33315,"children":33316},{},[33317],{"type":58,"value":33318},"Marketing Performance",{"type":58,"value":33320}," - spend, ROAS, and revenue by channel",{"type":52,"tag":65,"props":33322,"children":33323},{},[33324,33329],{"type":52,"tag":218,"props":33325,"children":33326},{},[33327],{"type":58,"value":33328},"Customer Cohorts",{"type":58,"value":33330}," - retention rates and LTV by cohort",{"type":52,"tag":65,"props":33332,"children":33333},{},[33334,33339],{"type":52,"tag":218,"props":33335,"children":33336},{},[33337],{"type":58,"value":33338},"Product Performance",{"type":58,"value":33340}," - top products and category breakdown",{"type":52,"tag":5605,"props":33342,"children":33343},{},[],{"type":52,"tag":53,"props":33345,"children":33347},{"id":33346},"thats-the-full-stack",[33348],{"type":58,"value":33349},"That's the full stack",{"type":52,"tag":107,"props":33351,"children":33352},{},[33353],{"type":58,"value":33354},"Over the course of this module, you built:",{"type":52,"tag":2004,"props":33356,"children":33357},{},[33358,33368,33378,33388,33398,33408],{"type":52,"tag":65,"props":33359,"children":33360},{},[33361,33366],{"type":52,"tag":218,"props":33362,"children":33363},{},[33364],{"type":58,"value":33365},"Data ingestion",{"type":58,"value":33367}," from 5 SaaS sources (Shopify and your selected tools) into your data warehouse",{"type":52,"tag":65,"props":33369,"children":33370},{},[33371,33376],{"type":52,"tag":218,"props":33372,"children":33373},{},[33374],{"type":58,"value":33375},"A staging layer",{"type":58,"value":33377}," that cleans, deduplicates, and joins data across all sources",{"type":52,"tag":65,"props":33379,"children":33380},{},[33381,33386],{"type":52,"tag":218,"props":33382,"children":33383},{},[33384],{"type":58,"value":33385},"Business reports",{"type":58,"value":33387}," for revenue, cohorts, products, marketing ROI, and daily KPIs",{"type":52,"tag":65,"props":33389,"children":33390},{},[33391,33396],{"type":52,"tag":218,"props":33392,"children":33393},{},[33394],{"type":58,"value":33395},"A local AI analyst",{"type":58,"value":33397}," that answers questions through Bruin MCP",{"type":52,"tag":65,"props":33399,"children":33400},{},[33401,33406],{"type":52,"tag":218,"props":33402,"children":33403},{},[33404],{"type":58,"value":33405},"A cloud AI analyst",{"type":58,"value":33407}," your team can talk to in Slack or Teams",{"type":52,"tag":65,"props":33409,"children":33410},{},[33411,33416],{"type":52,"tag":218,"props":33412,"children":33413},{},[33414],{"type":58,"value":33415},"Interactive dashboards",{"type":58,"value":33417}," built from natural language in Bruin Cloud",{"type":52,"tag":107,"props":33419,"children":33420},{},[33421,33423,33428],{"type":58,"value":33422},"The pipeline runs daily on schedule. Your team can ask questions without writing SQL. And the ",{"type":52,"tag":71,"props":33424,"children":33426},{"className":33425},[],[33427],{"type":58,"value":87},{"type":58,"value":33429}," file improves every time you add to it.",{"type":52,"tag":107,"props":33431,"children":33432},{},[33433],{"type":52,"tag":218,"props":33434,"children":33435},{},[33436],{"type":58,"value":33437},"Where to go from here:",{"type":52,"tag":2004,"props":33439,"children":33440},{},[33441,33446,33458,33463],{"type":52,"tag":65,"props":33442,"children":33443},{},[33444],{"type":58,"value":33445},"Add more data sources as your stack grows",{"type":52,"tag":65,"props":33447,"children":33448},{},[33449,33451,33456],{"type":58,"value":33450},"Add new terms and caveats to ",{"type":52,"tag":71,"props":33452,"children":33454},{"className":33453},[],[33455],{"type":58,"value":87},{"type":58,"value":33457}," as you discover them",{"type":52,"tag":65,"props":33459,"children":33460},{},[33461],{"type":58,"value":33462},"Build additional dashboards for specific teams (marketing, ops, finance)",{"type":52,"tag":65,"props":33464,"children":33465},{},[33466,33468,33473],{"type":58,"value":33467},"Check out the ",{"type":52,"tag":1876,"props":33469,"children":33470},{"href":3963},[33471],{"type":58,"value":33472},"Bruin Core Concepts",{"type":58,"value":33474}," module if you want to go deeper on pipelines, assets, and variables",{"title":7,"searchDepth":281,"depth":281,"links":33476},[33477,33478,33479,33487,33488],{"id":55,"depth":281,"text":59},{"id":102,"depth":281,"text":105},{"id":126,"depth":281,"text":129,"children":33480},[33481,33482,33483,33484,33485,33486],{"id":33098,"depth":290,"text":33101},{"id":33115,"depth":290,"text":33118},{"id":33147,"depth":290,"text":33150},{"id":33178,"depth":290,"text":33181},{"id":33209,"depth":290,"text":33212},{"id":33240,"depth":290,"text":33243},{"id":1999,"depth":281,"text":2002},{"id":33346,"depth":281,"text":33349},"content:tutorials:ecommerce-pipeline:dashboards.md","tutorials\u002Fecommerce-pipeline\u002Fdashboards.md","tutorials\u002Fecommerce-pipeline\u002Fdashboards",1776143482640]