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

[hotfix] fix exceptions caused by operator priority in connector-clickhouse when using sharding_key #8162

Merged
merged 9 commits into from
Jan 7, 2025

Conversation

supernovaYe
Copy link
Contributor

Purpose of this pull request

fix of #8161

Does this PR introduce any user-facing change?

no

How was this patch tested?

tested locally using over 10000 data points and obtained the maximum and minimum values of the modulus after hashing

Check list

&Operator priority is lower than%, resulting in the program not executing as expected
@sunxiaojian
Copy link
Contributor

Run mvn spotless:apply to fix ci

@sunxiaojian
Copy link
Contributor

Run mvn spotless:apply to fix ci

@supernovaYe please fix ci

@Hisoka-X
Copy link
Member

Hisoka-X commented Dec 3, 2024

@supernovaYe
Copy link
Contributor Author

Sure, I will fix ci and complete an unit tests after I finish my work

yeside and others added 6 commits January 6, 2025 17:29
 into dev

# Conflicts:
#	seatunnel-connectors-v2/connector-clickhouse/src/main/java/org/apache/seatunnel/connectors/seatunnel/clickhouse/sink/client/ShardRouter.java
Comment on lines 47 to 48
@Test
public void test() {
Copy link
Member

Choose a reason for hiding this comment

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

This test case useless. Please remove it.

}

@Test
public void test2() {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public void test2() {
public void testWithShardRouterGetShardRight() {

@Hisoka-X Hisoka-X added the First-time contributor First-time contributor label Jan 7, 2025
@hailin0 hailin0 merged commit 5560e3d into apache:dev Jan 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants