hililiwei commented on code in PR #5380:
URL: https://github.com/apache/iceberg/pull/5380#discussion_r945092357
##########
docs/flink-getting-started.md:
##########
@@ -634,6 +634,26 @@ FlinkSink.forRowData(input)
env.execute("Test Iceberg DataStream");
```
+### Streaming upsert write
+
+Iceberg supports `UPSERT` based on the primary key when writing streaming data
into v2 table format. To enable it, create an `UPSERT` table or configuration
it when building a writer.
+
+For an `UPSERT` table, all writing will be in `UPSERT` mode unless you
overwrite it when building the writer:
+
+```
+CREATE TABLE `hive_catalog`.`default`.`sample` (
Review Comment:
I added upsert doc to the sql and stream sections respectively.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]