Skip to content

Remove duplicate entries from SettingsChangesHistory - #103376

Merged
fm4v merged 3 commits into
masterfrom
nik/dedup-settings-history-26.4
Apr 27, 2026
Merged

fm4v merged 3 commits into
masterfrom
nik/dedup-settings-history-26.4

Conversation

@fm4v

@fm4v fm4v commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Remove duplicate entries in src/Core/SettingsChangesHistory.cpp:

  • materialize_statistics_on_insert and enable_join_transitive_predicates appeared twice in the 26.4 block.
  • enable_materialized_cte appeared in both the 26.3 and 26.4 blocks; kept the 26.3 entry since that is where the setting was introduced.
  • shared_merge_tree_replica_set_max_lifetime_seconds appeared in the MergeTree 26.2, 26.3 and 26.4 blocks; removed the redundant 26.3 entry (kept 26.2 as the introduction and 26.4 as the default-value change).

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):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.5.1.135
  • Backported to: 26.4.3.22

- materialize_statistics_on_insert and enable_join_transitive_predicates
  appeared twice in the 26.4 block.
- enable_materialized_cte appeared in both the 26.3 and 26.4 blocks;
  kept the 26.3 entry since that is where the setting was introduced.
- shared_merge_tree_replica_set_max_lifetime_seconds appeared in the
  MergeTree 26.2, 26.3 and 26.4 blocks; removed the redundant 26.3 entry.
@clickhouse-gh

clickhouse-gh Bot commented Apr 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [ee9b2bc]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) FAIL
test_backup_restore_on_cluster/test_cancel_backup.py::test_short_disconnection_doesnt_stop_restore FAIL cidb, issue ISSUE EXISTS
Unit tests (msan, function_prop_fuzzer) FAIL IGNORED
Unit tests (tsan) ERROR IGNORED

AI Review

Summary

This PR removes four duplicate entries from SettingsChangesHistory.cpp / MergeTree settings history without changing effective compatibility behavior. The kept entries preserve the introduction/default-change points for each setting, so the change is a cleanup and is safe to merge.

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 ✅
No large/binary files ✅
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 Apr 22, 2026
@evillique evillique self-assigned this Apr 23, 2026
@clickhouse-gh

clickhouse-gh Bot commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 83.80% 83.80% +0.00%
Functions 91.10% 91.10% +0.00%
Branches 76.20% 76.30% +0.10%

Changed lines: 100.00% (17/17) · Uncovered code

Full report · Diff report

@fm4v
fm4v added this pull request to the merge queue Apr 27, 2026
Merged via the queue into master with commit 7df6513 Apr 27, 2026
@fm4v
fm4v deleted the nik/dedup-settings-history-26.4 branch April 27, 2026 16:58
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 27, 2026
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Apr 27, 2026
robot-ch-test-poll added a commit that referenced this pull request Apr 27, 2026
Cherry pick #103376 to 26.4: Remove duplicate entries from SettingsChangesHistory
@robot-ch-test-poll robot-ch-test-poll added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Apr 27, 2026
fm4v added a commit that referenced this pull request Apr 28, 2026
Move `enable_materialized_cte` from the 26.3 block to the 26.4 block.
On the 26.4 branch the test baseline is `02995_settings_26_3_1.tsv`
(generated from `v26.3.1.1-new`), which predates the introduction of
`enable_materialized_cte`. The test requires every "new" setting (not in
the baseline) to have an entry with version > 26.3, so the 26.3 entry
alone is not sufficient and the prior dedup that kept only the 26.3
entry — correct on master, where the baseline is 26.4.1 — broke the
test on 26.4.

CI report:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=103614&sha=7155b3c8f74edfebaf58451ec099ae785601abb3&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2%29

Original PR: #103376
fm4v added a commit that referenced this pull request May 15, 2026
Backport #103376 to 26.4: Remove duplicate entries from SettingsChangesHistory
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Move `enable_materialized_cte` from the 26.3 block to the 26.4 block.
On the 26.4 branch the test baseline is `02995_settings_26_3_1.tsv`
(generated from `v26.3.1.1-new`), which predates the introduction of
`enable_materialized_cte`. The test requires every "new" setting (not in
the baseline) to have an entry with version > 26.3, so the 26.3 entry
alone is not sufficient and the prior dedup that kept only the 26.3
entry — correct on master, where the baseline is 26.4.1 — broke the
test on 26.4.

CI report:
https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=103614&sha=7155b3c8f74edfebaf58451ec099ae785601abb3&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2%29

Original PR: ClickHouse#103376
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…3376

Backport ClickHouse#103376 to 26.4: Remove duplicate entries from SettingsChangesHistory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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 v26.4-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants