Skip to content

Commit

Permalink
[Feature][CONNECTORS-V2-Paimon] Dynamic bucket splitting improves Pai…
Browse files Browse the repository at this point in the history
…mon writing efficiency
  • Loading branch information
hawk9821 committed Aug 21, 2024
1 parent 87b65b2 commit a5d18ee
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ public int getIndexOfSubtask() {
return subtask;
}

@Override
public int getNumberOfParallelSubtasks() {
return 0;
}

@Override
public MetricsContext getMetricsContext() {
// TODO Waiting for Flink and Spark to implement MetricsContext
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ interface Context extends Serializable {
int getIndexOfSubtask();

/** @return parallelism of this writer. */
int getNumberOfParallelSubtasks();
default int getNumberOfParallelSubtasks() {
return 0;
}

/** @return metricsContext of this reader. */
MetricsContext getMetricsContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ public int getIndexOfSubtask() {
return writerContext.getSubtaskId();
}

@Override
public int getNumberOfParallelSubtasks() {
return 0;
}

@Override
public MetricsContext getMetricsContext() {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ public int getIndexOfSubtask() {
return writerContext.getSubtaskId();
}

@Override
public int getNumberOfParallelSubtasks() {
return 0;
}

@Override
public MetricsContext getMetricsContext() {
return new FlinkMetricContext(getStreamingRuntimeContextForV15(writerContext));
Expand Down

0 comments on commit a5d18ee

Please sign in to comment.