r/snowflake • • 23h ago

Multiplayer AI Example Snowflake Runtime App

11 Upvotes

Built this Multiplayer AI app where you can collaborate with an agent and your teammates in the same workspace to edit docs, slides, access your data, and create html reports with a shared chat too.

Super fun to build and think it looks really cool. Based it off my teammate Gilberto's previous AI Canvas (like a chatroom)

Fun application of using the CoCo SDK and Snowflake App Runtime for what's possible. Maybe it can even be useful to some folks ๐Ÿ˜ธ

Repo https://github.com/sfc-gh-lhartzell/agent-canvas-plus


r/snowflake • • 11h ago

Even in the AI era, itโ€™s hard to design a UI this bad: My Snowflake Business Ontology Preview experience.

5 Upvotes

I opened the preview of the Business Ontology feature in Snowflake and tried using it, and it was truly the worst experience...

I created the ontology business definitions using Cortex Code, but when I moved to the Graph tab, I saw the absolute worst UI. In this age of AI, I don't think anyone could build something like that even if they tried. Please, Snowflake product team, pay attention to the UI.


r/snowflake • • 4h ago

How to design a Snowflake data warehouse for a retail business with multiple sources of data?

3 Upvotes

I am working on a project in which the data is coming from various sources I e Shopify, Salesforce, SAP/ oracle inventory systems and from customer loyalty platforms.

Would like to know how can I approach this in snowflake.

Few pointers I do have in mind that could be helped with-

1.Snowpipe or scheduled ingestion?

2.How would you structure the data layers?

dbt, Dynamic Tables, or Streams and Tasks for transformations?

3.How would you handle schema changes and late-arriving data?

4.Any tips for performance and cost optimization?

Please do let me know if anyone had worked on something similar and how it resulted?


r/snowflake • • 4h ago

Break-even math for Snowflake 2026 billing (Gen2 1.35x/1.25x, Adaptive NULL attribution trap, Optima 0.007 cr/GB) + read-only SQL

3 Upvotes

I've been digging into Snowflake's ACCOUNT_USAGE views lately while building a local FinOps tool (SnowAudit), and a few recent billing changes keep breaking standard cost-monitoring queries.

Figured I'd share the four gotchas that caught me off guard, plus the read-only SQL to check for them:

Gen2 is now the default on CREATE WAREHOUSE : If you don't explicitly pass GENERATION in a Gen2-enabled region, you get GENERATION = '2' automatically (1.35x credits on AWS/GCP, 1.25x on Azure). Great if you have DML-heavy workloads that speed up by more than 26%. If it's a SELECT-heavy BI warehouse that barely gets faster, you're just eating a flat 25-35% markup.

Adaptive Warehouses break idle-waste queries: Per the docs, CREDITS_ATTRIBUTED_COMPUTE_QUERIES is always NULL on Adaptive Warehouses. If your monitoring does CREDITS_USED_COMPUTE - COALESCE(CREDITS_ATTRIBUTED_COMPUTE_QUERIES, 0), it's going to flag Adaptive (or mid-month migrated) warehouses as 100% idle waste.

Also, before migrating a standard warehouse to Adaptive, it's worth checking your break-even multiplier (m* = total_compute_credits / attributed_query_credits) against your query duration split (<60s vs >=60s). High-idle ad-hoc warehouses (e.g., 55% idle, m* = 2.22) usually come out ahead; low-idle BI warehouses (19% idle, m* = 1.235, 88% <60s) can end up costing more.

Optima Clustering (VERSION = 'OPTIMA'): Since Sept 1, 2026, newly clustered tables bill 0.007 credits * uncompressed GB ingested * overlap_factor. If you have clustering keys sitting on tables that barely get queried, AUTOMATIC_CLUSTERING_HISTORY will show you the exact burn under VERSION = 'OPTIMA'.

Cloud Services >10% adjustment: WAREHOUSE_METERING_HISTORY only gives you gross Cloud Services usage. To see CREDITS_ADJUSTMENT_CLOUD_SERVICES and what you actually got billed, you have to query METERING_DAILY_HISTORY in UTC.

Here's the minimal read-only SQL to check the warehouse/Adaptive guard and net Cloud Services (needs SNOWFLAKE.USAGE_VIEWER; if you also pull QUERY_HISTORY, you'll need GOVERNANCE_VIEWER, and I aggregate by QUERY_PARAMETERIZED_HASH so no query text, literals, or usernames leave the account):

ALTER SESSION SET TIMEZONE = 'UTC';

-- 1. Warehouse metering + NULL attribution detector (Adaptive guard)
SELECT DATE_TRUNC('DAY', START_TIME)::DATE AS USAGE_DATE_UTC, WAREHOUSE_NAME,
       COUNT(*) AS TOTAL_HOURS,
       COUNT_IF(CREDITS_ATTRIBUTED_COMPUTE_QUERIES IS NULL) AS NULL_ATTRIBUTED_HOURS,
       ROUND(SUM(CREDITS_USED_COMPUTE), 6) AS CREDITS_USED_COMPUTE,
       CASE WHEN COUNT_IF(CREDITS_ATTRIBUTED_COMPUTE_QUERIES IS NOT NULL) = 0 THEN NULL
            ELSE ROUND(SUM(CREDITS_ATTRIBUTED_COMPUTE_QUERIES), 6) END AS CREDITS_ATTRIBUTED_COMPUTE_QUERIES
FROM SNOWFLAKE.ACCOUNT_USAGE.WAREHOUSE_METERING_HISTORY
WHERE START_TIME >= DATEADD('DAY', -30, DATE_TRUNC('DAY', CURRENT_TIMESTAMP()))
  AND END_TIME   <= DATE_TRUNC('DAY', CURRENT_TIMESTAMP())
GROUP BY 1, 2 ORDER BY 1, 2;

-- 2. Daily Cloud Services net adjustment (UTC)
SELECT USAGE_DATE, SERVICE_TYPE, CREDITS_USED_COMPUTE, CREDITS_USED_CLOUD_SERVICES,
       CREDITS_ADJUSTMENT_CLOUD_SERVICES, CREDITS_BILLED
FROM SNOWFLAKE.ACCOUNT_USAGE.METERING_DAILY_HISTORY
WHERE USAGE_DATE >= DATEADD('DAY', -30, CURRENT_DATE()) AND USAGE_DATE < CURRENT_DATE()
ORDER BY USAGE_DATE, SERVICE_TYPE;

Everything above works standalone. If you want the full 6-CSV extraction script and the offline report generator I built around this (no warehouse credentials needed), it's up at snowaudit.pages.dev. Curious if anyone else has been burned by the Gen2 default or the Adaptive NULL behavior yet.