You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by vh...@apache.org on 2026/07/11 08:42:08 UTC
(hudi) branch master updated: Remove spaces around partition columns (#18423)
This is an automated email from the ASF dual-hosted git repository.
voonhous 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 541ab01b9f5a Remove spaces around partition columns (#18423)
541ab01b9f5a is described below
commit 541ab01b9f5a2ef039cfb90738541329fbb91bc6
Author: Lin Liu <14...@users.noreply.github.com>
AuthorDate: Sat Jul 11 01:42:02 2026 -0700
Remove spaces around partition columns (#18423)
---
.../src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java b/hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java
index 6573ceed6b8e..99f4cfdfd289 100644
--- a/hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java
+++ b/hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java
@@ -736,6 +736,7 @@ public class HoodieTableConfig extends HoodieConfig {
public static Option<String[]> getPartitionFields(HoodieConfig config) {
if (contains(PARTITION_FIELDS, config)) {
return Option.of(Arrays.stream(config.getString(PARTITION_FIELDS).split(BaseKeyGenerator.FIELD_SEPARATOR))
+ .map(String::trim)
.filter(p -> !p.isEmpty())
.map(p -> getPartitionFieldWithoutKeyGenPartitionType(p, config))
.collect(Collectors.toList()).toArray(new String[] {}));