Skip to content

Disable query condition cache for recursive CTEs - #84026

Merged
rschu1ze merged 7 commits into
ClickHouse:masterfrom
zhongyuankai:fix_qcc_recursive_query
Jul 23, 2025
Merged

rschu1ze merged 7 commits into
ClickHouse:masterfrom
zhongyuankai:fix_qcc_recursive_query

Conversation

@zhongyuankai

@zhongyuankai zhongyuankai commented Jul 19, 2025 •

Copy link
Copy Markdown
Contributor

Resolves #81506

Also includes a minor fix for plaintext conditions in query condition cache

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed wrong results when the query condition cache is used in conjunction with recursive CTEs (issue #81506)

@bharatnc bharatnc added the can be tested Allows running workflows for external contributors label Jul 19, 2025
@clickhouse-gh

clickhouse-gh Bot commented Jul 19, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [a65ebd8]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_msan, parallel, 2/2) failure
01825_new_type_json_ghdata_insert_select FAIL
Stress test (amd_debug) failure
Server died FAIL
Hung check failed, possible deadlock found (see hung_check.log) FAIL
Cannot start clickhouse-server FAIL
Server failed to start (see application_errors.txt and clickhouse-server.clean.log) FAIL
Killed by signal (in clickhouse-server.log) FAIL
Fatal message in clickhouse-server.log (see fatal_messages.txt) FAIL
Killed by signal (output files) FAIL
Found signal in gdb.log FAIL

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Jul 19, 2025
@zhongyuankai
zhongyuankai force-pushed the fix_qcc_recursive_query branch from 3e9a782 to ace31ec Compare July 20, 2025 03:32
@zhongyuankai

Copy link
Copy Markdown
Contributor Author

@rschu1ze Can you help review?

@rschu1ze rschu1ze self-assigned this Jul 22, 2025
@rschu1ze

Copy link
Copy Markdown
Member

@zhongyuankai I'll check today, thanks a lot!

@rschu1ze rschu1ze changed the title Query condition cache: Fixed the recursive query result in incorrect Disable query condition cache for recursive CTEs Jul 22, 2025
@rschu1ze rschu1ze added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-must-backport Pull request should be backported intentionally. Use this label with great care! and removed pr-backport Changes, backported to release branch. Do not use manually - automated use only! labels Jul 22, 2025
@rschu1ze

Copy link
Copy Markdown
Member

Stateless tests (amd_msan, parallel, 2/2):

@rschu1ze
rschu1ze enabled auto-merge July 23, 2025 08:14
@rschu1ze
rschu1ze added this pull request to the merge queue Jul 23, 2025
Merged via the queue into ClickHouse:master with commit 480ca6a Jul 23, 2025
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 23, 2025
@robot-clickhouse robot-clickhouse added pr-backports-created-cloud deprecated label, NOOP pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Jul 23, 2025
clickhouse-gh Bot added a commit that referenced this pull request Jul 23, 2025
Backport #84026 to 25.7: Disable query condition cache for recursive CTEs
rschu1ze added a commit that referenced this pull request Jul 23, 2025
Backport #84026 to 25.6: Disable query condition cache for recursive CTEs
rschu1ze added a commit that referenced this pull request Jul 23, 2025
Backport #84026 to 25.5: Disable query condition cache for recursive CTEs
rschu1ze added a commit that referenced this pull request Jul 23, 2025
Backport #84026 to 25.4: Disable query condition cache for recursive CTEs
@robot-clickhouse robot-clickhouse added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jul 23, 2025
Algunenano added a commit that referenced this pull request Jul 24, 2025
Algunenano added a commit that referenced this pull request Jul 24, 2025
Algunenano added a commit that referenced this pull request Jul 24, 2025
Algunenano added a commit that referenced this pull request Jul 24, 2025
Algunenano added a commit that referenced this pull request Jul 24, 2025
…84026

Revert "Backport #84026 to 25.7: Disable query condition cache for recursive CTEs"
Algunenano added a commit that referenced this pull request Jul 24, 2025
…84026

Revert "Backport #84026 to 25.6: Disable query condition cache for recursive CTEs"
Algunenano added a commit that referenced this pull request Jul 24, 2025
…84026

Revert "Backport #84026 to 25.5: Disable query condition cache for recursive CTEs"
Algunenano added a commit that referenced this pull request Jul 24, 2025
…84026

Revert "Backport #84026 to 25.4: Disable query condition cache for recursive CTEs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-backports-created-cloud deprecated label, NOOP pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recursive query inconsistently lose part of result when use_query_condition_cache is enabled

5 participants