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 80040f69d5 Revert "[doc] alter streaming write to paimon table grammar
(#5499)" (#5507)
80040f69d5 is described below
commit 80040f69d593056e6b8daf18099f87360266e5e7
Author: Zouxxyy <[email protected]>
AuthorDate: Tue Apr 22 13:16:12 2025 +0800
Revert "[doc] alter streaming write to paimon table grammar (#5499)" (#5507)
---
docs/content/spark/sql-write.md | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/docs/content/spark/sql-write.md b/docs/content/spark/sql-write.md
index 98ce312629..1f4407ef89 100644
--- a/docs/content/spark/sql-write.md
+++ b/docs/content/spark/sql-write.md
@@ -248,8 +248,7 @@ val stream = df
.outputMode("append")
.option("checkpointLocation", "/path/to/checkpoint")
.format("paimon")
- .toTable("${database}.${table}")
- // .start("/path/to/paimon/sink/table")
+ .start("/path/to/paimon/sink/table")
```
## Schema Evolution
@@ -263,8 +262,7 @@ data.write
.format("paimon")
.mode("append")
.option("write.merge-schema", "true")
- .saveAsTable("${database}.${table}")
- // .save(location)
+ .save(location)
```
When enable `write.merge-schema`, Paimon can allow users to perform the
following actions on table schema by default:
@@ -285,8 +283,7 @@ inputData
.option("checkpointLocation", "/path/to/checkpoint")
.option("write.merge-schema", "true")
.option("write.merge-schema.explicit-cast", "true")
- .toTable("${database}.${table}")
- // .start(location)
+ .start(location)
```
Here list the configurations.