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

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


The following commit(s) were added to refs/heads/master by this push:
     new 708d634e8c Docs: Fix truncate argument order (#6419)
708d634e8c is described below

commit 708d634e8c4db75642b3e7ea07226397664870ae
Author: Check Null <[email protected]>
AuthorDate: Mon Dec 19 07:37:18 2022 +0800

    Docs: Fix truncate argument order (#6419)
---
 docs/spark-ddl.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/spark-ddl.md b/docs/spark-ddl.md
index 6347ae5481..2f979b5443 100644
--- a/docs/spark-ddl.md
+++ b/docs/spark-ddl.md
@@ -347,7 +347,7 @@ ALTER TABLE prod.db.sample ADD PARTITION FIELD catalog -- 
identity transform
 
 ```sql
 ALTER TABLE prod.db.sample ADD PARTITION FIELD bucket(16, id)
-ALTER TABLE prod.db.sample ADD PARTITION FIELD truncate(data, 4)
+ALTER TABLE prod.db.sample ADD PARTITION FIELD truncate(4, data)
 ALTER TABLE prod.db.sample ADD PARTITION FIELD years(ts)
 -- use optional AS keyword to specify a custom name for the partition field 
 ALTER TABLE prod.db.sample ADD PARTITION FIELD bucket(16, id) AS shard
@@ -373,7 +373,7 @@ Partition fields can be removed using `DROP PARTITION 
FIELD`:
 ```sql
 ALTER TABLE prod.db.sample DROP PARTITION FIELD catalog
 ALTER TABLE prod.db.sample DROP PARTITION FIELD bucket(16, id)
-ALTER TABLE prod.db.sample DROP PARTITION FIELD truncate(data, 4)
+ALTER TABLE prod.db.sample DROP PARTITION FIELD truncate(4, data)
 ALTER TABLE prod.db.sample DROP PARTITION FIELD years(ts)
 ALTER TABLE prod.db.sample DROP PARTITION FIELD shard
 ```

Reply via email to