You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2019/10/08 15:35:20 UTC

[incubator-iceberg] branch master updated: Docs: set append mode for Spark append (#517)

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

blue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new fbf7bde  Docs: set append mode for Spark append (#517)
fbf7bde is described below

commit fbf7bde928a646b3f0d335a3c3d2953275e56aff
Author: Xiang Li <wa...@gmail.com>
AuthorDate: Tue Oct 8 23:35:15 2019 +0800

    Docs: set append mode for Spark append (#517)
---
 site/docs/spark.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/site/docs/spark.md b/site/docs/spark.md
index 2230466..67a5243 100644
--- a/site/docs/spark.md
+++ b/site/docs/spark.md
@@ -80,19 +80,20 @@ spark.sql("""select count(1) from table""").show()
 
 ### Appending data
 
-To append a dataframe to an Iceberg table, use the `iceberg` format with `DataFrameReader`:
+To append a dataframe to an Iceberg table, use the `iceberg` format with `append` mode in the `DataFrameWriter`:
 
 ```scala
 val data: DataFrame = ...
 data.write
     .format("iceberg")
+    .mode("append")
     .save("db.table")
 ```
 
 
 ### Overwriting data
 
-To overwrite values in an Iceberg table, use `overwrite` mode in the `DataFrameReader`:
+To overwrite values in an Iceberg table, use `overwrite` mode in the `DataFrameWriter`:
 
 ```scala
 val data: DataFrame = ...