Skip to content

Add test: No test for SummingMergeTree/AggregatingMergeTree FINAL + WH - #101268

Merged
yariks5s merged 8 commits into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr98242
Apr 8, 2026
Merged

yariks5s merged 8 commits into
ClickHouse:masterfrom
clickgapai:qa-bot/coverage-pr98242

Conversation

@clickgapai

@clickgapai clickgapai commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.

Retrospective finding from a historical scan of PR #98242 (merged 2026-03-01). Confirmed on current codebase — close with a note if already fixed.

Adds test coverage for 1 untested code path(s), found during automated review of PR #98242.

1. No test for SummingMergeTree/AggregatingMergeTree FINAL + WHERE on non-sorting partition key
src/Processors/QueryPlan/ReadFromMergeTree.cpp:2197, tests/queries/0_stateless/03742_apply_row_policy_after_final.sql:176

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Not applicable — test-only change.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Found during review of PR #98242.

Version info

  • Merged into: 26.4.1.655

@zlareb1 zlareb1 added the can be tested Allows running workflows for external contributors label Mar 30, 2026
@clickhouse-gh

clickhouse-gh Bot commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [734a3c5]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_asan_ubsan, distributed plan, parallel, 2/2) failure
03315_query_log_privileges_backup_restore FAIL cidb

AI Review

Summary

This PR adds stateless coverage for FINAL with WHERE conditions on non-sorting partition keys in SummingMergeTree and AggregatingMergeTree. I reviewed the SQL/reference pair and did not find correctness, safety, performance, or compatibility issues in the added test logic. Existing clickhouse-gh[bot] inline feedback appears to have been addressed in the current patch, and I found no additional high-signal findings to post inline.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 30, 2026
@clickgapai

Copy link
Copy Markdown
Contributor Author

CI failure in Stress test (arm_msan), Stress test (arm_tsan), Integration tests (amd_llvm_coverage, 2/5) appears to be unrelated breakage and is not related to this change. Let me know if you'd like me to merge master and retrigger CI.

@alexey-milovidov

Copy link
Copy Markdown
Member

The Stress test (arm_msan) failure is fixed by #101239, which should be merged first. After it is merged, please update the branch to include the fix.

@clickgapai

Copy link
Copy Markdown
Contributor Author

Understood — the Stress test (arm_msan) failure is a known issue addressed by #101239 and is unrelated to this PR's test. I'll update the branch to include that fix once #101239 is merged.

@yariks5s

yariks5s commented Apr 8, 2026 •

Copy link
Copy Markdown
Member

03315_query_log_privileges_backup_restore is failing on master and not related to this PR

@yariks5s
yariks5s added this pull request to the merge queue Apr 8, 2026
Merged via the queue into ClickHouse:master with commit 757bf5a Apr 8, 2026
159 of 160 checks passed
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 8, 2026
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-not-for-changelog This PR should not be mentioned in the changelog 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.

5 participants