Skip to content

Keep use_query_condition_cache_for_time_conditions experimental and disabled on master, as in 26.10 - #127687

Merged
alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
groeneai:groeneai/settings-history-time-conditions-26-10
Oct 25, 2026
Merged

alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
groeneai:groeneai/settings-history-time-conditions-26-10

Conversation

@groeneai

@groeneai groeneai commented Oct 24, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #127632

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

...

Description

Since v26.10.2.103-stable was published (2026-10-24 04:17 UTC), Upgrade check (amd_release) fails on every PR with Changed settings are not reflected in the settings changes history, and changed_settings.txt holds one row: use_query_condition_cache_for_time_conditions | 1 | 0 (example).

#127632 marked use_query_condition_cache_for_time_conditions and query_condition_cache_time_condition_grid_factor experimental on the 26.10 branch and disabled the first one by default. Master kept both in the production tier, with the first one enabled and recorded as enabled in 26.10.

This PR makes master match 26.10: both declarations and their 26.10 records are byte-identical to v26.10.2.103-stable, and the concept page says the derivation is experimental and disabled by default. The settings-history check requires a 26.11 record because the default changes against master. It is {"26.11", false, false, ...}: a previous value of true would make compatibility = '26.10' enable a setting that 26.10 ships disabled. The 26.11 records of the external IN settings, which were backported to 26.10, have the same shape.

Validation, locally, with the official 26.10.2.103 binary as the previous release and the check's query copied verbatim: unfixed master reports exactly CI's row, this PR reports none. The setting is 0 and Experimental by default and with compatibility from 26.8 to 26.11. ci/jobs/scripts/settings_history.py is OK. 03999_stateless_settings_history, 03413_experimental_settings_cannot_be_enabled_by_default, 03257_setting_tiers, the six *_query_condition_cache_time_conditions* tests (they enable the setting explicitly) and 16 other query condition cache tests pass.

#127479 replaces both settings on master; if it merges after this PR, the conflict resolves by taking its side.

🤖 Generated with Claude Code


Workflow [PR]
Sync PR [sync-upstream/pr/127687]

Version info

  • Merged into: 26.11.1.742-master (included in 26.11 and later)

…ions

ClickHouse#127632 made `use_query_condition_cache_for_time_conditions` default to
false (and experimental) on the 26.10 release branch, and that is what
v26.10.2.103-stable ships. Master kept the default true, with a single
history record claiming the default already became true in 26.10.

Since v26.10.2.103 is now the previous release in the Upgrade check, the
check sees the 0 -> 1 change without a history record newer than 26.10
and fails on every PR ("Changed settings are not reflected in the
settings changes history"). `compatibility = '26.10'` on master also
gave true, while the 26.10 release gives false.

Record what each release ships: the 26.10 record is now the 26.10
branch's own (false -> false, byte-identical), and a 26.11 record
enables it. The declaration and the master default are unchanged.

Related: ClickHouse#127632
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings), plus my own cold review of the diff (1 nit).

# Sev Finding Verdict Evidence / action
1 💡 The 26.10 record of query_condition_cache_time_condition_grid_factor on master says "New setting", the 26.10 release says "New experimental setting" AGREE, noted, not blocking #127632 changed only its tier and reason text; the value is 1 on both, and the Upgrade check and compatibility read values only. No change.

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are
terminal per finding.

Session id: cron:clickhouse-review-slot-9:20261024-054600

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. The changed-settings query of upgrade_runner.sh, run against a settings dump of the official 26.10.2.103 binary, reports use_query_condition_cache_for_time_conditions | 1 | 0 on unfixed master every time (no randomization involved).
b Root cause explained? Yes. #127632 changed the 26.10 default to false (record {"26.10", false, false}) on the release branch only; master kept {"26.10", false, true}. The check excuses a value change only by a record newer than the previous release (> 2610), so the 0 -> 1 change is unrecorded.
c Fix matches root cause? Yes. The history record is corrected; the check is not relaxed and the default is not changed.
d Test intent preserved / new tests added? No test changes. Only the Upgrade check sees the released defaults; a stateless test pinning this setting would break when #127479 deletes it. Existing settings-history and feature tests pass.
e Both directions demonstrated? Yes. Unfixed: 1 row, compatibility = '26.10' gives 1. Fixed: 0 rows, compatibility = '26.10' gives 0 (= the 26.10 release). Both on Build-ID-verified binaries.
f Fix is general across code paths? Yes. The other setting changed by #127632, query_condition_cache_time_condition_grid_factor, changed only its tier (value 1 on both), which the check and compatibility do not compare. No other row is reported.
g Fix generalizes across inputs (params/datatypes/wrappers)? N/A (a history record). compatibility values none / 26.11 / 26.10 / 26.9 measured: 1 / 1 / 0 / 0.
h Backward compatible? (maintainer-approved exception only) Yes. Master default unchanged; only compatibility = '26.10' changes, to the value 26.10 actually ships. Master-only.
i Invariants and contracts preserved? Yes. Newest record's new_value equals the default (03999_stateless_settings_history passes), records stay newest-first, a 26.10 record still exists and equals the release branch's.

Session id: cron:clickhouse-impl-slot-6:20261024-052400

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @alexey-milovidov @vitlibar, could you review this and add the can be tested label so CI runs? Since v26.10.2.103 the Upgrade check fails on every PR because master still records use_query_condition_cache_for_time_conditions as enabled in 26.10, while #127632 made it experimental and disabled there; this moves the enable to a new 26.11 record and makes the 26.10 record match the release.

@clickhouse-gh

clickhouse-gh Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [95ff854]

Summary: ✅


AI Review

Summary

Keeps use_query_condition_cache_for_time_conditions experimental and disabled on master, marks query_condition_cache_time_condition_grid_factor experimental, and aligns their history and documentation with 26.10. No actionable findings in commit 95ff854cba1786b3c122cc45c4ca0591c00473a5.

Missing context / blind spots
  • ⚠️ The Upgrade check is still pending. Its completed result would independently confirm the reported local reproduction is fixed. The current head passes 03999_stateless_settings_history in Fast test; no local build or runtime tests were run during this review.
Final Verdict

Status: ✅ Approve. No code changes requested.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 24, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-settings Settings & configuration infrastructure (server/user/query settings, profiles). label Oct 24, 2026
This was referenced Oct 24, 2026
@NIKTONIKTO717 NIKTONIKTO717 added the can be tested Allows running workflows for external contributors label Oct 24, 2026
alexey-milovidov added a commit that referenced this pull request Oct 26, 2026
…e-by-default

Master now caches the columns of compact parts too (`Columns cache for compact parts`),
and moved the cache setup of `MergeTreeReaderWide` into `IMergeTreeReader::initColumnsCache`.
Resolve the conflict in `MergeTreeReaderWide` by taking master's side, and make
`initColumnsCache` use `isColumnsCachePossibleForPart`, which no longer requires a wide part.
`ReadFromMergeTree::mayWriteToColumnsCache` no longer requires a wide part either, so a
compact part keeps the string values in full when its columns may be written to the cache,
and `05404_string_filters_columns_cache_ineligible_parts` now expects a compact part to
behave like a wide one. The description of `system.columns_cache` takes master's text.

Master also brings the fix of the `Upgrade check` failure on
`use_query_condition_cache_for_time_conditions`: #127687

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 comp-settings Settings & configuration infrastructure (server/user/query settings, profiles). pr-ci 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