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

lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 1cf009aab4 [doc] alter streaming write to paimon table grammar (#5499)
1cf009aab4 is described below

commit 1cf009aab458a455092415c1135acce350a8491c
Author: kevin <[email protected]>
AuthorDate: Mon Apr 21 16:57:23 2025 +0800

    [doc] alter streaming write to paimon table grammar (#5499)
---
 docs/content/spark/sql-write.md | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/docs/content/spark/sql-write.md b/docs/content/spark/sql-write.md
index 1f4407ef89..98ce312629 100644
--- a/docs/content/spark/sql-write.md
+++ b/docs/content/spark/sql-write.md
@@ -248,7 +248,8 @@ val stream = df
   .outputMode("append")
   .option("checkpointLocation", "/path/to/checkpoint")
   .format("paimon")
-  .start("/path/to/paimon/sink/table")
+  .toTable("${database}.${table}")
+  //  .start("/path/to/paimon/sink/table")
 ```
 
 ## Schema Evolution
@@ -262,7 +263,8 @@ data.write
   .format("paimon")
   .mode("append")
   .option("write.merge-schema", "true")
-  .save(location)
+  .saveAsTable("${database}.${table}")
+  // .save(location)
 ```
 
 When enable `write.merge-schema`, Paimon can allow users to perform the 
following actions on table schema by default:
@@ -283,7 +285,8 @@ inputData
   .option("checkpointLocation", "/path/to/checkpoint")
   .option("write.merge-schema", "true")
   .option("write.merge-schema.explicit-cast", "true")
-  .start(location)
+  .toTable("${database}.${table}")
+  // .start(location)
 ```
 
 Here list the configurations.

Reply via email to