Skip to content

Commit

Permalink
fix hive sync no partition table error (apache#5585)
Browse files Browse the repository at this point in the history
  • Loading branch information
bettermouse authored and yihua committed Jun 3, 2022
1 parent bf4f973 commit dea1836
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -73,7 +75,7 @@ public List<String> getStringList(String property, String delimiter, List<String
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) {
Expand Down

0 comments on commit dea1836

Please sign in to comment.