This is an automated email from the ASF dual-hosted git repository.
etudenhoefner 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 d73e51a86a Docs: Fix CREATE BRANCH syntax and broken link in Writing
to Branches section (#8562)
d73e51a86a is described below
commit d73e51a86ab07e15aa6f5b14329fa19fe604f0c9
Author: Tomohiro Tanaka <[email protected]>
AuthorDate: Fri Sep 15 16:05:12 2023 +0900
Docs: Fix CREATE BRANCH syntax and broken link in Writing to Branches
section (#8562)
---
docs/branching-and-tagging.md | 4 ++--
docs/spark-ddl.md | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/docs/branching-and-tagging.md b/docs/branching-and-tagging.md
index b56e8f1066..2bff0a8846 100644
--- a/docs/branching-and-tagging.md
+++ b/docs/branching-and-tagging.md
@@ -79,7 +79,7 @@ ALTER TABLE prod.db.table CREATE TAG `EOY-2023` AS OF VERSION
365
4. Create a temporary "test-branch" which is retained for 7 days and the
latest 2 snapshots on the branch are retained.
```sql
-- Create a branch "test-branch" which will be retained for 7 days along with
the latest 2 snapshots
-ALTER TABLE prod.db.table CREATE BRANCH `test-branch` RETAIN 7 DAYS WITH
RETENTION 2 SNAPSHOTS
+ALTER TABLE prod.db.table CREATE BRANCH `test-branch` RETAIN 7 DAYS WITH
SNAPSHOT RETENTION 2 SNAPSHOTS
```
### Audit Branch
@@ -91,7 +91,7 @@ The above diagram shows an example of using an audit branch
for validating a wri
1. First ensure `write.wap.enabled` is set.
```sql
ALTER TABLE db.table SET TBLPROPERTIES (
- 'write.wap.enabled''true'
+ 'write.wap.enabled'='true'
)
```
2. Create `audit-branch` starting from snapshot 3, which will be written to
and retained for 1 week.
diff --git a/docs/spark-ddl.md b/docs/spark-ddl.md
index 0ac954167d..c7274b84e3 100644
--- a/docs/spark-ddl.md
+++ b/docs/spark-ddl.md
@@ -500,7 +500,7 @@ AS OF VERSION 1234
-- CREATE audit-branch at snapshot 1234, retain audit-branch for 31 days, and
retain the latest 31 days. The latest 3 snapshot snapshots, and 2 days worth of
snapshots.
ALTER TABLE prod.db.sample CREATE BRANCH `audit-branch`
AS OF VERSION 1234 RETAIN 30 DAYS
-WITH RETENTION 3 SNAPSHOTS 2 DAYS
+WITH SNAPSHOT RETENTION 3 SNAPSHOTS 2 DAYS
```
#### `ALTER TABLE ... CREATE TAG`