# The Missing AI Layer in Your Iceberg Lakehouse

DevFeed: [The Missing AI Layer in Your Iceberg Lakehouse](<https://devfeed.tech/articles/the-missing-ai-layer-in-your-iceberg-lakehouse-109292.md>)

Original publisher: [Read original article](<https://medium.com/snowflake/the-missing-ai-layer-in-your-iceberg-lakehouse-19a4b4bf8a94?source=rss----34b6daafc07---4>)

Author: Vinod S

Published: 2026-10-30T17:01:04Z

Content type: tutorial

Language: en

Sources: [Snowflake Builders](<https://devfeed.tech/sources/snowflake-builders.md>)

Topics: [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>), [Apache Iceberg](<https://devfeed.tech/topics/apache-iceberg.md>), [elt](<https://devfeed.tech/topics/elt.md>), [Synthetic Data Generation](<https://devfeed.tech/topics/synthetic-data-generation.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [apache-iceberg](<https://devfeed.tech/tags/apache-iceberg.md>), [build](<https://devfeed.tech/tags/build.md>), [building](<https://devfeed.tech/tags/building.md>), [builds](<https://devfeed.tech/tags/builds.md>), [business](<https://devfeed.tech/tags/business.md>), [call](<https://devfeed.tech/tags/call.md>), [can](<https://devfeed.tech/tags/can.md>), [catalog](<https://devfeed.tech/tags/catalog.md>), [change](<https://devfeed.tech/tags/change.md>), [changes](<https://devfeed.tech/tags/changes.md>), [complete](<https://devfeed.tech/tags/complete.md>), [custom](<https://devfeed.tech/tags/custom.md>), [customers](<https://devfeed.tech/tags/customers.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [data](<https://devfeed.tech/tags/data.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [data-products](<https://devfeed.tech/tags/data-products.md>), [data-team](<https://devfeed.tech/tags/data-team.md>), [dynamic-table](<https://devfeed.tech/tags/dynamic-table.md>), [iceberg](<https://devfeed.tech/tags/iceberg.md>), [lakehouse](<https://devfeed.tech/tags/lakehouse.md>), [layer](<https://devfeed.tech/tags/layer.md>), [llm](<https://devfeed.tech/tags/llm.md>), [snowflake](<https://devfeed.tech/tags/snowflake.md>)

## AI overview

The post demonstrates a Snowflake pipeline that runs AI functions inside incremental dynamic Iceberg tables, calling models for new or changed rows and exposing results to Iceberg readers. A frozen region preserves completed outputs through prompt changes; the demo reprocessed 16 active rows while leaving 10 frozen summaries unchanged. It recommends placing AI_FILTER in an upstream SELECT and filtering its computed flag in a downstream table: using the function in WHERE either fails in incremental mode or can silently select a full refresh. The example also covers access requirements, NULL checks for failed model calls, and the limitation that outside engines can read these tables but cannot write to them. Results are from a demo with synthetic tickets and may differ in other workloads.

## Source excerpt

AI Functions in dynamic Iceberg tables: pay the model only for changed rows On Monday, someone improves the summary prompt. It's a good change: the output is shorter, with no chatty preamble. On Tuesday, the backfill starts. It re-summarizes every ticket since spring, at full token price. On Wednesday, it's still running. Last quarter's report no longer matches the dashboard. The backfill reworded some old summaries, even at temperature 0. Nobody touched those tickets. The pipeline rewrote them anyway. On Thursday, two questions arrive from outside the data team: "Can we improve a prompt without paying for every ticket again?" No. With this pipeline, every backfill pays for your whole history again, and history only grows. "Can we improve a prompt without changing last quarter's numbers?" No. Every prompt change reopens a report that you already shipped. This post builds a pipeline where both answers are yes. TL;DR: Put AI_CLASSIFY, AI_FILTER and AI_COMPLETE in the SELECT of a Snowflake dynamic Iceberg table. The AI step then becomes a layer of your lakehouse that any Iceberg engine can read, not a job beside it. Snowflake calls the model only for new and changed rows. A frozen region keeps the old outputs when the prompt changes. You'll build a ticket-enrichment pipeline from two CREATE statements, with no scheduler, history table or backfill script. Customers already use Dynamic Iceberg Tables to turn changing source data into fresh, business-ready datasets in open formats, like current-state network inventories, clinical data products, and regional delivery feeds, without building custom merge pipelines. With externally managed dynamic Iceberg tables, now in Private Preview, Snowflake runs those same declarative, target-lag refreshes and publishes the results straight into your existing external Iceberg catalog, so you keep your catalog and still get Snowflake-managed pipelinesAI Functions inside a dynamic Iceberg table call the model only for changed rows. You'l