[HUDI-3185] HoodieConfig#getBoolean should return false when default not set (#4536)
Remove unnecessary config
This commit is contained in:
@@ -146,6 +146,9 @@ public class HoodieConfig implements Serializable {
|
||||
}
|
||||
|
||||
public <T> Boolean getBoolean(ConfigProperty<T> configProperty) {
|
||||
if (configProperty.hasDefaultValue()) {
|
||||
return getBooleanOrDefault(configProperty);
|
||||
}
|
||||
Option<Object> rawValue = getRawValue(configProperty);
|
||||
return rawValue.map(v -> Boolean.parseBoolean(v.toString())).orElse(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user