1
0

fix hive sync no partition table error (#5585)

This commit is contained in:
陈浩
2022-05-16 09:51:24 +08:00
committed by GitHub
parent 75f847691f
commit 1fded18dff

View File

@@ -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) {