Skip to content

Commit

Permalink
fix hive sync no partition table error (#5585)
Browse files Browse the repository at this point in the history
  • Loading branch information
bettermouse authored May 16, 2022
1 parent 75f8476 commit 1fded18
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 1fded18

Please sign in to comment.