This is an automated email from the ASF dual-hosted git repository.
stevenzwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git
The following commit(s) were added to refs/heads/main by this push:
new e0fa846549 Docs: Add blanks-around-lists markdown linting (#18793)
e0fa846549 is described below
commit e0fa8465499c4a167e9344bf61c80293b02b436c
Author: Philipp Fischbeck <[email protected]>
AuthorDate: Tue Nov 17 21:23:49 2026 +0100
Docs: Add blanks-around-lists markdown linting (#18793)
Co-authored-by: Kevin Liu <[email protected]>
---
docs/docs/branching.md | 79 ++++++++++++++++++++++++------------------
docs/docs/flink-maintenance.md | 4 +++
docs/docs/flink-writes.md | 1 +
docs/docs/hive.md | 62 ++++++++++++++++++++-------------
docs/docs/spark-queries.md | 1 +
docs/docs/table-migration.md | 1 +
site/README.md | 1 +
site/docs/benchmarks.md | 9 +++--
site/docs/vendors.md | 2 ++
site/markdownlint.yml | 2 ++
10 files changed, 102 insertions(+), 60 deletions(-)
diff --git a/docs/docs/branching.md b/docs/docs/branching.md
index 056409bb2d..9e2e2bd59e 100644
--- a/docs/docs/branching.md
+++ b/docs/docs/branching.md
@@ -50,29 +50,33 @@ The above diagram demonstrates retaining important
historical snapshot with the
via Spark SQL.
1. Retain 1 snapshot per week for 1 month. This can be achieved by tagging the
weekly snapshot and setting the tag retention to be a month.
-snapshots will be kept, and the branch reference itself will be retained for 1
week.
-```sql
--- Create a tag for the first end of week snapshot. Retain the snapshot for a
week
-ALTER TABLE prod.db.table CREATE TAG `EOW-01` AS OF VERSION 7 RETAIN 7 DAYS;
-```
+ snapshots will be kept, and the branch reference itself will be retained
for 1 week.
+
+ ```sql
+ -- Create a tag for the first end of week snapshot. Retain the snapshot
for a week
+ ALTER TABLE prod.db.table CREATE TAG `EOW-01` AS OF VERSION 7 RETAIN 7
DAYS;
+ ```
2. Retain 1 snapshot per month for 6 months. This can be achieved by tagging
the monthly snapshot and setting the tag retention to be 6 months.
-```sql
--- Create a tag for the first end of month snapshot. Retain the snapshot for 6
months
-ALTER TABLE prod.db.table CREATE TAG `EOM-01` AS OF VERSION 30 RETAIN 180 DAYS;
-```
+
+ ```sql
+ -- Create a tag for the first end of month snapshot. Retain the snapshot
for 6 months
+ ALTER TABLE prod.db.table CREATE TAG `EOM-01` AS OF VERSION 30 RETAIN 180
DAYS;
+ ```
3. Retain 1 snapshot per year forever. This can be achieved by tagging the
annual snapshot. The default retention for branches and tags is forever.
-```sql
--- Create a tag for the end of the year and retain it forever.
-ALTER TABLE prod.db.table CREATE TAG `EOY-2023` AS OF VERSION 365;
-```
+
+ ```sql
+ -- Create a tag for the end of the year and retain it forever.
+ 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
SNAPSHOT RETENTION 2 SNAPSHOTS;
-```
+
+ ```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
SNAPSHOT RETENTION 2 SNAPSHOTS;
+ ```
### Audit Branch
@@ -81,26 +85,35 @@ ALTER TABLE prod.db.table CREATE BRANCH `test-branch`
RETAIN 7 DAYS WITH SNAPSHO
The above diagram shows an example of using an audit branch for validating a
write workflow.
1. First ensure `write.wap.enabled` is set.
-```sql
-ALTER TABLE db.table SET TBLPROPERTIES (
- 'write.wap.enabled'='true'
-);
-```
+
+ ```sql
+ ALTER TABLE db.table SET TBLPROPERTIES (
+ 'write.wap.enabled'='true'
+ );
+ ```
+
2. Create `audit-branch` starting from snapshot 3, which will be written to
and retained for 1 week.
-```sql
-ALTER TABLE db.table CREATE BRANCH `audit-branch` AS OF VERSION 3 RETAIN 7
DAYS;
-```
+
+ ```sql
+ ALTER TABLE db.table CREATE BRANCH `audit-branch` AS OF VERSION 3 RETAIN 7
DAYS;
+ ```
+
3. Writes are performed on a separate `audit-branch` independent from the main
table history.
-```sql
--- WAP Branch write
-SET spark.wap.branch = audit-branch
-INSERT INTO prod.db.table VALUES (3, 'c');
-```
+
+ ```sql
+ -- WAP Branch write
+ SET spark.wap.branch = audit-branch
+ INSERT INTO prod.db.table VALUES (3, 'c');
+ ```
+
4. A validation workflow can validate (e.g. data quality) the state of
`audit-branch`.
+
5. After validation, the main branch can be `fastForward` to the head of
`audit-branch` to update the main table state.
-```sql
-CALL catalog_name.system.fast_forward('prod.db.table', 'main', 'audit-branch');
-```
+
+ ```sql
+ CALL catalog_name.system.fast_forward('prod.db.table', 'main',
'audit-branch');
+ ```
+
6. The branch reference will be removed when `expireSnapshots` is run 1 week
later.
## Usage
diff --git a/docs/docs/flink-maintenance.md b/docs/docs/flink-maintenance.md
index 673399403d..ff517179f1 100644
--- a/docs/docs/flink-maintenance.md
+++ b/docs/docs/flink-maintenance.md
@@ -140,6 +140,7 @@ Notes:
The `TriggerLockFactory` is essential for coordinating maintenance tasks. It
prevents concurrent maintenance operations on the same table, which could lead
to conflicts or data corruption. This locking mechanism is necessary even for a
single job, as multiple instances of the same task could otherwise conflict.
#### Why Locks Are Needed
+
- **Concurrent Access**: Multiple Flink jobs may attempt maintenance
simultaneously
- **Data Consistency**: Ensures only one maintenance operation runs per table
at a time
- **Resource Management**: Prevents resource conflicts and scheduling issues
@@ -589,16 +590,19 @@ These keys are used in SQL (SET or table WITH options)
and are applicable when w
### Best Practices
#### Resource Management
+
- Use dedicated slot sharing groups for maintenance tasks
- Set appropriate parallelism based on cluster resources
- Enable checkpointing for fault tolerance
#### Scheduling Strategy
+
- Avoid too frequent executions with `rateLimit`
- Use `scheduleOnCommitCount` for write-heavy tables
- Use `scheduleOnDataFileCount` for fine-grained control
#### Performance Tuning
+
- Adjust `deleteBatchSize` based on storage performance
- Enable `partialProgressEnabled` for large rewrite operations
- Set reasonable `maxRewriteBytes` limits
diff --git a/docs/docs/flink-writes.md b/docs/docs/flink-writes.md
index 75ae8a7983..477601c27c 100644
--- a/docs/docs/flink-writes.md
+++ b/docs/docs/flink-writes.md
@@ -525,6 +525,7 @@ We need the following information (DynamicRecord) for every
record:
### Schema Evolution
The dynamic sink tries to match the schema provided in `DynamicRecord` with
the existing table schemas.
+
- If there is a direct match with one of the existing table schemas, that
table schema will be used for writing to the table.
- If there is no direct match, DynamicSink tries to adapt the provided schema
such that it matches one of table schemas. For example, if there is an
additional optional column in the table schema, a null value will be added to
the RowData provided via DynamicRecord.
- Otherwise, we evolve the table schema to match the input schema, within the
constraints described below.
diff --git a/docs/docs/hive.md b/docs/docs/hive.md
index bd5a98c3e5..4b10c58ea5 100644
--- a/docs/docs/hive.md
+++ b/docs/docs/hive.md
@@ -357,30 +357,41 @@ The Hive table schema is kept in sync with the Iceberg
table. If an outside sour
changes the schema, the Hive table immediately reflects the changes. You alter
the table schema using Hive commands:
* Rename a table
-```sql
-ALTER TABLE orders RENAME TO renamed_orders;
-```
+
+ ```sql
+ ALTER TABLE orders RENAME TO renamed_orders;
+ ```
* Add a column
-```sql
-ALTER TABLE orders ADD COLUMNS (nickname string);
-```
+
+ ```sql
+ ALTER TABLE orders ADD COLUMNS (nickname string);
+ ```
+
* Rename a column
-```sql
-ALTER TABLE orders CHANGE COLUMN item fruit string;
-```
+
+ ```sql
+ ALTER TABLE orders CHANGE COLUMN item fruit string;
+ ```
+
* Reorder columns
-```sql
-ALTER TABLE orders CHANGE COLUMN quantity quantity int AFTER price;
-```
+
+ ```sql
+ ALTER TABLE orders CHANGE COLUMN quantity quantity int AFTER price;
+ ```
+
* Change a column type - only if the Iceberg defined the column type change as
safe
-```sql
-ALTER TABLE orders CHANGE COLUMN price price long;
-```
+
+ ```sql
+ ALTER TABLE orders CHANGE COLUMN price price long;
+ ```
+
* Drop column by using REPLACE COLUMN to remove the old column
-```sql
-ALTER TABLE orders REPLACE COLUMNS (remaining string);
-```
+
+ ```sql
+ ALTER TABLE orders REPLACE COLUMNS (remaining string);
+ ```
+
!!! info
Note, that dropping columns is only thing REPLACE COLUMNS can be used for
i.e. if columns are specified out-of-order an error will be thrown
signalling this limitation.
@@ -389,13 +400,16 @@ ALTER TABLE orders REPLACE COLUMNS (remaining string);
You change the partitioning schema using the following commands:
* Change the partitioning schema to new identity partitions:
-```sql
-ALTER TABLE default.customers SET PARTITION SPEC (last_name);
-```
+
+ ```sql
+ ALTER TABLE default.customers SET PARTITION SPEC (last_name);
+ ```
+
* Alternatively, provide a partition specification:
-```sql
-ALTER TABLE order SET PARTITION SPEC (month(ts));
-```
+
+ ```sql
+ ALTER TABLE order SET PARTITION SPEC (month(ts));
+ ```
#### Table migration
You can migrate Avro / Parquet / ORC external tables to Iceberg tables using
the following command:
diff --git a/docs/docs/spark-queries.md b/docs/docs/spark-queries.md
index 91f1759f56..f199f4251d 100644
--- a/docs/docs/spark-queries.md
+++ b/docs/docs/spark-queries.md
@@ -498,6 +498,7 @@ Note:
1. For unpartitioned tables, the partitions table will not contain the
partition and spec_id fields.
2. The partitions metadata table shows partitions with data files or delete
files in the current snapshot. However, delete files are not applied, and so in
some cases partitions may be shown even though all their data rows are marked
deleted by delete files.
+
### Positional Delete Files
To show all positional delete files from the current snapshot of table:
diff --git a/docs/docs/table-migration.md b/docs/docs/table-migration.md
index 2e56d378c5..8f653a5389 100644
--- a/docs/docs/table-migration.md
+++ b/docs/docs/table-migration.md
@@ -70,5 +70,6 @@ After the initial step (either Snapshot Table or Migrate
Table), it is common to
In practice, these files can be new data files in Hive tables or new snapshots
(versions) of Delta Lake tables. The Add Files action is essential for
incorporating these files into the Iceberg table.
# Migrating From Different Table Formats
+
* [From Hive to Iceberg](hive-migration.md)
* [From Delta Lake to Iceberg](delta-lake-migration.md)
diff --git a/site/README.md b/site/README.md
index ee702f0309..9e2d0bba2a 100644
--- a/site/README.md
+++ b/site/README.md
@@ -142,6 +142,7 @@ make serve-dev
```
This development mode:
+
- **Only builds `nightly` and `latest` versions** - Skips all historical
versions
- **Significantly reduces build time** - Typically 5-10x faster than building
all versions
- **Perfect for iterative development** - Great for working on documentation
content
diff --git a/site/docs/benchmarks.md b/site/docs/benchmarks.md
index e3118228b8..121b15302f 100644
--- a/site/docs/benchmarks.md
+++ b/site/docs/benchmarks.md
@@ -26,6 +26,7 @@ Also note that JMH benchmarks run within the same JVM as the
system-under-test,
## Running Benchmarks on GitHub
It is possible to run one or more Benchmarks via the **JMH Benchmarks** GH
action on your own fork of the Iceberg repo. This GH action takes the following
inputs:
+
* The repository name where those benchmarks should be run against, such as
`apache/iceberg` or `<user>/iceberg`
* The branch name to run benchmarks against, such as `main` or
`my-cool-feature-branch`
* The Spark version to use, such as `4.1` (default: `4.1`)
@@ -102,7 +103,7 @@ A benchmark that evaluates the performance of writing
nested Parquet data using
`./gradlew -DsparkVersions=4.1 -DscalaVersion=2.13
:iceberg-spark:iceberg-spark-4.1_2.13:jmh
-PjmhIncludeRegex=IcebergSourceNestedParquetDataWriteBenchmark
-PjmhOutputPath=benchmark/iceberg-source-nested-parquet-data-write-benchmark-result.txt`
### IcebergSourceNestedParquetDataReadBenchmark
-* A benchmark that evaluates the performance of reading nested Parquet data
using Iceberg and the built-in file source in Spark. To run this benchmark for
either spark-2 or spark-3:
+A benchmark that evaluates the performance of reading nested Parquet data
using Iceberg and the built-in file source in Spark. To run this benchmark for
either spark-2 or spark-3:
`./gradlew -DsparkVersions=4.1 -DscalaVersion=2.13
:iceberg-spark:iceberg-spark-4.1_2.13:jmh
-PjmhIncludeRegex=IcebergSourceNestedParquetDataReadBenchmark
-PjmhOutputPath=benchmark/iceberg-source-nested-parquet-data-read-benchmark-result.txt`
@@ -125,8 +126,10 @@ column used in the filter predicate. The performance is
compared to the built-in
### IcebergSourceNestedParquetDataFilterBenchmark
A benchmark that evaluates the file skipping capabilities in the Spark data
source for Iceberg. This class uses a dataset with nested data, where the
records are clustered according to the
column used in the filter predicate. The performance is compared to the
built-in file source in Spark. To run this benchmark for either spark-2 or
spark-3:
+
`./gradlew -DsparkVersions=4.1 -DscalaVersion=2.13
:iceberg-spark:iceberg-spark-4.1_2.13:jmh
-PjmhIncludeRegex=IcebergSourceNestedParquetDataFilterBenchmark
-PjmhOutputPath=benchmark/iceberg-source-nested-parquet-data-filter-benchmark-result.txt`
### SparkParquetWritersNestedDataBenchmark
-* A benchmark that evaluates the performance of writing nested Parquet data
using Iceberg and Spark Parquet writers. To run this benchmark for either
spark-2 or spark-3:
- `./gradlew -DsparkVersions=4.1 -DscalaVersion=2.13
:iceberg-spark:iceberg-spark-4.1_2.13:jmh
-PjmhIncludeRegex=SparkParquetWritersNestedDataBenchmark
-PjmhOutputPath=benchmark/spark-parquet-writers-nested-data-benchmark-result.txt`
+A benchmark that evaluates the performance of writing nested Parquet data
using Iceberg and Spark Parquet writers. To run this benchmark for either
spark-2 or spark-3:
+
+`./gradlew -DsparkVersions=4.1 -DscalaVersion=2.13
:iceberg-spark:iceberg-spark-4.1_2.13:jmh
-PjmhIncludeRegex=SparkParquetWritersNestedDataBenchmark
-PjmhOutputPath=benchmark/spark-parquet-writers-nested-data-benchmark-result.txt`
diff --git a/site/docs/vendors.md b/site/docs/vendors.md
index 91138ef2b2..f2381afc74 100644
--- a/site/docs/vendors.md
+++ b/site/docs/vendors.md
@@ -43,6 +43,7 @@ CelerData provides commercial offerings for
[StarRocks](https://www.starrocks.io
### [ClickHouse](https://clickhouse.com/)
ClickHouse is a column-oriented database that enables its users to generate
powerful analytics, using SQL queries, in real-time. ClickHouse integrates well
with Iceberg and offers two options to work with it:
+
1. Via Iceberg [table
function](https://clickhouse.com/docs/en/sql-reference/table-functions/iceberg):
Provides a read-only table-like interface to Apache Iceberg tables in Amazon
S3.
2. Via the Iceberg [table
engine](https://clickhouse.com/docs/en/engines/table-engines/integrations/iceberg):
An engine that provides a read-only integration with existing Apache Iceberg
tables in Amazon S3.
@@ -84,6 +85,7 @@ Collate is an AI-native data catalog and governance platform
built on [OpenMetad
### [Dataddo](https://www.dataddo.com/)
[Dataddo](https://www.dataddo.com/) is a fully managed data integration
platform for moving enterprise data across cloud, on-prem, and hybrid
environments, with first-class support for open table formats including Apache
Iceberg.
+
* **Architecture** - Dataddo runs a single control plane that orchestrates
data planes on AWS, Azure, GCP, sovereign clouds or on-premises Kubernetes and
OpenShift, so sensitive data never leaves your network.
* **Transport patterns** - Dataddo supports ETL/ELT, CDC, streaming, reverse
ETL, and batch delivery from hundreds of fully maintained connectors.
* **Iceberg support** - Dataddo writes to Apache Iceberg via catalogs such as
AWS Glue, REST and others, and automatically detects source schema drift so
downstream tables don't silently break.
diff --git a/site/markdownlint.yml b/site/markdownlint.yml
index 9434356521..74c0aadba3 100644
--- a/site/markdownlint.yml
+++ b/site/markdownlint.yml
@@ -67,3 +67,5 @@ plugins:
code-fence-style:
enabled: true
+ blanks-around-lists:
+ enabled: true