databricks/sql
advanced
Connecting…

Streaming tables and materialized views

Declare the result you want in SQL. Incremental refresh keeps it current without a pipeline.

Lesson 21 of 24 · Databricks path

Explain it at my level

  1. Plain view
  2. Streaming table
  3. Mat view
  4. Incremental
  5. Full recompute
Watch the canvas:source filesnew data · the deltaplain viewstreaming tablematerialized viewincremental refreshfull recomputepipeline + event logLive simulation
Source — ops.bronze.orders_raw · 400 GBpart-000already refreshedunchanged sincepart-001already refreshedunchanged sincepart-002already refreshedunchanged sincepart-003arrived since last refresh20 GB · the deltaWhat you declare on topCREATE VIEWstores query text onlyrecomputes on every readCREATE STREAMING TABLEcheckpoint · append-orientedSTREAM read_files(...)MATERIALIZED VIEWstores the computed resultSCHEDULE REFRESH EVERY 1 HOURRefresh cost — 400 GB source, 20 GB arrivedA view is query text. Ten readers means ten scans of the same source.
A view recomputes, a streaming table ingests the new rows, and a materialized view refreshes — incrementally only when the planner can prove it.