chenjunjiedada commented on code in PR #3998:
URL: https://github.com/apache/iceberg/pull/3998#discussion_r903515429
##########
docs/flink/flink-getting-started.md:
##########
@@ -526,6 +526,27 @@ FlinkSink.forRowData(input)
env.execute("Test Iceberg DataStream");
```
+## Write options
+
+Flink write options are passed when configuring the FlinkSink, like this:
+
+```
+FlinkSink.Builder builder = FlinkSink.forRow(dataStream,
SimpleDataUtil.FLINK_SCHEMA)
+ .table(table)
+ .tableLoader(tableLoader)
+ .set("write-format", "orc")
+ .set(FlinkWriteOptions.OVERWRITE_MODE, "true");
+```
+
+| Flink option | Default | Description
|
+| ---------------------- | -------------------------- |
------------------------------------------------------------ |
+| write-format | Table write.format.default | File format to use for
this write operation; parquet, avro, or orc |
+| target-file-size-bytes | As per table property | Overrides this table's
write.target-file-size-bytes |
+| upsert-enabled | Table write.upsert.enabled | Overrides this table's
write.upsert.enabled |
+| overwrite | false | Overwrite the table's data |
Review Comment:
Can we enable both `upsert-enabled` and `overwrite`?
--
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]