Skip to content

Commit

Permalink
[flink] Fix that sink.parallelism doesn't work in compact_database ac…
Browse files Browse the repository at this point in the history
…tion (apache#2830)
  • Loading branch information
yuzelin authored Jan 31, 2024
1 parent 0bee22e commit 28eebed
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@

import javax.annotation.Nullable;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -142,11 +141,11 @@ private void buildForDividedMode() {
table.getClass().getName()));
continue;
}
Map<String, String> dynamicOptions =
new HashMap<>(tableOptions.toMap());
dynamicOptions.put(CoreOptions.WRITE_ONLY.key(), "false");
FileStoreTable fileStoreTable =
(FileStoreTable)
table.copy(
Collections.singletonMap(
CoreOptions.WRITE_ONLY.key(), "false"));
(FileStoreTable) table.copy(dynamicOptions);
tableMap.put(fullTableName, fileStoreTable);
} else {
LOG.debug("The table {} is excluded.", fullTableName);
Expand Down

0 comments on commit 28eebed

Please sign in to comment.