Skip to content

Backport #116994 to 26.6: Do not recurse per empty block in the hadoop-snappy reader - #118080

Merged
clickhouse-gh[bot] merged 3 commits into
26.6from
backport/26.6/116994
Sep 5, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.6from
backport/26.6/116994

Conversation

@robot-ch-test-poll4

@robot-ch-test-poll4 robot-ch-test-poll4 commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #116994

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

@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 Sep 4, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [8162869]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118080&sha=8294ff91a6354701a862a5c6aab4b271dfb84ab1&name_0=BackportPR&name_1=Unit%20tests%20%28asan_ubsan%2C%20function_prop_fuzzer%29 and provide a fix in a separate PR. If the fix is already in progress, link it here.

FunctionsStress.stress reports Function sliceHas expects same column types for slices for endsWithCaseInsensitiveUTF8 over Array(DateTime64(8)) and Array(DateTime) arguments. This is unrelated to the hadoop-snappy reader: it looks like the stashed scale-divergent column problem (issue #108517) that #110070 fixed in the stress test on master, and that fix is not on 26.6. A backport of #110070 to 26.6 should clear it.

@groeneai

groeneai commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Confirmed, your diagnosis is right. This is the #108517 stashed scale-divergent column class, and the only thing 26.6 is missing is #110070.

What I measured:

1. The consumer is not the variable. src/Functions/FunctionStartsEndsWith.h and src/Functions/GatherUtils/Algorithms.h are byte-identical on master, 26.8, 26.7 and 26.6 (blobs 0ccba708fc52 and 42456447dd9e on all four). executeImplArray unifies its arguments with getLeastSupertype plus castColumn before createArraySource, so the printed query is not reachable from SQL: on a debug master build it returns 1.

2. #110070 is the only difference in this area. strict_decimal_scale in src/Columns/validateColumnType.h and scale_divergent_result in src/Functions/tests/gtest_functions_stress.cpp are present on master, 26.8 and 26.7 (identical blobs) and absent on 26.6. 26.3 has neither file, so it is unaffected.

3. The signature only survives where the fix is missing. Over 180 days FunctionsStress.stress produced 6 expects same column types failures, all between 2026-06-27 and 2026-07-08, that is all before #110070 merged on 2026-07-12, and all writeSlice under arrayPushBack / arrayPushFront. Since the merge there is exactly one: the row you linked. 26.7 (576 OK) and 26.8 (202 OK) have none of this signature, and neither does master across 82498 OK.

4. Same defect, different consumer. All 7 occurrences carry a 1900-01-01 00:00:00.<zeros> literal in the argument whose declared type is the divergent one, which is how a scale-misinterpreted temporal column renders. #110070 cuts at the stash site, upstream of every GatherUtils consumer, so sliceHas is covered exactly like writeSlice: generated arguments are built via type->createColumn and are always scale-consistent, which leaves additional_random_values as the only way a divergent column becomes an argument.

No fix is in progress: no PR anywhere is titled for a #110070 backport, no backport/26.6/110070 or cherrypick ref exists, and #110070 carries no version label.

I do not hand-author release-branch PRs (@ pufit 2026-04-17, which you reconfirmed on #111910), so the ask is the label route: @alexey-milovidov could you apply v26.6-must-backport to #110070. It resolves to a single cherry-pick, because the merge commit 19be9d5978685366017f194dc022c6a63ac5b17a is a strict ancestor of 26.7 and 26.8 (compare reports behind_by: 0 for both), so pre_check will treat those two as already backported. A 3-way merge of all four files into 26.6 produces 0 conflict hunks, so it should cherry-pick cleanly.

@clickhouse-gh
clickhouse-gh Bot merged commit 8b29763 into 26.6 Sep 5, 2026
39 of 40 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/116994 branch September 5, 2026 04:10
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