This is an automated email from the ASF dual-hosted git repository. forwardxu 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 1fded18dff fix hive sync no partition table error (#5585) 1fded18dff is described below commit 1fded18dff5bae064479d52b4e44f9fcf5bbb1b7 Author: 陈浩 <bettermous...@gmail.com> AuthorDate: Mon May 16 09:51:24 2022 +0800 fix hive sync no partition table error (#5585) --- .../src/main/java/org/apache/hudi/common/config/TypedProperties.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hudi-common/src/main/java/org/apache/hudi/common/config/TypedProperties.java b/hudi-common/src/main/java/org/apache/hudi/common/config/TypedProperties.java index 09671ba2a3..08015f61b2 100644 --- a/hudi-common/src/main/java/org/apache/hudi/common/config/TypedProperties.java +++ b/hudi-common/src/main/java/org/apache/hudi/common/config/TypedProperties.java @@ -18,6 +18,8 @@ package org.apache.hudi.common.config; +import org.apache.hudi.common.util.StringUtils; + import java.io.Serializable; import java.util.Arrays; import java.util.Enumeration; @@ -73,7 +75,7 @@ public class TypedProperties extends Properties implements Serializable { if (!containsKey(property)) { return defaultVal; } - return Arrays.stream(getProperty(property).split(delimiter)).map(String::trim).collect(Collectors.toList()); + return Arrays.stream(getProperty(property).split(delimiter)).map(String::trim).filter(s -> !StringUtils.isNullOrEmpty(s)).collect(Collectors.toList()); } public int getInteger(String property) {