Skip to content

Randomize text index posting list apply mode - #108814

Merged
CurtizJ merged 7 commits into
ClickHouse:masterfrom
CurtizJ:randomize-postings-setting
Jul 1, 2026
Merged

CurtizJ merged 7 commits into
ClickHouse:masterfrom
CurtizJ:randomize-postings-setting

Conversation

@CurtizJ

@CurtizJ CurtizJ commented Jun 29, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

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

The text index lazy posting-list apply mode is no longer experimental and can be selected with text_index_posting_list_apply_mode = 'lazy' without allow_experimental_text_index_lazy_apply. The density-threshold setting was renamed from text_index_density_threshold to text_index_lazy_intersection_density_threshold.

Version info

  • Merged into: 26.7.1.342 (included in 26.7 and later)

Rename the setting `text_index_density_threshold` to
`text_index_lazy_intersection_density_threshold` to reflect that it only
selects the intersection algorithm (leapfrog vs brute-force) in lazy posting
list apply mode, rather than being a general text-index knob. The old name is
kept as an alias for backward compatibility, and the rename is recorded in the
26.7 block of `SettingsChangesHistory`.

Randomize `text_index_posting_list_apply_mode` and
`text_index_lazy_intersection_density_threshold` in `clickhouse-test`. Because
lazy apply mode is experimental and otherwise throws `SUPPORT_IS_DISABLED`,
enable `allow_experimental_text_index_lazy_apply` in the stateless-test
`default` profile (new `tests/config/users.d/text_index_lazy_apply.xml`, wired
in `install.sh` and guarded for servers older than 26.6).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Jun 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2a5c97c]

Summary: ❌

job_name test_name status info comment
Fast test (arm_darwin) FAIL
03988_keeper_client_autocomplete FAIL cidb IGNORED

AI Review

Summary

This PR makes text_index_posting_list_apply_mode = 'lazy' usable without the old experimental gate, keeps allow_experimental_text_index_lazy_apply as an obsolete no-op, renames text_index_density_threshold to text_index_lazy_intersection_density_threshold with an alias, and randomizes the text-index apply mode in stateless/BuzzHouse settings. I did not find a correctness, compatibility, or test-stability issue that needs a new inline comment.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-build Pull request with build/testing/packaging improvement label Jun 29, 2026
CurtizJ and others added 3 commits June 30, 2026 13:01
The lazy posting list apply mode for the text index
(`text_index_posting_list_apply_mode = 'lazy'`) is no longer experimental.

Remove the `allow_experimental_text_index_lazy_apply` gate from
`MergeTreeReaderTextIndex` so lazy mode is selected purely via
`text_index_posting_list_apply_mode`, and make the setting obsolete via
`MAKE_OBSOLETE` (still accepted as a no-op for backward compatibility). The
default flip (`false` -> `true`) is recorded in the 26.7 block of
`SettingsChangesHistory`.

Drop the now-redundant references to the setting from
`enableAllExperimentalSettings` and the BuzzHouse session settings, and remove
the stateless-test `text_index_lazy_apply.xml` profile (and its `install.sh`
wiring) that only existed to open the experimental gate.

Add `04489_text_index_lazy_apply_non_experimental`, verifying that lazy mode
works without the flag and that the obsolete setting is still accepted as a
no-op.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@clickhouse-gh clickhouse-gh Bot added pr-improvement Pull request with some product improvements and removed pr-build Pull request with build/testing/packaging improvement labels Jun 30, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 85.40% 85.40% +0.00%
Functions 92.60% 92.60% +0.00%
Branches 77.60% 77.60% +0.00%

Changed lines: Changed C/C++ lines covered: 43/44 (97.73%) · Uncovered code

Full report · Diff report

@CurtizJ CurtizJ self-assigned this Jul 1, 2026
@CurtizJ
CurtizJ added this pull request to the merge queue Jul 1, 2026
Merged via the queue into ClickHouse:master with commit c8fdfef Jul 1, 2026
172 of 174 checks passed
@CurtizJ
CurtizJ deleted the randomize-postings-setting branch July 1, 2026 10:48
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 1, 2026
robot-clickhouse pushed a commit that referenced this pull request Jul 1, 2026
…tting"

This reverts commit c8fdfef, reversing
changes made to 6ff8519.
robot-clickhouse pushed a commit that referenced this pull request Jul 1, 2026
…tting"

This reverts commit c8fdfef, reversing
changes made to 6ff8519.
robot-clickhouse pushed a commit that referenced this pull request Jul 1, 2026
…tting"

This reverts commit c8fdfef, reversing
changes made to 6ff8519.
robot-clickhouse pushed a commit that referenced this pull request Jul 2, 2026
…tting"

This reverts commit c8fdfef, reversing
changes made to 6ff8519.
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…setting

Randomize text index posting list apply mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements 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.

2 participants