Skip to content

Wait for ClickHouse mutations in execute test - #30788

Merged
ebyhr merged 1 commit into
trinodb:masterfrom
daviddallakyan2005:clickhouse-execute-mutation-wait
Aug 19, 2026
Merged

Wait for ClickHouse mutations in execute test#30788
ebyhr merged 1 commit into
trinodb:masterfrom
daviddallakyan2005:clickhouse-execute-mutation-wait

Conversation

@daviddallakyan2005

@daviddallakyan2005 daviddallakyan2005 commented Aug 18, 2026

Copy link
Copy Markdown
Member

Description

testExecuteProcedure reads immediately after CALL system.execute of ClickHouse ALTER TABLE ... UPDATE and ALTER DELETE. Those MergeTree mutations are asynchronous, so the next SELECT can still see the old rows. Wait with assertEventually until the mutation is visible. The native ALTER SQL is unchanged.

Fixes #30787

Additional context and related issues

Showed up on #30744 CI (plugin/trino-clickhouse on run 32138340060). That PR does not change ClickHouse. This wait is a separate test fix. Reviewer requested: ebyhr.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@github-actions github-actions Bot added the clickhouse ClickHouse connector label Aug 18, 2026
@daviddallakyan2005

Copy link
Copy Markdown
Member Author

@ebyhr test-only wait for async MergeTree mutations in testExecuteProcedure. Could you take a look?

@daviddallakyan2005

Copy link
Copy Markdown
Member Author

@cla-bot check

MergeTree ALTER UPDATE and DELETE are async. Read after
system.execute once the mutation is visible.
@ebyhr
ebyhr force-pushed the clickhouse-execute-mutation-wait branch from 926d5ca to 6480ca7 Compare August 19, 2026 00:39
@ebyhr
ebyhr enabled auto-merge August 19, 2026 00:39
@ebyhr
ebyhr added this pull request to the merge queue Aug 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 19, 2026
@ebyhr
ebyhr added this pull request to the merge queue Aug 19, 2026
Merged via the queue into trinodb:master with commit 71c3bc8 Aug 19, 2026
18 checks passed
@github-actions github-actions Bot added this to the 484 milestone Aug 19, 2026
@ebyhr

ebyhr commented Aug 19, 2026

Copy link
Copy Markdown
Member

Merged, thanks!

@daviddallakyan2005
daviddallakyan2005 deleted the clickhouse-execute-mutation-wait branch August 19, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed clickhouse ClickHouse connector

Development

Successfully merging this pull request may close these issues.

Flaky ClickHouse testExecuteProcedure after ALTER UPDATE

2 participants