1
0

[MINOR] Fix BatchBootstrapOperator initialization (#3520)

This commit is contained in:
Danny Chan
2021-08-22 13:03:22 +08:00
committed by GitHub
parent be8c1e499f
commit 05e6f44d53

View File

@@ -42,11 +42,16 @@ import java.util.Set;
public class BatchBootstrapOperator<I, O extends HoodieRecord>
extends BootstrapOperator<I, O> {
private final Set<String> partitionPathSet;
private final boolean haveSuccessfulCommits;
private Set<String> partitionPathSet;
private boolean haveSuccessfulCommits;
public BatchBootstrapOperator(Configuration conf) {
super(conf);
}
@Override
public void open() throws Exception {
super.open();
this.partitionPathSet = new HashSet<>();
this.haveSuccessfulCommits = StreamerUtil.haveSuccessfulCommits(hoodieTable.getMetaClient());
}