Skip to content

Move join_runtime_filter_min_probe_rows settings-history entry from 26.7 to 26.8 - #111671

Merged
PedroTadim merged 1 commit into
ClickHouse:masterfrom
groeneai:fix-joinruntimefilter-settingshistory-26_8
Jul 24, 2026
Merged

PedroTadim merged 1 commit into
ClickHouse:masterfrom
groeneai:fix-joinruntimefilter-settingshistory-26_8

Conversation

@groeneai

Copy link
Copy Markdown
Collaborator

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

Related: #104860

join_runtime_filter_min_probe_rows was added in #104860 with its SettingsChangesHistory.cpp entry placed in the 26.7 section. Master is now 26.8.1.1, so the entry belongs in the 26.8 section.

The Upgrade check treats a setting as documented only when its history-entry version is strictly greater than the previous release version (upgrade_runner.sh: (major*100 + minor) > old_version). The previous release is now v26.7.1.1315-stable, so old_version = 2607. With the entry in 26.7, 2607 > 2607 is false, so the check reports join_runtime_filter_min_probe_rows as an undocumented new/changed setting and Upgrade check (amd_release) fails on every PR. Moving it to 26.8 gives 2608 > 2607 = true, and the check passes.

Same-day precedent: commit bce71f1 ("allow_lossy_numeric_supertype goes to v26.8") moved another straggler from 26.7 to 26.8 for the same reason. #104860 merged after that move, so its entry landed in the stale 26.7 section.

Verified against a local build (version 26.8.1.1): system.settings_changes now attributes the setting to 26.8, and the exact upgrade check suppression query with old_version = 2607 returns 1 (documented).

…6.7 to 26.8

The setting join_runtime_filter_min_probe_rows was added in ClickHouse#104860 with its
SettingsChangesHistory.cpp entry placed in the 26.7 version section. Master is
now 26.8.1.1, so the entry belongs in the 26.8 section.

The Upgrade check counts a setting as documented only when its history-entry
version is strictly greater than the previous release version (upgrade_runner.sh:
(major*100 + minor) > old_version). The previous release is now v26.7.1.1315-stable,
so old_version = 2607. With the entry in 26.7, 2607 > 2607 is false, so the check
reports the setting as an undocumented new/changed setting and Upgrade check
(amd_release) fails on every PR. Moving it to 26.8 gives 2608 > 2607 = true and the
check passes. Same-day precedent: bce71f1 moved another straggler 26.7 -> 26.8
for the same reason; ClickHouse#104860 merged after that move.

Co-Authored-By: Claude Opus 4.8 <[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; 1 finding; bounded: 1 full pass + 1 fix round + 1 delta recheck).

# Sev Finding Verdict Evidence / action
1 💡 Visible Related line used shorthand #104860 instead of a full GitHub URL AGREE Template linkage block requires full URLs; #104860 is the genuinely-related introducing PR. Updated the PR description to Related: https://github.com/ClickHouse/ClickHouse/pull/104860. PR-body only, no source change.

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

Session id: cron:clickhouse-author-slot-1:20260723-174600

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. The Upgrade check flags a setting as undocumented unless (major*100+minor) > old_version over system.settings_changes. With previous release v26.7.1.1315-stable (old_version=2607) the entry in the 26.7 section gives 2607 > 2607 = 0 (FAIL); 26.8 gives 2608 > 2607 = 1 (PASS). Exact integer arithmetic, deterministic.
b Root cause explained? Yes. #104860 added the join_runtime_filter_min_probe_rows history entry into the 26.7 section, but master is 26.8.1.1. The previous release flipped to 26.7 (packages uploaded 2026-07-22 21:14 UTC), so the check no longer suppresses a 26.7-tagged entry and reports the setting as new/changed.
c Fix matches root cause? Yes. The entry is moved into the current dev-version 26.8 section, exactly matching how the check computes "documented".
d Test intent preserved / new tests added? Yes. No test weakened; the Upgrade check's ability to catch undocumented settings is fully preserved. The Upgrade check itself is the regression test. The file forbids duplicate keys, so this is a MOVE, not an added second entry.
e Both directions demonstrated? Yes. Built locally (26.8.1.1): system.settings_changes now attributes the setting to 26.8 and the exact suppression query with old_version=2607 returns 1 (PASS). Before (26.7): the same query would exclude it (FAIL), matching CIDB.
f Fix is general across code paths? N/A — data-table entry, not a code bug. This is the only straggler setting left in the wrong section (CIDB confirms it is the sole name in new_settings.txt).
g Fix generalizes across inputs (params/datatypes/wrappers)? N/A — data-table entry, not a code bug.
h Backward compatible? (maintainer-approved exception only) Yes. No behavior change; only the version tag on this setting's history entry. Not a settings-default change, not a format change.
i Invariants and contracts preserved? Yes. One entry per setting (file forbids duplicates); entry stays in exactly one version section; setting default (1000) and description unchanged.

Session id: cron:clickhouse-author-slot-1:20260723-174600

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @vitlibar — could you review this? One-line settings-history fix: it moves the join_runtime_filter_min_probe_rows entry from the 26.7 section to 26.8 (master is 26.8.1.1). The entry landed in 26.7 via #104860, and since the previous release is now 26.7 the Upgrade check no longer treats it as documented, so Upgrade check (amd_release) fails on every open PR. Same follow-up as bce71f1.

