Skip to content

Backport #119371 to 26.8: Do not restrict a vector search to index rows when a delete is pending - #125108

Merged
clickhouse-gh[bot] merged 2 commits into
26.8from
backport/26.8/119371
Oct 11, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.8from
backport/26.8/119371

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #119371

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.8.25.6

@robot-ch-test-poll3 robot-ch-test-poll3 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Oct 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [c73c6db]

Summary: ✅

…earch_lightweight_delete_limit`

Reading `SELECT ... FINAL PREWHERE _row_exists` with `apply_prewhere_after_final = 1`
fails with `THERE_IS_NO_COLUMN` in 26.8 regardless of the vector index (reproduced
without any index). The bug is fixed on master by
#114578, which is not in 26.8. Keep the
`EXPLAIN` check that the index is not used in this case, which is what this backport changes.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=125108&sha=76bfddc8e3fe65c82d6272e7107fb6cb46e658ca&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan_ubsan%2C%20distributed%20plan%2C%20parallel%29
PR: #125108

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 The only CI failure was the new test 05205_vector_search_lightweight_delete_limit, at the query SELECT ... FINAL PREWHERE _row_exists ... SETTINGS apply_prewhere_after_final = 1 (THERE_IS_NO_COLUMN). This bug already exists in 26.8 and has nothing to do with the vector index: the 26.8 binary from this PR fails the same way on a table with no index. It is fixed on master by #114578, which is not in 26.8. I removed that one data query from the backported test and kept the EXPLAIN check, which covers what this backport changes. The adjusted test passes against the 26.8 binary from this PR.

@clickhouse-gh
clickhouse-gh Bot merged commit 39eba6f into 26.8 Oct 11, 2026
40 of 41 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.8/119371 branch October 11, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants