Skip to content

Backport #115703 to 26.7: Fix crashes of the Parquet, ORC and Iceberg readers on malformed input - #116653

Merged
clickhouse-gh[bot] merged 3 commits into
26.7from
backport/26.7/115703
Aug 29, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.7from
backport/26.7/115703

Conversation

@robot-ch-test-poll4

@robot-ch-test-poll4 robot-ch-test-poll4 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #115703
Cherry-pick pull-request #116216

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

@robot-ch-test-poll4 robot-ch-test-poll4 added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Aug 27, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [f0940d9]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Both CI failures are unrelated to this backport (it only touches the Parquet/ORC/Iceberg reader code paths):

I merged origin/26.7 (clean, zero conflicts, zero file overlap with the PR's changes) for a fresh CI run on the current base.

@groeneai

Copy link
Copy Markdown
Collaborator

03742_nested_loop_join_long is not a flake on this base: 26.7 still carries the test's pre-fix fixture.

The fix is already merged on master: #111644 (test-only), merge commit 110cd5b4837bdd225222005d65475a1b775827da. It cuts the left side of the direct join from numbers(100) to numbers(12); with the attributes fan-out at 800K/300K rows per key, that row count is what sets the peak. 110cd5b4 is an ancestor of 26.8 only: read off each branch today, the first events insert is numbers(12) on master and 26.8, numbers(100) on 26.7, 26.6 and 26.3, and still numbers(100) at this PR's head after your base merge. So merging origin/26.7 does not clear this one either, same as 02995_new_settings_history.

The CIDB before/after is the clearest signal. In the 30 days before #111644 merged: 63 MEMORY_LIMIT_EXCEEDED rows for this test across 51 distinct PRs. Since it merged: exactly one, this run, on the one branch missing the fix. Master over that window is 8123 OK and zero failures. The job's own diagnosis here reproduced it 4/4 with the same randomized settings and 4/4 without them ("not a randomization issue"), and the killed query is precisely the one #111644 shrinks: query 24, events JOIN attributes ON t0.Id = t1.EventId, dying in DirectKeyValueJoin::joinBlock under JoiningTransform.

So there is nothing for me to author here, and I do not hand-author release-branch PRs. The remedy is a backport label on #111644, which I cannot apply. Expansion computed with tests/ci/cherry_pick_branches.py::select_backport_branches against today's active release branches (26.8, 26.7, 26.6, 26.3):

  • v26.7-must-backport -> {26.8, 26.7}; 26.8 already has the commit, so ReleaseBranch.pre_check skips it -> exactly one 26.7 backport.
  • v26.3-must-backport -> {26.8, 26.7, 26.6, 26.3} -> three backports (26.7, 26.6, 26.3).

@alexey-milovidov 26.6 and 26.3 carry the same fixture, so I would go with v26.3-must-backport on #111644; v26.7-must-backport if you want only the branch this PR is on.

@clickhouse-gh
clickhouse-gh Bot merged commit ba6d415 into 26.7 Aug 29, 2026
38 of 39 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.7/115703 branch August 29, 2026 19:49
@groeneai

groeneai commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Follow-up on the 26.7 memory failures in this job. My earlier reply blamed the 03742_nested_loop_join_long fixture, but the shared cause is the runner.

26.7 was cut on 2026-07-22, three days before #111789 moved Stateless tests (amd_asan_ubsan, distributed plan, parallel) to the 128 GiB amd-large runner. On 26.7 the job still runs on amd-medium-cpu with the 0.75 memory ratio, so the server cap is 44.83 GiB. Since 2026-10-01, 5 of the 51 26.7 commits tested had a query killed by (total) memory limit exceeded at RSS 43.5 to 44.7 GiB against that cap: 03742_nested_loop_join_long three times, then 02481_i43247_ubsan_in_minmaxany and 02477_single_value_data_string_regression (latest). Over 30 days there are no such rows for this job on master, on PRs, or on 26.8 and 26.9.

The diff of #111789 applies cleanly to the 26.7 copies of its six files (offsets only), and 26.8 and 26.9 already contain it. So one backport removes the cause for all three tests.

@maxknv, would you apply v26.7-must-backport to #111789? Or should 26.7 stay on the smaller runner until it is retired?

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-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants