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 fc40944f8f [doc] Improve `BY NAME` statement doc (#7062)
fc40944f8f is described below
commit fc40944f8f94e6ed6aee645101eb6dd82fddd7a3
Author: huangxiaoping <[email protected]>
AuthorDate: Fri Jan 16 09:49:12 2026 +0800
[doc] Improve `BY NAME` statement doc (#7062)
---
docs/content/spark/sql-write.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/content/spark/sql-write.md b/docs/content/spark/sql-write.md
index 0516f5f325..e6291c14ec 100644
--- a/docs/content/spark/sql-write.md
+++ b/docs/content/spark/sql-write.md
@@ -288,11 +288,11 @@ Here list the configurations.
This mode also supports Spark SQL. Here is an example:
```sql
-set `spark.paimon.write.merge-schema` = true;
+SET `spark.paimon.write.merge-schema` = true;
CREATE TABLE t (a INT, b STRING);
INSERT INTO t VALUES (1, '1'), (2, '2');
--- need using by name mode
+-- Need using `BY NAME` statement (requires Spark 3.5+)
INSERT INTO t BY NAME SELECT 3 AS a, '3' AS b, 3 AS c;
```