github-actions[bot] commented on code in PR #41866:
URL: https://github.com/apache/beam/pull/41866#discussion_r4762832299


##########
website/www/site/content/en/blog/iceberg-cdc-sql.md:
##########
@@ -0,0 +1,133 @@
+---
+title: "Stream changes between Iceberg tables with Apache Beam"
+date: 2026-11-22 00:00:00 -0800
+categories:
+  - blog
+authors:
+  - ahmedabu98
+---
+<!--
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+You can now use Apache Beam to continuously **keep one Iceberg table in sync 
with another**.
+Beam's Iceberg change data capture (CDC) [source](/blog/iceberg-cdc-source/) 
reads a table's row-level changes (inserts, updates, deletes),
+and its merge-on-read [sink](/blog/iceberg-cdc-sink/) applies them downstream 
by primary key. Try it with this
+**[quickstart](/documentation/io/built-in/iceberg-cdc/)**.
+
+Most engines only stream appends out of an Iceberg table. **Beam streams 
updates and deletes too.**
+
+<!--more-->
+
+It's common for teams to keep a backup copy of their Iceberg table. This 
backup might be a replica
+in another region or different cloud provider, a copy in a new catalog they're 
migrating to, a
+smaller table containing only the rows and columns the team needs, or a masked 
copy that hides
+sensitive data from teams that shouldn't see it. **The source data isn't 
static**,
+though. Orders get updated, erroneous records get fixed, and customers send 
GDPR requests to delete
+their data. Consequently, you need a process to let these updates reach the 
downstream copy in
+real-time.
+
+If you're in this situation, one option you have is to **reload the entire 
table periodically**.
+However, this approach uses a lot of compute resources, and the downstream 
copy still becomes
+out-of-sync between reload operations. Alternatively, you could **write your 
own custom pipeline** to
+forward the change log downstream, but then you need to deal with all the 
mechanics yourself, such
+as applying changes in the correct order, handling deletes, and recovering 
from a failure without
+applying the same change twice.
+
+Beam's new Iceberg CDC source and sink handle these details for you. You just 
have to run
+**one streaming pipeline** and it will keep the two tables continuously in 
sync. You also
+have the option to run **periodic, sequential batch jobs**, each job picking 
up where the
+last one left off.
+
+## What it looks like
+
+Consider an `orders` table that gets three new orders, followed by an update 
that
+modifies order 1, deletes order 2, and adds order 4. Read as a stream of 
changes, these commits
+look like this:

Review Comment:
   **🟡 Medium**: `/images/blog/iceberg-cdc/changes-live-view.gif` is not 
included in this PR and does not yet exist on `master` (it is currently in 
#41584), alongside the companion links (`/blog/iceberg-cdc-source/`, 
`/blog/iceberg-cdc-sink/`, and `/documentation/io/built-in/iceberg-cdc/`). 
Ensure #41584 and #41865 are merged before this PR (or include the image asset 
here) so website build and link checks pass.



##########
website/www/site/content/en/blog/iceberg-cdc-sql.md:
##########
@@ -0,0 +1,133 @@
+---
+title: "Stream changes between Iceberg tables with Apache Beam"
+date: 2026-11-22 00:00:00 -0800
+categories:
+  - blog
+authors:
+  - ahmedabu98
+---
+<!--
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+You can now use Apache Beam to continuously **keep one Iceberg table in sync 
with another**.
+Beam's Iceberg change data capture (CDC) [source](/blog/iceberg-cdc-source/) 
reads a table's row-level changes (inserts, updates, deletes),
+and its merge-on-read [sink](/blog/iceberg-cdc-sink/) applies them downstream 
by primary key. Try it with this
+**[quickstart](/documentation/io/built-in/iceberg-cdc/)**.
+
+Most engines only stream appends out of an Iceberg table. **Beam streams 
updates and deletes too.**
+
+<!--more-->
+
+It's common for teams to keep a backup copy of their Iceberg table. This 
backup might be a replica
+in another region or different cloud provider, a copy in a new catalog they're 
migrating to, a
+smaller table containing only the rows and columns the team needs, or a masked 
copy that hides
+sensitive data from teams that shouldn't see it. **The source data isn't 
static**,
+though. Orders get updated, erroneous records get fixed, and customers send 
GDPR requests to delete
+their data. Consequently, you need a process to let these updates reach the 
downstream copy in
+real-time.
+
+If you're in this situation, one option you have is to **reload the entire 
table periodically**.
+However, this approach uses a lot of compute resources, and the downstream 
copy still becomes
+out-of-sync between reload operations. Alternatively, you could **write your 
own custom pipeline** to
+forward the change log downstream, but then you need to deal with all the 
mechanics yourself, such
+as applying changes in the correct order, handling deletes, and recovering 
from a failure without
+applying the same change twice.
+
+Beam's new Iceberg CDC source and sink handle these details for you. You just 
have to run
+**one streaming pipeline** and it will keep the two tables continuously in 
sync. You also
+have the option to run **periodic, sequential batch jobs**, each job picking 
up where the
+last one left off.
+
+## What it looks like
+
+Consider an `orders` table that gets three new orders, followed by an update 
that
+modifies order 1, deletes order 2, and adds order 4. Read as a stream of 
changes, these commits
+look like this:
+
+<img class="center-block" src="/images/blog/iceberg-cdc/changes-live-view.gif"
+     alt="A Beam SQL live view of CHANGES(orders). Three inserts stream in 
from the first commit,
+     then the second commit's changes: order 1's old and new versions, a 
delete of order 2, and an
+     insert of order 4.">

Review Comment:
   **🔵 Low**: The SQL queries below and the `CHANGES(...)` table macro use the 
Iceberg metadata column name `_change_type` (whereas `op` was the user-defined 
column name on the write side in the quickstart). In the live view GIF, the 
column header is `_change_type` (or the SQL shell's live view status column); 
referring to `_change_type` here avoids confusion with the query directly below 
on line 71.
   
   ```suggestion
   Each row is one change to one key. The `_change_type` column describes what 
happened, and
   ```



##########
website/www/site/content/en/blog/iceberg-cdc-sql.md:
##########
@@ -0,0 +1,133 @@
+---
+title: "Stream changes between Iceberg tables with Apache Beam"
+date: 2026-11-22 00:00:00 -0800

Review Comment:
   **🟢 Nit**: Consider updating the publication date before merging so the post 
appears at the top of the blog feed relative to current posts and companion 
posts (#41584 / #41865).
   
   ```suggestion
   date: 2026-12-02 00:00:00 -0800
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to