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 cdd944ebbd Docs: Use DataFrameWriterV2 in example (#11647)
cdd944ebbd is described below

commit cdd944ebbd42cd94103f15c8baad8daa82995846
Author: Cheng Pan <[email protected]>
AuthorDate: Mon Nov 25 20:45:27 2024 +0800

    Docs: Use DataFrameWriterV2 in example (#11647)
---
 docs/docs/spark-configuration.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/docs/spark-configuration.md b/docs/docs/spark-configuration.md
index 5b281b1989..8342d1d577 100644
--- a/docs/docs/spark-configuration.md
+++ b/docs/docs/spark-configuration.md
@@ -167,14 +167,14 @@ spark.read
 
 ### Write options
 
-Spark write options are passed when configuring the DataFrameWriter, like this:
+Spark write options are passed when configuring the DataFrameWriterV2, like 
this:
 
 ```scala
 // write with Avro instead of Parquet
-df.write
+df.writeTo("catalog.db.table")
     .option("write-format", "avro")
     .option("snapshot-property.key", "value")
-    .insertInto("catalog.db.table")
+    .append()
 ```
 
 | Spark option           | Default                    | Description            
                                      |

Reply via email to