You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by pv...@apache.org on 2026/07/24 13:18:14 UTC

(iceberg) branch main updated: Doc: Fix incorrect weight value description for range-distribution-sort-key-base-weight in Flink (#17351)

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

pvary 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 19b0009983 Doc: Fix incorrect weight value description for range-distribution-sort-key-base-weight in Flink (#17351)
19b0009983 is described below

commit 19b00099831f3036604eccc4298445a78df11a47
Author: GuoYu <51...@qq.com>
AuthorDate: Fri Jul 24 21:18:07 2026 +0800

    Doc: Fix incorrect weight value description for range-distribution-sort-key-base-weight in Flink (#17351)
---
 docs/docs/flink-configuration.md                                      | 4 ++--
 .../flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java  | 4 ++--
 .../src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java      | 4 ++--
 .../flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java  | 4 ++--
 .../src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java      | 4 ++--
 .../flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java  | 4 ++--
 .../src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java      | 4 ++--
 7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/docs/docs/flink-configuration.md b/docs/docs/flink-configuration.md
index 2f70cbf576..3adb826d34 100644
--- a/docs/docs/flink-configuration.md
+++ b/docs/docs/flink-configuration.md
@@ -181,7 +181,7 @@ than a threshold (currently 10,000), statistics are automatically switched to Sk
 
 If sort order contains partition columns, each sort key would map to one partition and data
 file. This relative weight can avoid placing too many small files for sort keys with low
-traffic. It is a double value that defines the minimal weight for each sort key. `0.02` means
+traffic. It is a double value that defines the minimal weight for each sort key. `2.0` means
 each key has a base weight of `2%` of the targeted traffic weight per writer task.
 
 E.g. the sink Iceberg table is partitioned daily by event time. Assume the data stream
@@ -193,7 +193,7 @@ task would be `1,000`. Assume the weight sum for the oldest 150 days is `1,000`.
 the range partitioner would put all the oldest 150 days in one writer task. That writer task
 would write to 150 small files (one per day). Keeping 150 open files can potentially consume
 large amount of memory. Flushing and uploading 150 files (however small) at checkpoint time
-can also be potentially slow. If this config is set to `0.02`. It means every sort key has a
+can also be potentially slow. If this config is set to `2.0`. It means every sort key has a
 base weight of `2%` of targeted weight of `1,000` for every write task. It would essentially
 avoid placing more than `50` data files (one per day) on one writer task no matter how small
 they are.
diff --git a/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java b/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
index 90fbdc5c23..afb6bece17 100644
--- a/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
+++ b/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
@@ -309,7 +309,7 @@ public class FlinkSink {
     /**
      * If sort order contains partition columns, each sort key would map to one partition and data
      * file. This relative weight can avoid placing too many small files for sort keys with low
-     * traffic. It is a double value that defines the minimal weight for each sort key. `0.02` means
+     * traffic. It is a double value that defines the minimal weight for each sort key. `2.0` means
      * each key has a base weight of `2%` of the targeted traffic weight per writer task.
      *
      * <p>E.g. the sink Iceberg table is partitioned daily by event time. Assume the data stream
@@ -321,7 +321,7 @@ public class FlinkSink {
      * the range partitioner would put all the oldest 150 days in one writer task. That writer task
      * would write to 150 small files (one per day). Keeping 150 open files can potentially consume
      * large amount of memory. Flushing and uploading 150 files (however small) at checkpoint time
-     * can also be potentially slow. If this config is set to `0.02`. It means every sort key has a
+     * can also be potentially slow. If this config is set to `2.0`. It means every sort key has a
      * base weight of `2%` of targeted weight of `1,000` for every write task. It would essentially
      * avoid placing more than `50` data files (one per day) on one writer task no matter how small
      * they are.
diff --git a/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java b/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
index 18e44da496..035881469a 100644
--- a/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
+++ b/flink/v1.20/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
@@ -531,7 +531,7 @@ public class IcebergSink
     /**
      * If sort order contains partition columns, each sort key would map to one partition and data
      * file. This relative weight can avoid placing too many small files for sort keys with low
-     * traffic. It is a double value that defines the minimal weight for each sort key. `0.02` means
+     * traffic. It is a double value that defines the minimal weight for each sort key. `2.0` means
      * each key has a base weight of `2%` of the targeted traffic weight per writer task.
      *
      * <p>E.g. the sink Iceberg table is partitioned daily by event time. Assume the data stream
@@ -543,7 +543,7 @@ public class IcebergSink
      * the range partitioner would put all the oldest 150 days in one writer task. That writer task
      * would write to 150 small files (one per day). Keeping 150 open files can potentially consume
      * large amount of memory. Flushing and uploading 150 files (however small) at checkpoint time
-     * can also be potentially slow. If this config is set to `0.02`. It means every sort key has a
+     * can also be potentially slow. If this config is set to `2.0`. It means every sort key has a
      * base weight of `2%` of targeted weight of `1,000` for every write task. It would essentially
      * avoid placing more than `50` data files (one per day) on one writer task no matter how small
      * they are.
diff --git a/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java b/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
index 86194b4071..bf0b414487 100644
--- a/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
+++ b/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
@@ -310,7 +310,7 @@ public class FlinkSink {
     /**
      * If sort order contains partition columns, each sort key would map to one partition and data
      * file. This relative weight can avoid placing too many small files for sort keys with low
-     * traffic. It is a double value that defines the minimal weight for each sort key. `0.02` means
+     * traffic. It is a double value that defines the minimal weight for each sort key. `2.0` means
      * each key has a base weight of `2%` of the targeted traffic weight per writer task.
      *
      * <p>E.g. the sink Iceberg table is partitioned daily by event time. Assume the data stream
@@ -322,7 +322,7 @@ public class FlinkSink {
      * the range partitioner would put all the oldest 150 days in one writer task. That writer task
      * would write to 150 small files (one per day). Keeping 150 open files can potentially consume
      * large amount of memory. Flushing and uploading 150 files (however small) at checkpoint time
-     * can also be potentially slow. If this config is set to `0.02`. It means every sort key has a
+     * can also be potentially slow. If this config is set to `2.0`. It means every sort key has a
      * base weight of `2%` of targeted weight of `1,000` for every write task. It would essentially
      * avoid placing more than `50` data files (one per day) on one writer task no matter how small
      * they are.
diff --git a/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java b/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
index 70f8c63e63..18f039542d 100644
--- a/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
+++ b/flink/v2.0/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
@@ -531,7 +531,7 @@ public class IcebergSink
     /**
      * If sort order contains partition columns, each sort key would map to one partition and data
      * file. This relative weight can avoid placing too many small files for sort keys with low
-     * traffic. It is a double value that defines the minimal weight for each sort key. `0.02` means
+     * traffic. It is a double value that defines the minimal weight for each sort key. `2.0` means
      * each key has a base weight of `2%` of the targeted traffic weight per writer task.
      *
      * <p>E.g. the sink Iceberg table is partitioned daily by event time. Assume the data stream
@@ -543,7 +543,7 @@ public class IcebergSink
      * the range partitioner would put all the oldest 150 days in one writer task. That writer task
      * would write to 150 small files (one per day). Keeping 150 open files can potentially consume
      * large amount of memory. Flushing and uploading 150 files (however small) at checkpoint time
-     * can also be potentially slow. If this config is set to `0.02`. It means every sort key has a
+     * can also be potentially slow. If this config is set to `2.0`. It means every sort key has a
      * base weight of `2%` of targeted weight of `1,000` for every write task. It would essentially
      * avoid placing more than `50` data files (one per day) on one writer task no matter how small
      * they are.
diff --git a/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java b/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
index 86194b4071..bf0b414487 100644
--- a/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
+++ b/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/FlinkSink.java
@@ -310,7 +310,7 @@ public class FlinkSink {
     /**
      * If sort order contains partition columns, each sort key would map to one partition and data
      * file. This relative weight can avoid placing too many small files for sort keys with low
-     * traffic. It is a double value that defines the minimal weight for each sort key. `0.02` means
+     * traffic. It is a double value that defines the minimal weight for each sort key. `2.0` means
      * each key has a base weight of `2%` of the targeted traffic weight per writer task.
      *
      * <p>E.g. the sink Iceberg table is partitioned daily by event time. Assume the data stream
@@ -322,7 +322,7 @@ public class FlinkSink {
      * the range partitioner would put all the oldest 150 days in one writer task. That writer task
      * would write to 150 small files (one per day). Keeping 150 open files can potentially consume
      * large amount of memory. Flushing and uploading 150 files (however small) at checkpoint time
-     * can also be potentially slow. If this config is set to `0.02`. It means every sort key has a
+     * can also be potentially slow. If this config is set to `2.0`. It means every sort key has a
      * base weight of `2%` of targeted weight of `1,000` for every write task. It would essentially
      * avoid placing more than `50` data files (one per day) on one writer task no matter how small
      * they are.
diff --git a/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java b/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
index a9be7db8e6..f208ddd620 100644
--- a/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
+++ b/flink/v2.1/flink/src/main/java/org/apache/iceberg/flink/sink/IcebergSink.java
@@ -532,7 +532,7 @@ public class IcebergSink
     /**
      * If sort order contains partition columns, each sort key would map to one partition and data
      * file. This relative weight can avoid placing too many small files for sort keys with low
-     * traffic. It is a double value that defines the minimal weight for each sort key. `0.02` means
+     * traffic. It is a double value that defines the minimal weight for each sort key. `2.0` means
      * each key has a base weight of `2%` of the targeted traffic weight per writer task.
      *
      * <p>E.g. the sink Iceberg table is partitioned daily by event time. Assume the data stream
@@ -544,7 +544,7 @@ public class IcebergSink
      * the range partitioner would put all the oldest 150 days in one writer task. That writer task
      * would write to 150 small files (one per day). Keeping 150 open files can potentially consume
      * large amount of memory. Flushing and uploading 150 files (however small) at checkpoint time
-     * can also be potentially slow. If this config is set to `0.02`. It means every sort key has a
+     * can also be potentially slow. If this config is set to `2.0`. It means every sort key has a
      * base weight of `2%` of targeted weight of `1,000` for every write task. It would essentially
      * avoid placing more than `50` data files (one per day) on one writer task no matter how small
      * they are.