Skip to content

Backport #127867 to 26.10: Fix LOGICAL_ERROR reading SHARED paths of dynamic types of a JSON column with the columns cache - #128698

Merged
clickhouse-gh[bot] merged 2 commits into
26.10from
backport/26.10/127867
Nov 5, 2026
Merged

clickhouse-gh[bot] merged 2 commits into
26.10from
backport/26.10/127867

Conversation

@robot-ch-test-poll2

Copy link
Copy Markdown
Contributor

Original pull-request #127867

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

… of dynamic types of a `JSON` column with the columns cache
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backport Changes, backported to release branch. Do not use manually - automated use only! label Nov 2, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [eee687b]

Summary: ✅

On 26.10 only MergeTreeReaderWide uses the columns cache; the Compact reader got it in #127287, which is master-only,
so the Compact case's system.columns_cache probe returns no rows there. Test only.

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

groeneai commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator

The only failure here is the Compact-part case this backport adds to 05402_json_shared_typed_paths_columns_cache: it expects system.columns_cache rows for a Compact part, but on 26.10 only MergeTreeReaderWide uses the columns cache (the Compact reader got it in #127287, which is master-only), so the probe is empty. The three Wide-part cases it adds pass here, and they do need the fix on 26.10: on a 26.10 debug build without it, each of them aborts with the not global variants order logical error.

A one-commit fix that drops the Compact case (test only, 16 deleted lines, a fast-forward of backport/26.10/127867) is on my fork. I cannot push to this branch; someone with write access can apply it with:

git fetch https://github.com/groeneai/ClickHouse fix-backport-26.10-127867 && git push origin FETCH_HEAD:backport/26.10/127867

Checked with this PR's debug build: the test passes, also 50/50 with randomized settings.

@Avogar

Avogar commented Nov 4, 2026

Copy link
Copy Markdown
Member

@groeneai update the test by dropping compact part

@groeneai

groeneai commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

The commit that drops the Compact-part case is ready on my fork as a fast-forward of this branch: groeneai@eee687b (test only, 16 deleted lines). I don't have write access to this repository, so I can't push it to backport/26.10/127867 myself. It can be applied with:

git fetch https://github.com/groeneai/ClickHouse fix-backport-26.10-127867 && git push origin FETCH_HEAD:backport/26.10/127867

@PedroTadim

Copy link
Copy Markdown
Member

@Avogar groeneai doesn't have permission to push to backport PRs

@clickhouse-gh
clickhouse-gh Bot merged commit 7455faa into 26.10 Nov 5, 2026
47 of 48 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.10/127867 branch November 5, 2026 15:46
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!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants