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

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


The following commit(s) were added to refs/heads/master by this push:
     new a38218054 Adding Considerations for Spark's Insert Overwrite (#2111)
a38218054 is described below

commit a38218054c05c3db6714b61d2abb922b032b34c7
Author: wgcn <[email protected]>
AuthorDate: Wed Oct 11 08:36:58 2023 +0800

    Adding Considerations for Spark's Insert Overwrite (#2111)
---
 docs/content/how-to/writing-tables.md | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/docs/content/how-to/writing-tables.md 
b/docs/content/how-to/writing-tables.md
index 540f768cc..b9e878c1a 100644
--- a/docs/content/how-to/writing-tables.md
+++ b/docs/content/how-to/writing-tables.md
@@ -127,7 +127,11 @@ INSERT INTO MyTable SELECT ...
 
 {{< /tabs >}}
 
-## Overwriting the Whole Table
+## Overwriting 
+Note :If `spark.sql.sources.partitionOverwriteMode` is set to `dynamic` by 
default in Spark, 
+in order to ensure that the insert overwrite function of the Paimon table can 
be used normally,
+`spark.sql.extensions` should be set to 
`org.apache.paimon.spark.extensions.PaimonSparkSessionExtensions`.
+### Overwriting the Whole Table
 
 For unpartitioned tables, Paimon supports overwriting the whole table.
 
@@ -153,7 +157,7 @@ INSERT OVERWRITE MyTable SELECT ...
 
 {{< /tabs >}}
 
-## Overwriting a Partition
+### Overwriting a Partition
 
 For partitioned tables, Paimon supports overwriting a partition.
 
@@ -179,7 +183,7 @@ INSERT OVERWRITE MyTable PARTITION (key1 = value1, key2 = 
value2, ...) SELECT ..
 
 {{< /tabs >}}
 
-## Dynamic Overwrite
+### Dynamic Overwrite
 
 {{< tabs "dynamic-overwrite" >}}
 

Reply via email to