[MINOR] Optimize code logic (#5499)
This commit is contained in:
@@ -625,8 +625,8 @@ public class HoodieDeltaStreamer implements Serializable {
|
|||||||
ValidationUtils.checkArgument(baseFileFormat.equals(cfg.baseFileFormat) || cfg.baseFileFormat == null,
|
ValidationUtils.checkArgument(baseFileFormat.equals(cfg.baseFileFormat) || cfg.baseFileFormat == null,
|
||||||
"Hoodie table's base file format is of type " + baseFileFormat + " but passed in CLI argument is "
|
"Hoodie table's base file format is of type " + baseFileFormat + " but passed in CLI argument is "
|
||||||
+ cfg.baseFileFormat);
|
+ cfg.baseFileFormat);
|
||||||
cfg.baseFileFormat = meta.getTableConfig().getBaseFileFormat().toString();
|
cfg.baseFileFormat = baseFileFormat;
|
||||||
this.cfg.baseFileFormat = cfg.baseFileFormat;
|
this.cfg.baseFileFormat = baseFileFormat;
|
||||||
} else {
|
} else {
|
||||||
tableType = HoodieTableType.valueOf(cfg.tableType);
|
tableType = HoodieTableType.valueOf(cfg.tableType);
|
||||||
if (cfg.baseFileFormat == null) {
|
if (cfg.baseFileFormat == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user