Skip to content

Commit

Permalink
[Improve] Empty readOptions in the Build() method of setDorisReadOpti…
Browse files Browse the repository at this point in the history
…ons (#175)
  • Loading branch information
SunShine-1204 authored Aug 10, 2023
1 parent d72d7a9 commit 31f76da
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ public DorisSourceBuilder<OUT> setDeserializer(DorisDeserializationSchema<OUT> d
}

public DorisSource<OUT> build() {
if(readOptions == null){
readOptions = DorisReadOptions.builder().build();
}
return new DorisSource<>(options, readOptions, boundedness, deserializer);
}
}

0 comments on commit 31f76da

Please sign in to comment.