Skip to content

Conversation

mxm
Copy link
Contributor

@mxm mxm commented Sep 26, 2025

This adds the option to automatically set the write parallelism to the max available write parallelism, i.e. the job parallelism.

@github-actions github-actions bot added the flink label Sep 26, 2025
Copy link
Contributor

@Guosmilesmile Guosmilesmile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments.

static int firstPositive(int first, int second) {
if (first > 0) {
return first;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new line.

}
if (second > 0) {
return second;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new line

if (second > 0) {
return second;
}
throw new IllegalArgumentException("None of the supplied ints were positive!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we print out both values to facilitate troubleshooting?

* @param rowData The data matching the provided schema.
* @param partitionSpec The target table {@link PartitionSpec}.
* @param distributionMode The {@link DistributionMode}.
* @param writeParallelism The number of parallel writers. If set to {@literal <= 0}, will
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we set it to MAX_INT. It is easier to calculate with min later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants