You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by si...@apache.org on 2025/04/24 00:37:31 UTC
(hudi) branch master updated: [HUDI-8680] Update doc description for metadata index partition enable (#13214)
This is an automated email from the ASF dual-hosted git repository.
sivabalan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new abae99ca67c [HUDI-8680] Update doc description for metadata index partition enable (#13214)
abae99ca67c is described below
commit abae99ca67c35a51221052861871888e803fec3c
Author: voonhous <vo...@gmail.com>
AuthorDate: Thu Apr 24 08:37:16 2025 +0800
[HUDI-8680] Update doc description for metadata index partition enable (#13214)
---
.../org/apache/hudi/common/config/HoodieMetadataConfig.java | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/hudi-common/src/main/java/org/apache/hudi/common/config/HoodieMetadataConfig.java b/hudi-common/src/main/java/org/apache/hudi/common/config/HoodieMetadataConfig.java
index d13cf86e194..f1a91e8227b 100644
--- a/hudi-common/src/main/java/org/apache/hudi/common/config/HoodieMetadataConfig.java
+++ b/hudi-common/src/main/java/org/apache/hudi/common/config/HoodieMetadataConfig.java
@@ -381,9 +381,18 @@ public final class HoodieMetadataConfig extends HoodieConfig {
public static final ConfigProperty<Boolean> ENABLE_METADATA_INDEX_PARTITION_STATS = ConfigProperty
.key(METADATA_PREFIX + ".index.partition.stats.enable")
+ // The defaultValue(false) here is the initial default, but it's overridden later based on
+ // column stats setting.
.defaultValue(false)
.sinceVersion("1.0.0")
- .withDocumentation("Enable aggregating stats for each column at the storage partition level.");
+ .withDocumentation("Enable aggregating stats for each column at the storage partition level. "
+ + "Enabling this can improve query performance by leveraging partition and column stats "
+ + "for (partition) filtering. "
+ + "Important: The default value for this configuration is dynamically set based on the "
+ + "effective value of " + ENABLE_METADATA_INDEX_COLUMN_STATS.key() + ". If column stats "
+ + "index is enabled (default for Spark engine), partition stats indexing will also be "
+ + "enabled by default. Conversely, if column stats indexing is disabled (default for "
+ + "Flink and Java engines), partition stats indexing will also be disabled by default.");
public static final ConfigProperty<Integer> METADATA_INDEX_PARTITION_STATS_FILE_GROUP_COUNT = ConfigProperty
.key(METADATA_PREFIX + ".index.partition.stats.file.group.count")