Skip to content

Commit

Permalink
Change the way for getting configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
fandonglai committed Jul 20, 2023
1 parent bdab8d6 commit 112d1ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public List<Dataset<Row>> execute(List<Dataset<Row>> upstreamDataStreams)
CommonOptions.PARALLELISM.defaultValue());
}
if (sinkConfig.hashPath(CommonOptions.PARTITION_BALANCE.key())) {
boolean needBalance = sinkConfig.getBoolean();
boolean needBalance = sinkConfig.getBoolean(CommonOptions.PARTITION_BALANCE.key());
if (needBalance) {
dataset = dataset.repartition(parallelism);
}
Expand Down

0 comments on commit 112d1ce

Please sign in to comment.