Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mysql] Improve the dynamic chunk size calculation for table with dense distribution #599

Merged
merged 3 commits into from
Nov 12, 2021

Conversation

leonardBang
Copy link
Contributor

No description provided.

* @return -1, 0, or 1 as this {@code arg1} is numerically less than, equal to, or greater than
* {@code arg2}.
*/
public static int doubleCompare(Double arg1, Double arg2) {
Copy link
Member

Choose a reason for hiding this comment

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

The parameters should never be null, use double instead.

@@ -254,11 +257,12 @@ private void testMySqlParallelSource(
}

private String getTableName(String[] captureCustomerTables) {
checkState(captureCustomerTables.length > 0);
if (captureCustomerTables.length == 1) {
return "customers";
Copy link
Member

Choose a reason for hiding this comment

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

return captureCustomerTables[0].

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

LGTM.

@leonardBang leonardBang merged commit 7ae20a1 into apache:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants