<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Streaming_lakehouse</id>
	<title>Streaming lakehouse - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Streaming_lakehouse"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Streaming_lakehouse&amp;action=history"/>
	<updated>2026-12-06T00:08:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Streaming_lakehouse&amp;diff=77&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@9783fe6</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Streaming_lakehouse&amp;diff=77&amp;oldid=prev"/>
		<updated>2026-11-22T21:29:57Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@9783fe6&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox concept&lt;br /&gt;
| name            = Streaming lakehouse&lt;br /&gt;
| also_known_as   = Real-time lakehouse, streaming into the lakehouse&lt;br /&gt;
| field           = Data engineering, [[stream processing]]&lt;br /&gt;
| key_parts       = Streaming writers, [[Open table format]]s, incremental and change-data reads, table maintenance&lt;br /&gt;
| implementations = [[Apache Iceberg]], [[Delta Lake]], [[Apache Hudi]], [[Apache Paimon]], [[Structured Streaming]], [[Apache Flink]], [[Spark Declarative Pipelines]]&lt;br /&gt;
| related         = [[Open lakehouse]], [[Medallion architecture]], [[Exactly-once semantics]], [[Small files problem]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the Apache Iceberg 1.12.0 Spark and Flink documentation, the Delta Lake streaming, change data feed and optimization documentation, the Apache Hudi 1.2.1 documentation, the Apache Paimon 1.4 documentation and 2024 graduation announcement, the Apache Fluss 0.9 documentation and the Spark 4.3.0 Declarative Pipelines guide}}&lt;br /&gt;
&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;streaming lakehouse&amp;#039;&amp;#039;&amp;#039; is a data architecture in which streaming jobs write directly into tables in an [[open table format]], so that the same tables serve both streaming readers, which consume new changes incrementally, and batch readers, which query a consistent snapshot. It applies the [[open lakehouse]] idea to continuously arriving data: instead of keeping a separate real-time store next to the lake, the table itself is the hand-off point between pipeline stages.&lt;br /&gt;
&lt;br /&gt;
== Terminology ==&lt;br /&gt;
The term is used loosely and has no single defining paper or specification. Some projects use it as a name for their own design:&lt;br /&gt;
&lt;br /&gt;
* [[Apache Paimon]], formerly Flink Table Store, describes itself as &amp;quot;a lake format for building Lakehouse Architecture for both streaming and batch operations&amp;quot;.&amp;lt;ref name=&amp;quot;paimon-tlp&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;paimon-docs&amp;quot;&amp;gt;{{Cite web |url=https://paimon.apache.org/docs/1.4/ |title=Apache Paimon documentation (1.4) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The Apache Software Foundation&amp;#039;s announcement of Paimon&amp;#039;s graduation to a top-level project, on 16 April 2024, calls it &amp;quot;a streaming data lake platform&amp;quot; and a format that enables real-time lakehouse architectures.&amp;lt;ref name=&amp;quot;paimon-tlp&amp;quot;&amp;gt;{{Cite web |url=https://news.apache.org/foundation/entry/apache-software-foundation-announces-new-top-level-project-apache-paimon |title=The Apache Software Foundation Announces New Top-Level Project Apache Paimon |publisher=Apache Software Foundation |date=2024-04-16 |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* Apache Fluss, a streaming storage project (incubating at its 0.9 release), uses &amp;quot;Streaming Lakehouse&amp;quot; as the name of the setup in which its tiering service moves table data into Paimon or Iceberg, with recent data held in Fluss and historical data in the lake table, and queries combining both.&amp;lt;ref name=&amp;quot;fluss&amp;quot;&amp;gt;{{Cite web |url=https://fluss.apache.org/docs/0.9/quickstart/lakehouse |title=Building a Streaming Lakehouse (Apache Fluss 0.9) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Apache Iceberg]], [[Delta Lake]] and [[Apache Hudi]] document the same pattern (streaming writes and incremental reads on one table) without using the name. This page uses &amp;quot;streaming lakehouse&amp;quot; for the general pattern, not for any one product.&lt;br /&gt;
&lt;br /&gt;
== How it works ==&lt;br /&gt;
A streaming lakehouse has three moving parts.&lt;br /&gt;
&lt;br /&gt;
=== Streaming writes ===&lt;br /&gt;
A streaming engine writes each micro-batch or checkpoint interval as one atomic commit to the table. [[Structured Streaming]] can write to Iceberg tables in append or complete output mode, to Delta tables, and to Hudi tables.&amp;lt;ref name=&amp;quot;iceberg-ss&amp;quot;&amp;gt;{{Cite web |url=https://iceberg.apache.org/docs/latest/spark-structured-streaming/ |title=Spark Structured Streaming (Apache Iceberg 1.12.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;delta-stream&amp;quot;&amp;gt;{{Cite web |url=https://docs.delta.io/delta-streaming/ |title=Table streaming reads and writes |publisher=Delta Lake |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=&amp;quot;hudi-ss&amp;quot;&amp;gt;{{Cite web |url=https://hudi.apache.org/docs/writing_tables_streaming_writes |title=Streaming Writes (Apache Hudi 1.2.1) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; The Iceberg Flink sink commits to the table after each successful Flink checkpoint and supports upserts on tables with a primary key or identifier fields.&amp;lt;ref name=&amp;quot;iceberg-flink&amp;quot;&amp;gt;{{Cite web |url=https://iceberg.apache.org/docs/latest/flink-writes/ |title=Flink Writes (Apache Iceberg 1.12.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Because each commit is atomic, batch readers never see a half-written batch, and the sink can be part of an [[exactly-once semantics|exactly-once]] pipeline.&amp;lt;ref name=&amp;quot;delta-stream&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Incremental and change-data reads ===&lt;br /&gt;
Downstream jobs read only what changed since their last position, which turns each table into a source for the next stage, as in a [[medallion architecture]]. What a reader can see differs by format:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Format !! Incremental read !! Updates and deletes&lt;br /&gt;
|-&lt;br /&gt;
| [[Apache Iceberg]] || Spark streaming reads start from a timestamp (&amp;lt;code&amp;gt;stream-from-timestamp&amp;lt;/code&amp;gt;); Flink streaming reads start from a snapshot and poll for new ones&amp;lt;ref name=&amp;quot;iceberg-ss&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;iceberg-flinkq&amp;quot;&amp;gt;{{Cite web |url=https://iceberg.apache.org/docs/latest/flink-queries/ |title=Flink Queries (Apache Iceberg 1.12.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; || Spark streaming reads only append snapshots; overwrite and delete snapshots raise an error unless skipped with &amp;lt;code&amp;gt;streaming-skip-overwrite-snapshots&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;streaming-skip-delete-snapshots&amp;lt;/code&amp;gt;&amp;lt;ref name=&amp;quot;iceberg-ss&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Delta Lake]] || A streaming read processes the existing table and then new data&amp;lt;ref name=&amp;quot;delta-stream&amp;quot; /&amp;gt; || Plain streaming reads fail on non-append commits unless &amp;lt;code&amp;gt;skipChangeCommits&amp;lt;/code&amp;gt; is set; the change data feed (&amp;lt;code&amp;gt;readChangeFeed&amp;lt;/code&amp;gt;) returns row-level inserts, updates and deletes&amp;lt;ref name=&amp;quot;delta-stream&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;delta-cdf&amp;quot;&amp;gt;{{Cite web |url=https://docs.delta.io/delta-change-data-feed/ |title=Change data feed |publisher=Delta Lake |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Apache Hudi]] || Incremental queries return data written since an instant on the table&amp;#039;s timeline&amp;lt;ref name=&amp;quot;hudi-types&amp;quot;&amp;gt;{{Cite web |url=https://hudi.apache.org/docs/table_types |title=Table and Query Types (Apache Hudi 1.2.1) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; || Incremental CDC queries return inserts, updates and deletes with before and after images&amp;lt;ref name=&amp;quot;hudi-types&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[Apache Paimon]] || Streaming updates on an LSM-tree structure, typically written with Flink&amp;lt;ref name=&amp;quot;paimon-docs&amp;quot; /&amp;gt; || Changelog producers generate a complete changelog for merge engines&amp;lt;ref name=&amp;quot;paimon-docs&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Delta change data feed is enabled with the table property &amp;lt;code&amp;gt;delta.enableChangeDataFeed&amp;lt;/code&amp;gt; and adds the columns &amp;lt;code&amp;gt;_change_type&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;insert&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;update_preimage&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;update_postimage&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;delete&amp;lt;/code&amp;gt;), &amp;lt;code&amp;gt;_commit_version&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;_commit_timestamp&amp;lt;/code&amp;gt;. Only changes made after it is enabled are recorded.&amp;lt;ref name=&amp;quot;delta-cdf&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Declarative streaming tables ===&lt;br /&gt;
[[Spark Declarative Pipelines]] (SDP) expresses the pattern declaratively. An SDP &amp;#039;&amp;#039;&amp;#039;streaming table&amp;#039;&amp;#039;&amp;#039; is a table filled by one or more streaming flows that process only new data, and it can read from any source that &amp;lt;code&amp;gt;spark.readStream&amp;lt;/code&amp;gt; supports, including Kafka.&amp;lt;ref name=&amp;quot;sdp&amp;quot;&amp;gt;{{Cite web |url=https://spark.apache.org/docs/4.3.0/declarative-pipelines-programming-guide.html |title=Spark Declarative Pipelines Programming Guide (Spark 4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; In Spark 4.3, &amp;#039;&amp;#039;&amp;#039;Auto CDC&amp;#039;&amp;#039;&amp;#039; applies a stream of change events to a target streaming table by key and sequence value, handling out-of-order and duplicate events.&amp;lt;ref name=&amp;quot;sdp&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
CREATE STREAMING TABLE orders&lt;br /&gt;
AS SELECT * FROM STREAM orders_source;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This PySpark sketch writes a Kafka topic into an Iceberg table once a minute, then reads the same table as a batch snapshot and as an incremental stream. It assumes the Iceberg Spark runtime and Kafka connector are on the classpath and that a catalog named &amp;lt;code&amp;gt;lake&amp;lt;/code&amp;gt; is configured.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
orders = (&lt;br /&gt;
    spark.readStream.format(&amp;quot;kafka&amp;quot;)&lt;br /&gt;
    .option(&amp;quot;kafka.bootstrap.servers&amp;quot;, &amp;quot;broker:9092&amp;quot;)&lt;br /&gt;
    .option(&amp;quot;subscribe&amp;quot;, &amp;quot;orders&amp;quot;)&lt;br /&gt;
    .load()&lt;br /&gt;
    .selectExpr(&amp;quot;CAST(key AS STRING) AS order_id&amp;quot;,&lt;br /&gt;
                &amp;quot;CAST(value AS STRING) AS payload&amp;quot;,&lt;br /&gt;
                &amp;quot;timestamp&amp;quot;)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
(orders.writeStream.format(&amp;quot;iceberg&amp;quot;)&lt;br /&gt;
    .outputMode(&amp;quot;append&amp;quot;)&lt;br /&gt;
    .trigger(processingTime=&amp;quot;1 minute&amp;quot;)          # one commit per minute&lt;br /&gt;
    .option(&amp;quot;checkpointLocation&amp;quot;, &amp;quot;/chk/bronze_orders&amp;quot;)&lt;br /&gt;
    .toTable(&amp;quot;lake.bronze.orders&amp;quot;))&lt;br /&gt;
&lt;br /&gt;
spark.table(&amp;quot;lake.bronze.orders&amp;quot;).count()        # batch reader: a snapshot&lt;br /&gt;
spark.readStream.format(&amp;quot;iceberg&amp;quot;).load(&amp;quot;lake.bronze.orders&amp;quot;)  # streaming reader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Limits ==&lt;br /&gt;
=== Latency is bounded by commit frequency ===&lt;br /&gt;
Readers see new data only after it is committed, so freshness is set by how often the writer commits, not by how fast the engine processes records. Iceberg recommends a trigger interval of at least 1 minute for streaming writes, because frequent commits create many data files, manifests and snapshots.&amp;lt;ref name=&amp;quot;iceberg-ss&amp;quot; /&amp;gt; With Flink, Iceberg commits follow checkpoints, so the checkpoint interval is also the commit interval.&amp;lt;ref name=&amp;quot;iceberg-flink&amp;quot; /&amp;gt; Systems such as Fluss address this by keeping the most recent data in a separate low-latency store and combining it with the lake table at query time.&amp;lt;ref name=&amp;quot;fluss&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Small files and metadata growth ===&lt;br /&gt;
{{See also|Small files problem}}&lt;br /&gt;
Each streaming commit usually writes small files. Iceberg&amp;#039;s documentation states that streaming writes typically produce small amounts of data per commit, leading to many small files, and recommends compacting data files (&amp;lt;code&amp;gt;rewrite_data_files&amp;lt;/code&amp;gt;), expiring old snapshots and rewriting manifests (&amp;lt;code&amp;gt;rewrite_manifests&amp;lt;/code&amp;gt;) on tables written by streams.&amp;lt;ref name=&amp;quot;iceberg-ss&amp;quot; /&amp;gt; Delta Lake offers &amp;lt;code&amp;gt;OPTIMIZE&amp;lt;/code&amp;gt; to coalesce small files, and since Delta 3.1.0, auto compaction and optimized writes.&amp;lt;ref name=&amp;quot;delta-opt&amp;quot;&amp;gt;{{Cite web |url=https://docs.delta.io/optimizations-oss/ |title=Optimizations |publisher=Delta Lake |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; In Hudi, merge-on-read tables lower write latency for near real-time availability, at the cost of query performance until log files are compacted.&amp;lt;ref name=&amp;quot;hudi-types&amp;quot; /&amp;gt; See [[Copy-on-write and merge-on-read]].&lt;br /&gt;
&lt;br /&gt;
=== Updates downstream ===&lt;br /&gt;
Append-only incremental reads are the simplest case. When an upstream table receives updates or deletes, downstream streams need a change feed (Delta, Hudi, Paimon) or must skip those commits and lose the changes, as with Iceberg&amp;#039;s and Delta&amp;#039;s skip options.&amp;lt;ref name=&amp;quot;iceberg-ss&amp;quot; /&amp;gt;&amp;lt;ref name=&amp;quot;delta-stream&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Stream processing]]&lt;br /&gt;
* [[Exactly-once semantics]]&lt;br /&gt;
* [[Open lakehouse]]&lt;br /&gt;
* [[Medallion architecture]]&lt;br /&gt;
* [[Spark Declarative Pipelines]]&lt;br /&gt;
* [[Small files problem]]&lt;br /&gt;
* [[Copy-on-write and merge-on-read]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;br /&gt;
[[Category:Pipelines and orchestration]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>