[HUDI-3621] Fixing NullPointerException in DeltaStreamer (#5039)
This commit is contained in:
committed by
GitHub
parent
003c6ee73e
commit
22c3ce73db
@@ -910,6 +910,10 @@ public class DeltaSync implements Serializable {
|
|||||||
* @return Requested clustering instant.
|
* @return Requested clustering instant.
|
||||||
*/
|
*/
|
||||||
public Option<String> getClusteringInstantOpt() {
|
public Option<String> getClusteringInstantOpt() {
|
||||||
|
if (writeClient != null) {
|
||||||
return writeClient.scheduleClustering(Option.empty());
|
return writeClient.scheduleClustering(Option.empty());
|
||||||
|
} else {
|
||||||
|
return Option.empty();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user