close
Skip to content

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

Merged
hailin0 merged 9 commits into
apache:devfrom
supernovaYe:dev
Jan 7, 2025
Merged

[hotfix] fix exceptions caused by operator priority in connector-clickhouse when using sharding_key#8162
hailin0 merged 9 commits into
apache:devfrom
supernovaYe:dev

Conversation

@supernovaYe

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Run mvn spotless:apply to fix ci

@sunxiaojian

Copy link
Copy Markdown
Contributor

Run mvn spotless:apply to fix ci

@supernovaYe please fix ci

@Hisoka-X

Hisoka-X commented Dec 3, 2024

Copy link
Copy Markdown
Member

@supernovaYe

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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.

4 participants