Skip to content

Backport #124612 to 26.7: Fix skip index analysis through casts and on missing map keys or JSON paths - #125016

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

clickhouse-gh[bot] merged 2 commits into
26.7from
backport/26.7/124612

Conversation

@robot-clickhouse-ci-2

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #124612
Cherry-pick pull-request #124902

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.7.28.4

@robot-clickhouse-ci-2 robot-clickhouse-ci-2 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 [93daf93]

Summary: ✅

The backport keeps a `CAST` that drops `Nullable` under the preprocessor, so the
preprocessor output is named after the `CAST` node, e.g.
`lower(CAST(__table1.s, 'String'_String))`. The postprocessor step named its
haystack input with `getNameWithoutAliases`, which rebuilds the name from the
children (`lower(CAST(s, 'String'_String))`), so `mergeNodes` did not reuse the
node and the query failed with `NOT_FOUND_COLUMN_IN_BLOCK` in test
`05340_text_index_preprocessor_cast_drop_nullable`.

Use the `result_name` of the haystack node, as master does since
#113154 (its 26.7 backport is not merged).
This also fixes the same failure for an expression haystack with a postprocessor,
e.g. an index on `concat(s, '')`, which failed on 26.7 before this backport.

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

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@clickhouse-gh
clickhouse-gh Bot merged commit 8f07229 into 26.7 Oct 11, 2026
40 of 41 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/124612 branch October 11, 2026 16:29
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.

3 participants