From d42c1696da019094071b2c6fe94e05957218360f Mon Sep 17 00:00:00 2001 From: jackylee Date: Fri, 7 Aug 2026 22:13:59 +0800 Subject: [PATCH] [core] Fix stale default value in sort-compaction.range-strategy description The description still said the default is quantity, but #6826 changed defaultValue to RangeStrategy.SIZE. Regenerated core_configuration.html. --- docs/generated/core_configuration.html | 4 ++-- .../src/main/java/org/apache/paimon/CoreOptions.java | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/generated/core_configuration.html b/docs/generated/core_configuration.html index 434ad801394a..97aad929751b 100644 --- a/docs/generated/core_configuration.html +++ b/docs/generated/core_configuration.html @@ -1612,8 +1612,8 @@
sort-compaction.range-strategy
SIZE

Enum

- The range strategy of sort compaction, the default value is quantity. -If the data size allocated for the sorting task is uneven,which may lead to performance bottlenecks, the config can be set to size.

Possible values: + The range strategy of sort compaction, the default value is size. +The size strategy ranges by the data size allocated to each sorting task, which avoids the performance bottlenecks caused by uneven data size. The config can be set to quantity to range by the number of rows instead.

Possible values:
sort-engine
diff --git a/paimon-api/src/main/java/org/apache/paimon/CoreOptions.java b/paimon-api/src/main/java/org/apache/paimon/CoreOptions.java index bc1a2102bc78..3c644d953b56 100644 --- a/paimon-api/src/main/java/org/apache/paimon/CoreOptions.java +++ b/paimon-api/src/main/java/org/apache/paimon/CoreOptions.java @@ -2166,9 +2166,10 @@ public String toString() { .enumType(RangeStrategy.class) .defaultValue(RangeStrategy.SIZE) .withDescription( - "The range strategy of sort compaction, the default value is quantity.\n" - + "If the data size allocated for the sorting task is uneven,which may lead to performance bottlenecks, " - + "the config can be set to size."); + "The range strategy of sort compaction, the default value is size.\n" + + "The size strategy ranges by the data size allocated to each sorting task, which avoids " + + "the performance bottlenecks caused by uneven data size. " + + "The config can be set to quantity to range by the number of rows instead."); public static final ConfigOption SORT_COMPACTION_SAMPLE_MAGNIFICATION = key("sort-compaction.local-sample.magnification")