@clickhouse-gh

clickhouse-gh Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2798609]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_llvm_coverage, old analyzer, s3 storage, DBReplicated, WasmEdge, parallel, 2/3) FAIL
Server died FAIL cidb IGNORED
03236_squashing_high_memory UNKNOWN cidb IGNORED
04541_create_as_select_table_scoped_insert_grant UNKNOWN cidb IGNORED
03033_dist_settings.optimize_skip_unused_shards_rewrite_in_composite_sharding_key UNKNOWN cidb IGNORED
03915_exchange_tables_race UNKNOWN cidb, issue ISSUE EXISTS
04545_iceberg_add_column_nested_field_id_reuse_110877 UNKNOWN cidb IGNORED
03567_join_using_projection_distributed UNKNOWN cidb IGNORED
02479_nullable_primary_key_non_first_column UNKNOWN cidb IGNORED
03231_csv_dont_infer_bool_from_string UNKNOWN cidb IGNORED
02477_age UNKNOWN cidb IGNORED
1 more test cases not shown
Integration tests (amd_tsan, 3/6) FAIL
test_replicated_database/test.py::test_replicated_table_structure_alter FAIL cidb, issue ISSUE EXISTS
Integration tests (amd_msan, 7/8) FAIL
test_replicated_database/test.py::test_replicated_table_structure_alter FAIL cidb, issue ISSUE EXISTS
Stress test (arm_msan) FAIL
Hung check failed, possible deadlock found FAIL cidb, issue ISSUE EXISTS
Upgrade check (amd_release) FAIL
Error message in clickhouse-server.log (see upgrade_error_messages.txt) FAIL cidb IGNORED

AI Review

Summary

This PR moves join_runtime_filter_min_probe_rows from the 26.7 to 26.8 SettingsChangesHistory block so system.settings_changes, compatibility, and the upgrade-check query all classify the setting with the first released version that actually contains it. I verified that the setting was introduced by PR #104860, that current master is 26.8.1.1, and that both SettingsImpl::applyCompatibilitySetting and tests/docker_scripts/upgrade_runner.sh depend on this version boundary exactly as the PR description explains. I did not find a correctness, compatibility, or metadata issue worth an inline review comment.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh

clickhouse-gh Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.20% 86.20% +0.00%
Functions 92.00% 92.00% +0.00%
Branches 78.20% 78.30% +0.10%

Changed lines: Changed C/C++ lines covered: 11/11 (100.00%) · Uncovered code

Full report · Diff report

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 24, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Jul 24, 2026
Pick up ClickHouse#111671 (join_runtime_filter_min_probe_rows settings-history 26.7 to 26.8)
to clear the Upgrade check settings-history line on CI.
alexey-milovidov added a commit that referenced this pull request Jul 24, 2026
…ory entry from 26.7 to 26.8

26.7 has been released without this PR, so the new setting must be recorded
under 26.8. The Upgrade check on https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110567&sha=2dd75ba993cc292453a167bbe26e2534efc5d8c5&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29
reported "New settings are not reflected in settings changes history".
Same move as #111671 did for `join_runtime_filter_min_probe_rows`.

#110567
alexey-milovidov added a commit that referenced this pull request Jul 24, 2026
…7 to 26.8

26.7 has been released (master is now 26.8.1.1) without this PR, so the
Upgrade check flags the two new settings as not reflected in the settings
changes history for the upcoming version. Move the entries for
`aggregation_in_order_shuffle` and
`aggregation_in_order_shuffle_max_buffered_bytes` into the 26.8 section,
mirroring #111671 which did the same for `join_runtime_filter_min_probe_rows`.

Upgrade check report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=110102&sha=latest&name_0=PR&name_1=Upgrade%20check%20(amd_release)

Co-Authored-By: Claude Fable 5 <[email protected]>
alexey-milovidov added a commit that referenced this pull request Jul 25, 2026
The five new settings (`use_columns_cache`, `enable_reads_from_columns_cache`,
`enable_writes_to_columns_cache`, `columns_cache_max_estimated_compressed_bytes_to_write_to_cache`,
`columns_cache_max_bytes_to_write_to_cache`) were recorded under 26.7, but 26.7 has been
released without this PR, so the upgrade check now fails with "New settings are not reflected
in settings changes history". Move the entries to the 26.8 section, same as was done for
`join_runtime_filter_min_probe_rows` in #111671.

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=96844&sha=b0876bf408b6c61e13eb9d802cd27d3e818d8557&name_0=PR&name_1=Upgrade%20check%20%28amd_release%29

Co-Authored-By: Claude Fable 5 <[email protected]>
alexey-milovidov added a commit to niyue/ClickHouse that referenced this pull request Jul 25, 2026
…olumn-matcher

Pulls in the fixes for the unrelated Upgrade check failures: ClickHouse#111671 (move `join_runtime_filter_min_probe_rows` settings-history entry to the correct section) and ClickHouse#111703 (fix `metric_log` rotation readonly-ALTER exceeding `max_query_size`).
Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=105045&sha=d406cf6a81dd0a897336361b40986a51245de652&name_0=PR
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…ter-settingshistory-26_8

Move join_runtime_filter_min_probe_rows settings-history entry from 26.7 to 26.8
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-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.

4 participants