This is an automated email from the ASF dual-hosted git repository.

etudenhoefner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new f7ff0dc8c0 Docs: Add `WHEN NOT MATCHED BY SOURCE` to Spark doc (#11636)
f7ff0dc8c0 is described below

commit f7ff0dc8c0a27e2bcd727e4f7705cf0a69ccc9b3
Author: Hussein Awala <[email protected]>
AuthorDate: Mon Nov 25 14:08:54 2024 +0100

    Docs: Add `WHEN NOT MATCHED BY SOURCE` to Spark doc (#11636)
---
 docs/docs/spark-writes.md | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/docs/spark-writes.md b/docs/docs/spark-writes.md
index cc8ca76fe5..3006de6004 100644
--- a/docs/docs/spark-writes.md
+++ b/docs/docs/spark-writes.md
@@ -95,6 +95,11 @@ WHEN NOT MATCHED AND s.event_time > still_valid_threshold 
THEN INSERT (id, count
 
 Only one record in the source data can update any given row of the target 
table, or else an error will be thrown.
 
+Spark 3.5 added support for `WHEN NOT MATCHED BY SOURCE ... THEN ...` to 
update or delete rows that are not present in the source data:
+
+```sql
+WHEN NOT MATCHED BY SOURCE THEN UPDATE SET status = 'invalid'
+```
 
 ### `INSERT OVERWRITE`
 

Reply via email to